How to detect an item on the ground in Minecraft?

Photo of author
Written By Jonny

HOW TO USE TESTFOR ITEM ON THE GROUND || Minecraft PE Command

Cookie announcer[]

When run in order, such as in a chain of command blocks or functions, these commands will give a random player 5 cookies.

/tag @r add cookie /give @a[tag=cookie] minecraft:cookie 5 /say @a[tag=cookie] has been given 5 cookies! /tag @a[tag=cookie] remove cookie

Proximity Mine[]

By using a condition such as /execute if entity @p[distance=..5,name=!] run hooked to a short clock and one or more TNT blocks via a comparator, the command block can act as an undetectable proximity mine against all players except the placing player.

Wireless redstone[]

Redstone can wirelessly be transmitted by placing a redstone block at a certain location. The downside to this method is that the chunks being transmitted to must be loaded. This method is often used with Adventure maps to trigger more command blocks.

/setblock redstone_block /setblock stone

To not require loading chunks, the scoreboard is needed. The second command will only complete successfully if the first has been run. Either a comparator or chained conditional command blocks can detect the success. The second command block should be set to repeat.

/scoreboard objectives add signal dummy /scoreboard objectives remove signal

FAQ

How do you detect if an entity is on the ground?

detectPos is the x y z coordinate to detect the block. command is any Minecraft command that you want the entity to execute such as summon, give, fill, clone, setblock, tp, xp, kill, etc.

Is there a detect command in Minecraft?

detectPos is the x y z coordinate to detect the block. command is any Minecraft command that you want the entity to execute such as summon, give, fill, clone, setblock, tp, xp, kill, etc.

How do you identify an item in Minecraft?

detectPos is the x y z coordinate to detect the block. command is any Minecraft command that you want the entity to execute such as summon, give, fill, clone, setblock, tp, xp, kill, etc.

How do you show things on the floor in Minecraft?

detectPos is the x y z coordinate to detect the block. command is any Minecraft command that you want the entity to execute such as summon, give, fill, clone, setblock, tp, xp, kill, etc.

 

Leave a Comment