Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273711

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • Unconfirmed
    • (Unassigned)

      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"}}}}

      ```

            Unassigned Unassigned
            Yushasama Yushasama
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: