So, I'm trying to make an "Only One Command" thing by hand for the first time, and I need to use the "Floor Crafting" technique. But, the thing is, I can't testfor or delete a CERTAIN item. For example, I want to delete a block of sand that's a Tile Entity(Item). How do I do this?

1 Answer 1


You can run this in a clock:

/testfor @e[type=Item]

If you need to test an certain item, You can use this:

/testfor @e[type=Item] {Item:{id:**Change me to block id!**}}


  • 1
    Thanks! I didn't know about the {Item} NBT tag. Commented Aug 23, 2015 at 15:09
  • 1
    If you need to use a command that doesn't support NBT matching (kill, execute, etc.), you can assign a scoreboard score to the item entity first, then use it in your target selector.
    – MrLemon
    Commented Aug 23, 2015 at 15:19
  • 1
    @MrLemon Yup! That works too.
    – Angelo
    Commented Aug 23, 2015 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .