/scoreboard players set @e[type=Item] ctl 2 {Item:{id:minecraft:torch,Count:1}}

Why does this command not work when I run it on 1.9?

  • Note:i was using 1.9 version Jul 17, 2016 at 8:55
  • Please edit your question to include all information, rather than leaving some of it buried in comments. I tried to put through an edit suggestion, but I'm on mobile, and the suggest edit functionality doesn't work very well at all.
    – TRiG
    Jul 17, 2016 at 19:21

1 Answer 1


When testing for pre-existing data (such as with /testfor, /scoreboard, /testforblock), you must properly declare the data you're looking for as it's saved. The Count tag is saved as a byte, while you've declared it as an integer. You'll append the whole numerical value with a "b" to declare a byte:

/scoreboard players set @e[type=Item] ctl 2 {Item:{id:"minecraft:torch",Count:1b}}

You must log in to answer this question.

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