mojira.dev
MCPE-155589

Magma and berry damage counts as self-inflicted by damage sensors

The bug

If you use this damage sensor:

"minecraft:damage_sensor": {
   "triggers": {
      "on_damage": {
         "filters": {
            "test": "is_family",
            "subject": "other",
            "value": "player"
         }
      },
      "deals_damage": false
   }
}

you would expect not to take damage from other players. This works correctly. However it also prevents you from taking damage from magma and berry bushes.

How to reproduce

1. Download and open the attached world

2. Watch the sheep on the magma blocks

Expected results
They take damage

Actual results
They don't

Linked issues

Attachments

Comments 1

I cannot reproduce this in 1.21.70, even with an updated pack with the 1.21.70 syntax for damage_sensor.

tryashtar

(Unassigned)

777824

Confirmed

Windows

1.18.32, 1.19.0.31 Preview

Retrieved