Mojira Archive
MC-273711

Can't merge the effect "minecraft:unluck" onto an arrow.

If we have an entity of arrow, just like

```
/summon minecraft:arrow ~ ~ ~

{NoGravity:1b}

```
 

and  we can find that the command does not work

```
/data merge entity @n[type=arrow] {item:{components:{"minecraft:potion_contents":{potion:"minecraft:unluck"}}}}

```

 

In fact, we can merge it in 1.20.4

```
/data merge entity @e[type=arrow] {custom_potion_effects:[

{id:"minecraft:unluck"}

]}

```

 

and we can  merge another effect in 1.21 except the unluck effect

```
/data merge entity @n[type=arrow] {item:{components:{"minecraft:potion_contents":{potion:"minecraft:night_vision"}}}}

```

Invalid

Yushasama

2024-06-22, 04:19 AM

2024-06-22, 04:30 AM

2024-06-22, 04:30 AM

0

0

Unconfirmed

(Unassigned)

1.21

-