Files
zombiiattack-datapack/data/homingloot/functions/orb.mcfunction
T
Darto KLoning 0a22196ea6 Initial import
2026-06-20 20:58:13 +07:00

14 lines
1.1 KiB
MCFunction

scoreboard players add @s homingloot_count 1
execute if score @s homingloot_count matches 20 run data remove entity @s Motion
execute if score @s homingloot_count matches 20 run data modify entity @s NoGravity set value 1b
execute if score @s homingloot_count matches 20.. run particle dust_color_transition 0.969 1.000 0.000 1 0.031 0.451 1.000 ~ ~ ~ 0 0 0 1 0 force @a[distance=..96]
execute if score @s homingloot_count matches 20.. at @s run tp @s ^ ^ ^.3 facing entity @p[gamemode=!spectator,distance=..96] feet
execute if score @s homingloot_count matches 20.. at @s run tp @s ^ ^ ^.3 facing entity @p[gamemode=!spectator,distance=..96] feet
execute if score @s homingloot_count matches 30.. run particle dust_color_transition 0.969 1.000 0.000 1 0.031 0.451 1.000 ~ ~ ~ 0 0 0 1 0 force @a[distance=..96]
execute if score @s homingloot_count matches 30.. at @s run tp @s ^ ^ ^.3 facing entity @p[gamemode=!spectator,distance=..96] feet
execute if score @s homingloot_count matches 30.. at @s run tp @s ^ ^ ^.3 facing entity @p[gamemode=!spectator,distance=..96] feet