Started by
_Cr1ssG4m3r_
on
Topic category: Help with MCreator software
I want to create a mob that does not move from its spawn place, when the mob hits it, it does not move, it just stays still, nor can it be pushed, how can I achieve this?
Just disable AI
Remove all ai functions but it will still move if pushed or hit. I'm looking for a solution to this myself.
Thank you very much, I will wait for your answer
do on entity tick update, stick entity in cobweb for a tick. However if it falls it freezes in the air
Doesn't work unfortunately
:(
I think the only way without coding is to spawn the mob and onspawn, put 4 BARRIER blocks around them then remove the blocks when it dies.
Thank you very much, how can I achieve this?
Edit entity
Add new procedure under "on initial entity spawn"
(Block) Place [barrier] at x y z+1
(Block) Place [barrier] at x+1 y z
(Block) Place [barrier] at x y z-1
(Block) Place [barrier] at x-1 y z
Then "When entity dies"
Remove block at x y z+1
Remove block at x+1 y z
Remove block at x y z-1
Remove block at x-1 y z
This obviously means you cannot get right next to the mob but shouldn't matter too much, you can still reach to attack etc. Test it and see what you think.
You could also put a barrier block above their head to stop them jumping up when hit too (place block at y+2)
Thank you very much