#make bees angry at any mob that isn't bee
1 messages · Page 1 of 1 (latest)
💬 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
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)
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!
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
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?
yeah that works, ty
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