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

Weapon Triggers Don't Work For Entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18.20.27 Beta, 1.18.30
    • 1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, 1.17.40.23 Beta, 1.17.40.20 Beta, 1.17.30.24 Beta, 1.17.30.23 Beta, 1.17.30.22 Beta, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.17.20.22 Beta, 1.17.20.21 Beta, 1.17.10, 1.17.10.23 Beta, 1.17.1 Hotfix, 1.17.10.20 Beta, 1.17.0.58 Beta, 1.17.0.56 Beta, 1.17.0.54 Beta, 1.17.0.52 Beta, 1.17.0.50 Beta, 1.16.230.56 Beta, 1.16.230.54 Beta, 1.16.220, 1.16.230.50 Beta, 1.16.220.52 Beta, 1.16.220.51 Beta, 1.16.220.50 Beta, 1.16.210.61 Beta, 1.16.210.60 Beta, 1.16.201 Hotfix, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.18.2 Hotfix
    • Confirmed
    • Multiple
    • 508511

      When making items that use weapon triggers to do things like give their targets status effects, they only work when the player is holding the item and don't work when mobs are holding the item.

      Steps To Reproduce:

      1. Download the attached test_item.json, put it in a behaviour pack and a load a world with it
      2. Summon a husk and give them the test_item (no icon so will throw content log errors about that).
      3. Run the command /effect @e resistance 9999 9 true
      4. Hit the husk with the test item and observe that it will get wither for 5 seconds
      5. Go into survival and allow the husk to hit you with the test item
      6. You will not be given wither at all

      Expected Behavior:

      • Weapon triggers work for items when mobs hold them

      Actual Behavior:

      • Weapon triggers only work when players are holding the item

            Gruntastic Gruntastic
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: