Initial commit

This commit is contained in:
2022-09-10 14:28:27 +02:00
commit c13c4bbd85
34 changed files with 422 additions and 0 deletions

View File

@ -0,0 +1,4 @@
function malloc:fx/anchors/reset
function malloc:fx/anchors/reset_tags
function malloc:fx/anchors/show
data merge entity @s {CustomName:'{"text":"DEFAULT","color":"white","bold":true}'}

View File

@ -0,0 +1 @@
data merge entity @s {ArmorItems:[],CustomNameVisible:0b,NoGravity:1b,Silent:1b,Invulnerable:1b,ShowArms:1b,Marker:1b,Invisible:1b,DisabledSlots:4144959}

View File

@ -0,0 +1,5 @@
tag @s add fx
tag @s remove fx-purple
tag @s remove fx-red
tag @s remove fx-blue
tag @s remove fx-green

View File

@ -0,0 +1,5 @@
function malloc:fx/anchors/reset
function malloc:fx/anchors/reset_tags
function malloc:fx/anchors/show
data merge entity @s {ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:255}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:255}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:255}}},{id:"minecraft:leather_helmet",Count:1b,tag:{display:{color:255}}}],CustomName:'{"text":"BLUE","color":"blue","bold": true}'}
tag @s add fx-blue

View File

@ -0,0 +1,5 @@
function malloc:fx/anchors/reset
function malloc:fx/anchors/reset_tags
function malloc:fx/anchors/show
data merge entity @s {CustomName:'{"text":"GREEN","color":"green","bold":true}',ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:65280}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:65280}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:65280}}},{id:"minecraft:leather_helmet",Count:1b,tag:{display:{color:65280}}}]}
tag @s add fx-green

View File

@ -0,0 +1,5 @@
function malloc:fx/anchors/reset
function malloc:fx/anchors/reset_tags
function malloc:fx/anchors/show
data merge entity @s {ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:14483711}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:14483711}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:14483711}}},{id:"minecraft:leather_helmet",Count:1b,tag:{display:{color:14483711}}}],CustomName:'{"text":"PURPLE","color":"light_purple","bold":true}'}
tag @s add fx-purple

View File

@ -0,0 +1,5 @@
function malloc:fx/anchors/reset
function malloc:fx/anchors/reset_tags
function malloc:fx/anchors/show
data merge entity @s {ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:16711680}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:16711680}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:16711680}}},{id:"minecraft:leather_helmet",Count:1b,tag:{display:{color:16711680}}}],CustomName:'{"text":"RED","color":"red","bold": true}'}
tag @s add fx-red

View File

@ -0,0 +1,2 @@
function malloc:fx/anchors/reset
data merge entity @s {CustomNameVisible:1b,Marker:0b,Invisible:1b,Glowing:1b}

View File

@ -0,0 +1 @@
execute at @s run summon firework_rocket ~ ~ ~ {LifeTime:30,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Trail:1b,Colors:[I;5055],FadeColors:[I;3679299]},{Type:4,Trail:1b,Colors:[I;169676],FadeColors:[I;852045]},{Type:0,Colors:[I;579327],FadeColors:[I;10083071]}]}}}}

View File

@ -0,0 +1 @@
execute at @s run summon firework_rocket ~ ~ ~ {LifeTime:30,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:3,Colors:[I;2211586],FadeColors:[I;3949361]},{Type:4,Trail:1b,Colors:[I;6999215],FadeColors:[I;6740298]}]}}}}

View File

@ -0,0 +1 @@
execute at @s run summon firework_rocket ~ ~ ~ {LifeTime:30,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Colors:[I;12521401],FadeColors:[I;4390919]},{Type:4,Trail:1b,Colors:[I;5699],FadeColors:[I;9506731]}]}}}}

View File

@ -0,0 +1 @@
execute at @s run summon firework_rocket ~ ~ ~ {LifeTime:30,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Flicker:1b,Colors:[I;12518918],FadeColors:[I;4400129]},{Type:1,Trail:1b,Colors:[I;5374501],FadeColors:[I;12845076]}]}}}}

View File

@ -0,0 +1,3 @@
schedule clear malloc:fx/anchors/reset
execute as @e[tag=fx] run function malloc:fx/anchors/show
execute as @e[tag=fx] run schedule function malloc:fx/anchors/reset 120s

View File

@ -0,0 +1,10 @@
execute as @e[scores={m_fireworks=1..},tag=fx-purple] run function malloc:fx/fireworks/purple
execute as @e[scores={m_fireworks=1..},tag=fx-purple] run scoreboard players remove @s m_fireworks 1
execute as @e[scores={m_fireworks=1..},tag=fx-red] run function malloc:fx/fireworks/red
execute as @e[scores={m_fireworks=1..},tag=fx-red] run scoreboard players remove @s m_fireworks 1
execute as @e[scores={m_fireworks=1..},tag=fx-green] run function malloc:fx/fireworks/green
execute as @e[scores={m_fireworks=1..},tag=fx-green] run scoreboard players remove @s m_fireworks 1
execute as @e[scores={m_fireworks=1..},tag=fx-blue] run function malloc:fx/fireworks/blue
execute as @e[scores={m_fireworks=1..},tag=fx-blue] run scoreboard players remove @s m_fireworks 1
execute as @e[scores={m_fireworks=1..}] run function malloc:fx/fireworks/purple
execute as @e[scores={m_fireworks=1..}] run scoreboard players remove @s m_fireworks 1

View File

@ -0,0 +1 @@
scoreboard objectives add m_fireworks dummy "Fireworks"

View File

@ -0,0 +1,6 @@
execute if entity @e[scores={m_fireworks=1..}] run function malloc:fx/launch_fireworks
execute as @e[name="malloc-fx-red"] run function malloc:fx/anchors/set_red
execute as @e[name="malloc-fx-blue"] run function malloc:fx/anchors/set_blue
execute as @e[name="malloc-fx-green"] run function malloc:fx/anchors/set_green
execute as @e[name="malloc-fx-purple"] run function malloc:fx/anchors/set_purple
schedule function malloc:fx/tick 1s