lately, I have been "coding" command blocs in-game in 1.12, but since the 1.13 release is soon, I wanted to re-write all the commands from my command block creation. But now, I would like to change the data of an arrow so that the color, damage value and name is changed, but when I throw in this command:
/execute if entity @p[scores={arrowtype=2}] run data merge entity @e[type=arrow,distance=..2] {CustomNameVisible:0b,pickup:0b,damage:5d,Color:16740897,CustomName:"{\"text\":\"fire_arrow\"}"}
It tells me only one entity is allowed, and I provided more than one. So, how can I do the same thing without using the /data command? plz help.
/execute if entity @p[scores={arrowtype=2}] as @e[type=arrow,distance=..2] run data merge entity @s {CustomNameVisible:0b,pickup:0b,damage:5d,Color:16740897,CustomName:"{\"text\":\"fire_arrow\"}"}
hi,
lately, I have been "coding" command blocs in-game in 1.12, but since the 1.13 release is soon, I wanted to re-write all the commands from my command block creation. But now, I would like to change the data of an arrow so that the color, damage value and name is changed, but when I throw in this command:
/execute if entity @p[scores={arrowtype=2}] run data merge entity @e[type=arrow,distance=..2] {CustomNameVisible:0b,pickup:0b,damage:5d,Color:16740897,CustomName:"{\"text\":\"fire_arrow\"}"}
It tells me only one entity is allowed, and I provided more than one. So, how can I do the same thing without using the /data command? plz help.
Use a chained execute command:
/execute if entity @p[scores={arrowtype=2}] as @e[type=arrow,distance=..2] run data merge entity @s {CustomNameVisible:0b,pickup:0b,damage:5d,Color:16740897,CustomName:"{\"text\":\"fire_arrow\"}"}
thank you it works!