#Disabling player attacks
1 messages · Page 1 of 1 (latest)
"triggers": [
{
"on_damage": {
"filters": { "all_of": [{
"test": "is_family",
"subject": "other",
"value": "player"
},{
"test": "has_damage",
"value": "all"
} ]},
"deals_damage": false
},```
Maybe you could try this
I've tried various format_versions - at the moment it's 1.21.0, i'm using this file as the base:
https://github.com/Mojang/bedrock-samples/blob/preview/behavior_pack/entities/villager.json
unfortunately adding the has_damage test hasn't made a difference for me
there are 2 villager files villager.json and villager_v2.json did you modify both?
thanks! that's a good shout, i hadn't tried
just grabbed the villager_v2 from the same place, added to the damage sensor, but I can still damage villagers