#disable fall damage to players with a certain tag

1 messages · Page 1 of 1 (latest)

plain hollow
#

Hi, I want to know how to disable fall damage to players with a certain tag.

glossy star
onyx juniper
#

@plain hollow Add this code to the components of the player.json file in a behavior pack

"minecraft:damage_sensor": {
    "triggers": [
        {
            "on_damage": {
                "filters": {
                    "any_of": [
                        {
                            "all_of": [
                                {
                                    "test": "has_tag",
                                    "value": "no_fall_damage"
                                },
                                {
                                    "test": "has_damage",
                                    "value": "fall"
                                }
                            ]
                        }
                    ]
                }
            },
            "deals_damage": false
        }
    ]
}