#Dommage sensor
1 messages · Page 1 of 1 (latest)
"minecraft:damage_sensor": { "triggers": [ { "on_damage": { "filters": { "any_of": [ { "all_of": [ {"test": "has_tag",
"subject": "self",
"operator": "equals",
"value": "e_1" },
{ "test": "has_tag",
"subject": "other",
"operator": "equals",
"value": "e_1" } ] } ] } }, "deals_damage": false } ] } },
I would like to understand why normally the sum equals is for an equality between the 2 has tags e_1 and e_1?
What ?
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"any_of": [
{
"all_of": [
{
"test": "has_tag",
"subject": "self",
"operator": "equals",
"value": "e_1"
},
{
"test": "has_tag",
"subject": "other",
"operator": "equals",
"value": "e_1"
}
]
}
]
},
"deals_damage": false
}
}
]
}
I would like to cancel the damages between people with the tag e_1
I would also like to know if there is a difference between the values.
= Test for equality.
And
equals Test for equality.
both do the same thing. It's your choice about which one to use.
OK , but I still don't understand why my Damage sensor doesn't work
I don't understand what you're trying to do.