I'm creating a custom datapack. Basically I want commands to run when **ball** is within 1 block of **red marker**.
These first 5 commands work great!
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run particle minecraft:totem_of_undying ~ ~2 ~ 1.5 1 1.5 0 250 force
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run playsound entity.firework_rocket.twinkle_far ambient @a ~ ~ ~ 30000 1
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run tellraw @a {"text":"Blue DUNKED on Red!","color":"aqua","bold":true}
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run scoreboard players add Blue Score 1
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run tp @e[type=armor_stand,tag=Ball] -194 3 87 facing -194 4 87
But these last 3 dont work at all? Any ideas?
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run spreadplayers -193.58 75.61 3 3 true @p[team=Red]
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run effect give @p[team=Red] minecraft:slowness 3 255 true
execute as @e[type=marker,name=Red] at @s if entity @e[type=armor_stand,tag=Ball,distance=..1] run effect give @p[team=Red] minecraft:jump_boost 15 127 true
In the last command of the 1st paragraph, you tped the ball armorstand too another location. Is the 3 commands of the 2nd paragraph supposed to happen before it's teleported?
I'm creating a custom datapack. Basically I want commands to run when **ball** is within 1 block of **red marker**.
These first 5 commands work great!
But these last 3 dont work at all? Any ideas?
In the last command of the 1st paragraph, you tped the ball armorstand too another location. Is the 3 commands of the 2nd paragraph supposed to happen before it's teleported?