mojira.dev
MC-139981

/data merge entity @e[type=arrow] {NoGravity:1b,Glowing:1b,life:5.0,crit:1b} doesn't work

When trying to execute the command (/data merge entity @e[type=arrow] {NoGravity:1b,Glowing:1b,life:5.0,crit:1b}), it doesn't work. It says "Only one entity is allowed, but the provided selector allows more than one at position 0: <–[HERE]. Can you fix it? (or maybe I'm trying to do something wrong)

Linked issues

Attachments

Comments 6

You can only select one entity in data command, if you want change multi entities' nbt tag,please use command:

/execute as @e[type=arrow] run data merge @s {NBT}

See MC-121807, you are only allowed to modify the entity.
Use this command instead:

/data merge entity @e[type=arrow,limit=1] {NoGravity:1b,Glowing:1b,life:5.0,crit:1b}

Kian Arambulo

(Unassigned)

Unconfirmed

Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a

Retrieved