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

minecraft:charged_projectiles component accepts any item id, but any values beside those normally attainable shoot arrows.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.6
    • None
    • Confirmed
    • (Unassigned)

      The issue is as stated in the title. I discovered this while attempting to make a crossbow loaded with a Wind Charge, and the tooltip said it was, but when I shot the crossbow, an arrow came out instead of a Wind Charge. Additionally, when the arrow was picked up, a Wind Charge appeared in the inventory instead.

      Steps to reproduce:

      1) Use this command:

      /give @s minecraft:crossbow[minecraft:charged_projectiles=[{id:'minecraft:wind_charge'}]]
      

      2) Observe the tooltip, and note the projectile name.

      3) Shoot the crossbow.

      4) Pick up the arrow embedded in the target surface.

      One additional oddity is that this works with any item, not simply projectiles. Similarly to the example case, it will state the name of the item in the "Projectile:" tooltip, shoot as an arrow, and turn into the item on pickup of the arrow. Perhaps the component should accept an entity id, rather than an item id? Or, more likely, the accepted item ids could be restricted. The former option would open possibilities for mapmakers, but the latter is likely more simple to implement.

            Unassigned Unassigned
            Shock_Micro Shock Micro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: