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
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
-
1If 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.– MrLemonAug 23, 2015 at 15:19 -
1