#(Niklas) Aggressive mobs.

34 messages · Page 1 of 1 (latest)

vagrant shore
#

Hey. I wanted to make a script with which every wolf that spawns gets aggressiv.

elder smeltBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

languid hornet
#

At who?

#

Wolves are passive by default meaning they only get angry if you attack them

vagrant shore
#

so that the woods getting more dangerous

brazen light
#

There's this

#

!mec angry

magic pebbleBOT
#
Possible Confusion

Did you mean to search for command age?

brazen light
#

!mec entitytag.angry

magic pebbleBOT
# brazen light !mec entitytag.angry

If the entity is wolf or PigZombie, sets whether the entity is angry.
If the entity is a Vindicator, returns whether it is in "Johnny" mode.

Object

EntityTag

Input

ElementTag(Boolean)

Tags

<EntityTag.angry> If the entity is a wolf or PigZombie, returns whether the entity is angry. If th...

brazen light
#

Idk if that makes them aggressive or not, try it out

#

Pair it with entity spawn event

vagrant shore
#

well it makes him aggressive but the wolf doesnt attack me

brazen light
#

You can make an entity target another entity

#

!com target

#

Err

#

!cmd target

magic pebbleBOT
#
Possible Confusion

Did you mean to search for age?

#
Possible Confusion

Did you mean to search for mechanism target?

brazen light
#

!cmd attack

magic pebbleBOT
# brazen light !cmd attack
Group

entity

Syntax

attack [<entity>|...] (target:<entity>/cancel)

Short Description

Makes an entity, or list of entities, attack a target.

Description

The attack command causes a mob entity to attack a target mob entity or player.

This technically can be used on an NPC, but it will trigger the Citizens internal punching-pathfinder.
This attack mode doesn't work well. If you want NPC combat, consider using Sentinel instead: https://github.com/mcmonkeyprojects/Sentinel/blob/master/README.md.

To cancel an attack, use the 'cancel' argument instead of specifying a target.

brazen light
#

You might want to check for any players nearby when the wolf spawns

#

Can't think of a better way atm

#

Unless you want to use loops, which you probably don't