#Anyone know a way I can make a mob be able to break certain blocks?
1 messages · Page 1 of 1 (latest)
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
I would recommend using destroy instead
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
but you cant replace specific blocks with destroy i thought?
Destroy just like "mines" the block
So the block itself drops
And when the block drops you can trigger other commands
It's how mass block detection functions in commands
i know but to break specific blocks you cant use destroy
that might break the surrounding blocks instead of the intended ones right?
You can, you just specify the block id, and afterwards do "destroy"
example? i want to use this for a few things
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
huh, alright