How to freeze mobs in minecraft

This video shows you four very simple ways to freeze mobs in Minecraft. The first way is to summon a no AI mob (Which is a Minecraft Java exclusive feature)….
There are other answers below:
Command block trick Tutorial (Minecraft PE, Minecraft Java) – YouTube. ️ How to FREEZE MOBS in Minecraft! Command block trick Tutorial (Minecraft PE, Minecraft Java) If playback doesn’t begin …
This command used to freeze mobs. but it no longer works. what command will freeze mobs now? Mojang changed entitydata to data. /data modify entity @e [type=villager,limit=1] NoAI set value 1. /data modify entity @e [type=villager,limit=1] Silent set value 1.
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.
in a commandblock right above the one above. tp @e [type=minecraft:donkey,sort=nearest,limit=1]
There are basically 4 ways to freeze time in Minecraft: changing the Random Tick Speed, setting the day/night cycle, immobilizing mobs and using addons.
However, when falling sand and gravel will freeze when you do /freeze, they will have to keep dropping down until they reach an integer y coordinate value, following the physics of Minecraft. So they will only freeze at an integer value, say, y: 71, but they never can freeze when they are at a decimal value, such as y: 71.4 General Mobs:
You can do it by removing all movement components in a behavior pack if you want to affect all mobs in your world. If you need them to stay in a specific spot, you can put /tp @e[r=1,x=(spot you want them to stay x value),y=
Command Block [For Mobs which doesn’t burn in the Sun light]: /summon (Mob) ~ ~1 ~ {NoAI:1,Silent:1,Invulnerable:1} Command Block [For Mobs which burn in the Sun light – Zombies, Skeletons etc.] /summon (Mob) ~ ~1 ~ {NoAI:1,Silent:1,Invulnerable:1,Equipment:[{},{},{},{},{id:minecraft:arrow}]} ===== Version: 1.8
This is a pretty complicated problem, I would suggest freezing all mobs isn’t the way to go. Instead possibly spawning a thrown potion of slowness with infinite time as the mob is spawned. Then clearing the effects once you detect the player is in the boat (Still trying to think of a way to detect that)