#how can i make two mobs ( both the same mob type) attack each other by modifying the behavior ?

50 messages · Page 1 of 1 (latest)

tulip cargo
#

add a new family to target in nearest attackable target and make sure they are in that family too

plain oyster
#

can you show me a screen for the code?

#

if you can

plain oyster
tulip cargo
#
                "priority": 3,
                "must_see": true,
                "must_see_forget_duration": 60,
                "reselect_targets": true,
                "entity_types": [
                    {
                        "filters": {
                            "any_of": [
                                {"test": "is_family","subject": "other","value": "player"},
                                {"test": "is_family","subject": "other","value": "snowgolem"},
                                {"test": "is_family","subject": "other","value": "irongolem"}
                            ]
                        },
                        "max_dist": 128
                    }
                ]
            }```
#

this is an example ^

plain oyster
#

thank you so much

tulip cargo
#

go to the entity behavior and add a new family

#

not yet

#

let me explain

plain oyster
#

i know how to open that

tulip cargo
#

and make sure you add a new family to the behavior

#

or replace the existing one

#

whatever you want it to target

#

after that, make sure your mob also has the family inside the target

plain oyster
#

can i keep this chat or i have to do a screen shot?

tulip cargo
#

so if your mob has a test family, make it attack entities with the test family

#

?

plain oyster
#

do i have to do a screen shot for the chat

#

to keep it

#

or i can leave it here

tulip cargo
#

you do you, i guess

plain oyster
#

ok, thanks again

plain oyster
#

my mob is not in the game anymore

#

why

#

it should be sum like this?

#

oh wait the ,

#

now its in the game but not attacking

tulip cargo
# plain oyster it should be sum like this?

change the within_default to max_dist, use minecraft:follow_range to increase the mob view range
And next time check the console log to see errors (go to settings > Creator > Activate log GUI)

plain oyster
tulip cargo
#

yes

plain oyster
tulip cargo
#

Oh yeah

plain oyster
tulip cargo
#

I suggest you go to bedrock.wiki.dev and bedrock.dev for easier readability

tulip cargo
#

its a website

plain oyster
#

oh

tulip cargo
#

search for entities

plain oyster
#

ok

#

oh i found it

#

this?

plain oyster
#

look

#

still not attacking

#

why

tulip cargo
#

Look at the game's console log and see what's wrong