mojira.dev
MCPE-114688

Bees do not take damage upon contact with water

Summary:
When a bee is in water, it does not take damage. In Java Edition, it takes damage, which is intentional (MC-167148).

Steps to Reproduce:

  1. Spawn a bee in water

Observed Results:
The bee does not take damage.

Expected Results:
The bee takes damage.

Fix:
In the bee.json file, there is the minecraft:hurt_on_condition component, where you can set how the entity should take damage in certain conditions. It only needs to add the in_water filter like this:

"minecraft:hurt_on_condition": {
                "damage_conditions": [
                    {
                        "filters": {
                            "test": "in_lava",
                            "subject": "self",
                            "operator": "==",
                            "value": true
                        },
                        "cause": "lava",
                        "damage_per_tick": 4
                    },
                    {
                        "filters": {
                            "test": "in_water",
                            "subject": "self",
                            "operator": "==",
                            "value": true
                        },
                        "cause": "drowning",
                        "damage_per_tick": 1
                    }
                ]
            }

Videos:
Bedrock:

[media]


Java:

[media]

Linked issues

Attachments

Comments 4

bugsbugsbugs

Can confirm for 1.16.201.

lillybeacon

Added the section on how to fix the issue and also attaching the JSON file, for those who want to take a look. 

[media]
Natthan

Affects 1.18.0.24

himazinn_Japan

Can confirm in 1.20.62

[Mod] OcelotOnesie

(Unassigned)

419063

Confirmed

Multiple

vanilla-parity

1.19.30.21 Preview, 1.19.0.24 Beta, 1.18.10.21 Beta, 1.18.0.20 Beta, 1.17.20.22 Beta, ..., 1.17.0.50 Beta, 1.16.210.55 Beta, 1.16.201 Hotfix, 1.18.0, 1.19.20

1.21.20.21 Preview, 1.21.20

Retrieved