2

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?

3

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!**}}

There!

  • 1
    Thanks! I didn't know about the {Item} NBT tag. – TheGamerGhast Aug 23 '15 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 Aug 23 '15 at 15:19
  • 1
    @MrLemon Yup! That works too. – Christopher Angelo Aug 23 '15 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.