Command Block Tutorial #158: Mob Freeze Ray Commands in Minecraft (1.19+)
In this video I will show how to give yourself a special item that allows you to freeze and unfreeze any kind of mob at will.
Commands:
* To get the Mob Freeze Ray (Impulse command Block):
/give @p minecraft:warped_fungus_on_a_stick{display:{Name:"{\"text\":\"Mob Freeze Ray\"}"}}
* To activate the Mob Freeze Ray:
Scoreboard Commands (To add and remove):
- /scoreboard objectives add Mob_Freeze minecraft.used:minecraft.warped_fungus_on_a_stick
- /scoreboard objectives remove Mob_Freeze
1. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:warped_fungus_on_a_stick",tag:{display:{Name:"{\"text\":\"Mob Freeze Ray\"}"}}}}] run scoreboard players set @e[scores={Mob_Freeze=1..}] Mob_Freeze 0
2. Chain Command Block: /execute at @p run data merge entity @e[type=!player,distance=0..4,sort=nearest,limit=1] {NoAI:1b}
3. Chain Command Block: /execute at @p run execute at @e[sort=nearest,limit=1] run particle minecraft:snowflake ~ ~ ~ 1 1 1 1 2500
4. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:warped_fungus_on_a_stick",tag:{display:{Name:"{\"text\":\"Mob Freeze Ray\"}"}}}]}] run scoreboard players set @e[scores={Mob_Freeze=1..}] Mob_Freeze 0
5. Chain Command Block: /execute at @p run data merge entity @e[type=!player,sort=nearest,limit=1] {NoAI:0}
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.