#How can I make creepers avoid players with the tag "race_feline"?

1 messages · Page 1 of 1 (latest)

earnest stump
#

I've been trying to get creepers to run away from players with the tag "race_feline" but it just doesn't seem to be working properly. Could someone please help me?

earnest stump
#
        "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
            }
        ]
        }
copper meadow
#

in here, the tag value is written as race_feline instead of cat

earnest stump
#

mb lemme just edit that in the message

#

How can I make creepers avoid players with the tag "race_feline"?

copper meadow
earnest stump
copper meadow
#

make sure the tag operator is set to not / !=

earnest stump
# copper meadow use the `all_of` filter in nearest attackable target, then move the player famil...

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
          },

copper meadow
#

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

copper meadow
#

you're welcome