So I wanted to create a system that removed the drop from arrows, so, naturally, I did this "/data merge entity @e[nbt=!{NoGravity:1},type=arrow,limit=1] {NoGravity:1}" but for whatever reason it only applied to one arrow and only that arrow, even tho the arrow already has "{NoGravity:1}". So the issue is that the command specifies that it will only apply to an arrow without the nbt tag of "{NoGravity:1}, therefor it should have merged the nbt to the one arrow then moved on to the next one because it already had the tag, but it just doesn't. Any suggestions to get this system to work?
The only possible way I could think of would be to add "sort=random" to the specifier part, but even when you do do that it makes the trajectory of the arrow even more unpredictable.
I't because the data command only allow you to modify one entity. You have to use it with the execute command for use it on all the entity you want, like this :
/execute as @e[nbt=! {NoGravity:1},type=arrow] run data modify @s NoGravity set value 1
So I wanted to create a system that removed the drop from arrows, so, naturally, I did this "/data merge entity @e[nbt=!{NoGravity:1},type=arrow,limit=1] {NoGravity:1}" but for whatever reason it only applied to one arrow and only that arrow, even tho the arrow already has "{NoGravity:1}". So the issue is that the command specifies that it will only apply to an arrow without the nbt tag of "{NoGravity:1}, therefor it should have merged the nbt to the one arrow then moved on to the next one because it already had the tag, but it just doesn't. Any suggestions to get this system to work?
The only possible way I could think of would be to add "sort=random" to the specifier part, but even when you do do that it makes the trajectory of the arrow even more unpredictable.
I't because the data command only allow you to modify one entity. You have to use it with the execute command for use it on all the entity you want, like this :
I like trains... OF CHAIN COMMAND BLOCKS !
Thanks so much fer the help