#make bees angry at any mob that isn't bee

1 messages · Page 1 of 1 (latest)

worthy cedarBOT
#
Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

atomic sandal
#

change @p to @e[type=!bee,limit=1,sort=nearest]

#

because that can only take one entity at a time, so we need the limit=1, and sort=nearest sorts them in order of distance (self explanatory)

cobalt bane
#

is it possible to run 2 type=!<mob> in 1 command?
my thinking on this is since it's saying what mob it isn't

#

it works, they all smack zombie

#

ty for the help!

cobalt bane
#

trying to add it into datapack (tick file)

execute at @e[type=bee, name="Guard Bee"] run execute as @e[type=minecraft:bee,limit=1,sort=nearest,tag=!angered] at @s run data modify entity @s AngryAt set from entity @e[team=!Bee,limit=1,sort=nearest] UUID
do the command at the bee spawned, and run the next command as a bee that isn't tagged already. Anger them to anyone not on the same team

execute at @e[type=bee, name="Guard Bee"] run execute as @e[type=minecraft:bee,limit=1,sort=nearest,tag=!angered] at @s run tag @e[type=minecraft:bee,limit=1,sort=nearest,tag=!angered] add angered
tag them

atomic sandal
#

unless I understand incorrectly, could you execute as @e[type=bee,name="Guard Bee",tag=!angered] at @s run data modify entity @s AngryAt set from entity @e[team=!Bee,limit=1,sort=nearest] UUID instead?

cobalt bane
#

yeah that works, ty

cobalt bane
#

trying to figure this out and been stuck on it-

covers the thing that's summoning the bees

execute at @a[scores={usedBStaff=1..},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{beestick:1b,Damage:0..24s}, }}] run <summon bee>

idk how to make it so it works if its damage is below 25