Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-162304

Using item json minecraft::weapon will copy the current weapon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.22 Hotfix
    • None
    • Creative
    • Unconfirmed
    • Windows

      There is a serious bug after using item json minecraft::weapon, when I die after attacking with a weapon once, the weapon will drop two pieces, which will cause the enchanted weapon to replicate infinitely in survival mode.

      Step 1: Create or download a custom weapon and add the minecraft::weapon component to the project json.
      Step 2: Enter the game, no matter what mode, hold the custom weapon in your hand and attack the entity (just guessing this step triggers the on_hurt_entity event, this step is required).
      Step 3: Let yourself die, at this point, you can even discard the custom weapon, Whether it's equipped or not, whether you have it or not.
      Result: BUG appears, after rebirth go to where you died, and two custom weapons will fall there, you can pick them up and use them. Both weapons are identical, including the enchantment properties.
      Please observe the screenshot.

        1. again-1.jpg
          again-1.jpg
          311 kB
        2. bug-1.jpg
          bug-1.jpg
          137 kB
        3. BugWorld.zip
          364 kB
        4. step1-1.jpg
          step1-1.jpg
          146 kB
        5. step2-2.jpg
          step2-2.jpg
          232 kB
        6. step3-1.jpg
          step3-1.jpg
          101 kB

            KofLe KofLe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: