#[RESOLVED]
8 messages · Page 1 of 1 (latest)
Change tag to Entities, so more people will look and may be able to help.
I am interested in why it is not working for you because I was about to add teams into one like that from the wiki.
Can you give examples of what you ran the shows it does not work?
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_tag",
"subject": "self",
"value": "red_team"
},
{
"test": "has_tag",
"subject": "other",
"value": "red_team"
}
]
}
},
"deals_damage": false
},
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_tag",
"subject": "self",
"value": "blue_team"
},
{
"test": "has_tag",
"subject": "other",
"value": "blue_team"
}
]
}
},
"deals_damage": false
}
]
}
Try this if it'll work for you
And i think the issue in your code is that it checks if the "self" has all the team tags, and "other" too
That should not be the case because they are sounded with any_of and only all_of for each team. That means that if any of the team test pass, then no damage.
That example is straight from the wiki https://wiki.bedrock.dev/entities/disabling-team-damage.html
I found your problem You have 2 damage sensors defined. Look further down in your code. The other one is custom too, so you will need to combine the logic to make work like you want.