#Anyone know a way I can make a mob be able to break certain blocks?

1 messages · Page 1 of 1 (latest)

whole bloom
#

Like how zombies can break doors to get to its target

The current idea I've got uses armorstand on every block that I want to be able to be broken, and then do some scoreboard stuff and all that. But that would use a lot of entities so I'd rather not

viscid notch
#

you could maybe set up a very specific block underneath where you want the entity to break blocks then detect when that entity is 2 blocks above that specific block and fill ^^^1 ^^^1 air [] replace <block you want it to destroy>

this is the way i would do this without changing entity behavior (which would be way easier and less performance heavy than just using commands)

#

if you want it to break a bunch of different blocks though, i dont recommend this

potent basin
#

I did this once for a zombie map I was working on

#

You could trigger like a "break" sound whenever an entity is near that dropped block

#

And then do /kill after

#

More functionality that way

viscid notch
potent basin
#

So the block itself drops

#

And when the block drops you can trigger other commands

#

It's how mass block detection functions in commands

viscid notch
#

i know but to break specific blocks you cant use destroy

#

that might break the surrounding blocks instead of the intended ones right?

potent basin
viscid notch
#

example? i want to use this for a few things

potent basin
#

do /setblock ~~~ (some sort of invisible block with no collision) afterwards do the same command but add destroy at the end

#

The block will remain but drop itself

viscid notch
#

huh, alright