i have a function with some command inside it
execute as @s at @s run tp @s ^ ^ 0.05
scoreboard players add @s tmp 1
tag @e[type=!area_effect_cloud,distance=..10] add hit
execute if score @s tmp < @s gun run function gunmech:move
scoreboard players set @s tmp 0
the "tag @e[type=!area_effect_cloud,distance=..10] add hit" command didn't do his thing even when there's so much mob around him this function run 107 times every tick, maybe there's something i didn't know?
Attachments
Comments 5
Does it work if you add execute at @s run
to the front of the command, so there position is properly set to the running player?
Can you attach the data pack please?