1

/scoreboard help

TSchweibz's Avatar TSchweibz3/28/15 8:19 pm
1 emeralds 272 2
4/12/2015 11:17 am
YTCereal's Avatar YTCereal
/scoreboard players set @a HasSword 1 {Inventory:[{id:"minecraft:wooden_sword",tag:{ench:[{id:16,lvl:1}]}}]}

I am trying to test to see if a player has a wooden sword with sharpness 1 in their inventory, when they do it will give them a score of 1, HasSword is a dummy objective, When i do this it says "The dataTag does not match for TSchweibz", any ideas?
Posted by TSchweibz's Avatar
TSchweibz
Level 2 : Apprentice Miner
0

Create an account or sign in to comment.

2

1
04/12/2015 11:17 am
Level 22 : Expert Network
YTCereal
YTCereal's Avatar
Use EntityData or TestFor.
1
04/12/2015 11:14 am
Level 49 : Master Engineer
hokage3211
hokage3211's Avatar
A lot of times it's just fiddling around with figuring out which part is and is not being met, try removing parts of the thing like the "ench:" area or the "id;" area and see which is actually not being met, then maybe look up the proper form of it if you might have made a typo in some way.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome