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

Projectile with component "minecraft:despawn" does no damage when shot at player.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.50.22 Preview, 1.21.31 Hotfix
    • None
    • Unconfirmed
    • Windows

      When there has component "minecraft:despawn" in projectile, the mob who shoots projectile cannot deal any damage to the player. However, this mob can still deal damage to other non-player mob in same distance. And if I delete the component "minecraft:despawn",  the projectile gets back to normal.

      In the zip I upload, I make a easy Bedrock_Addon to show this bug. I am sure that it is not the problem of my projectile, the timer that makes projectile's despawn is normal, After testing, the projectile can fly a distance of 60 blocks before it despawn.

      The way to test the test_bullet in zip is spawn a villager in front of the test_npc, and switch the survive gamemode for player.

       

        1. test.zip
          1.09 MB
        2. 屏幕截图(274).png
          屏幕截图(274).png
          1.12 MB
        3. 屏幕截图(276).png
          屏幕截图(276).png
          548 kB

            DrabMarker Maker Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: