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

Entity damage events do not work with boats, minecarts and armor stands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.30.22 Preview, 1.20.12 Hotfix, 1.20.15 Hotfix, 1.20.51 Hotfix
    • Confirmed
    • Multiple
    • 1200018

      Attacking any type of boat, minecart or armor stand does not trigger entityHitEntity and entityHurt afterEvents in 1.4.0-beta

      Steps to reproduce
      1. Write a script that is using entityHurt event in script api v1.4.0-beta
      You may use this script or the sample add-on (bug_bp_new.mcpack)
      2. Launch the game
      3. Try to trigger the event

      Observed results:
      Attacking Boat, Minecart or Armor Stand entity does not trigger entityHurt event
      Attacking any other does trigger those script events
      No console log messages shown

      Expected results:
      Attacking Boat, Minecart or Armor Stand entity will trigger entityHurt event

      Event is triggered when I attack the cow

      But is not triggered when I hit the boat

        1. image-2023-08-19-00-53-49-528.png
          1.12 MB
          Mixer blyatb
        2. image-2023-08-19-00-54-45-967.png
          936 kB
          Mixer blyatb
        3. bug_bp_new.mcpack
          0.8 kB
          Mixer blyatb
        4. entity damage test.mp4
          2.09 MB
          KR_

            Mixerbltb Mixer blyatb
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: