#Disable damage when using a special tag
1 messages · Page 1 of 1 (latest)
??
yes
You need to put it inside of the player file (if you want to disable damage for players) while preserving the player behaviour
It’s a behavior component, you can’t just chuck it in there. It needs to be in the components section
why does mine not work
{
"format_version": "1.18.20",
"minecraft:entity": {
"description": {},
"component_groups": {},
"components": {
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_tag",
"subject": "self",
"value": "safe"
}
]
}
},
"deals_damage": false
}
]
}
}
}
}