Intermediate · 1 block

Clear nearby dropped items

Press a button to remove dropped items within 30 blocks of the Command Block, reducing leftovers in an arena or farm.

Choose in-game screen
Java Edition Bedrock Edition
Bedrock Edition (stable)

What you need

Before placing the blocks

  • 1 Command Block
  • 1 button
  • Add a warning because deleted items cannot be recovered

Expected result

Test after setup

Dropped-item entities within a 30-block radius are removed.

Configure one block at a time

Open the game and match these values

The copy button copies only Command Input. Choose every other value in the Command Block screen.

1

Dropped-item cleanup block

Place the block near the center of the area and add a warning before players can press it.

Command Block
Dropped-item cleanup block
Impulse
Unconditional
Needs Redstone
0
kill @e[type=item,r=30]
Previous Output
-
Block Type:
Impulse
Condition:
Unconditional
Redstone:
Needs Redstone

If it does not work

Check these four things first

  1. Cheats are enabled and you have Operator permission
  2. Needs Redstone or Always Active matches the example
  3. Chain Block arrows face the same direction and follow the previous block
  4. Read Previous Output to find the command that failed
Read the Command Block basics