mojira.dev
MC-123691

Minecraft Function Tag Selector

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

Can you attach the data pack please?

the data pack name "1.13"

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?

Local coordinates may not be combined with absolute or relative coordinates.

That's just a typo in the description – the actual data pack doesn't have it and it's not the issue at hand.

MainC1cak

(Unassigned)

Unconfirmed

Minecraft 17w50a

Retrieved