I want to make some decorative "guard" mobs to stand next to my builds. Here is a command I tried to summon an Iron Golem that is frozen:

summon iron_golem ~ ~ ~ {NoAI:1b}

The Iron Golem still was able to move, even with NoAI:1b. Why is that?


Solution 1:

That is weird considering that the command worked perfectly for me. It is also not quite possible that it took damage and moved because NoAI mobs would not move even when attacked, and they won't fall even if you spawn them mid air. Make sure that your syntax is totally correct and try the command again.

(ps: NoAI mobs can still be targetted by hostile mobs and killed so add {Invulnerable:1b})