#I want the endermans and the bees spawn in anger, and when some mob are close to me apply an effect
1 messages · Page 1 of 1 (latest)
I want the endermans and the bees spawn in anger, and when some mob are close to me apply an effect
If you just need the trigger for that, you can use the command: execute as <player> at @s if entity @e[type=taglib:monster, distance=..10] run effect...
(the taglib type is from a tags library I made. It adds a few tags that could help you)
https://github.com/HeDeAnTheonlyone/Taglib
Spawning mobs in anger is afaik only possible when you set a specific uuid (the entity they target)
Ya when you summon an enderman or bee, you can set the AngryAt property:
summon minecraft:enderman ~ ~ ~ {Tags:[anger_target]}
execute as @p run data modify entity @e[tag=anger_target,limit=1] AngryAt set from entity @s UUID