#How can I make creepers avoid players with the tag "race_feline"?
1 messages · Page 1 of 1 (latest)
"priority": 3,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "ocelot"
},
{
"test": "is_family",
"subject": "other",
"value": "cat"
},
{
"test": "has_tag",
"subject": "other",
"value": "race_feline"
}
]
},
"max_dist": 6,
"sprint_speed_multiplier": 1.2
}
]
}
did you tag yourself properly?
in here, the tag value is written as race_feline instead of cat
yeah i did tag myself properly
mb lemme just edit that in the message
this is my json file
How can I make creepers avoid players with the tag "race_feline"?
change the priority to 0, and to make sure make them unable to target players with the tag
thanks, it worked!
do you know how i can make them not target players with the tag?
use the all_of filter in nearest attackable target, then move the player family detection and tag there
make sure the tag operator is set to not / !=
is this how its supposed to work? the creeper still targets me but starts running away when its around 3 blocks away from me
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "has_tag",
"subject": "other",
"operator": "not",
"value": "race_feline"
}
]
},
"max_dist": 16
}
],
"must_see": true,
"must_see_forget_duration": 0.0
},
it should be yes
I guess since it still counts players as attackable, it can still explode
might be best to experiment with it more yourself and see what works best
ah ok
thank you :)
you're welcome