I would like to have a command that makes a item that when I throw it will freeze mobs for 100 s in a 200 block area (trigger a command). how can I do this?
Minecraft – How to make a command be triggered when an item is throwed
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – how to make setblock a command block with a command that is executed at a certain player
- Minecraft Commands – How to Kill Mobs Using /kill Without Dropping Loot
- Minecraft – command block command to see if there are any mobs in a player’s area
- Minecraft – How to make command blocks teleport players away from an area when they don’t have a specific item
Best Answer
Have the following commands repeating, in this order:
You can change
{Item:{id:"minecraft:ice",tag:{display:{Name:"Freeze"}}}}
to the tags you want to identify the item by. Currently, it's a block of ice renamed "Freeze".You can also change
/effect @e[type=!Player,r=200] slowness 100 50
to whatever command you want to activate when the item is thrown.