72 posts
Posted 12 April 2015 - 08:38 AM
hello i am trying to find if this is possible i am using a command computer to find the armor in a slot using this page
http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/350240-test-for-a-certain-item-in-an-armor-slot but it keeps giving me ) expected when i try to run it as so commands.scoreboard("players set @a armor 1 {Inventory:[{Slot103b,tag:(display:Name:"mask"}}}]}") can anyone help me.
72 posts
Posted 12 April 2015 - 09:09 AM
nevermind got it myself had to arrange it like so commands.scoreboard("players set @a[{Inventory:[{Slot103b,tag:(display:Name:mask}}}]}] armor 1 ")
nope double checked it and it just used the @a portion for the name in the scoreboard so back to the drawing board lol
1080 posts
Location
In the Matrix
Posted 12 April 2015 - 09:23 AM
Try doing it like this
commands.scoreboard("players set @a armor 1 {Inventory:[{Slot103b,tag:(display:Name:'mask'}}}]}")
The initial error was the use of the "s around mask, which technically exited the string, by changing those to ', they're included in the string and might work.
72 posts
Posted 12 April 2015 - 10:45 AM
nope says false does anyone know if the 1.7.10 version out for forge supports tags in that function or in testfor.
7083 posts
Location
Tasmania (AU)
Posted 12 April 2015 - 12:28 PM
To my limited understanding, that's a 1.8 thing. It's not very well documented; the go-to wiki for all the Minecraft commands notes when they were introduced, but doesn't note when they were changed or what the changes were.
But I've looked around to try to figure out how to detect mobs, and that's the picture I'm getting. 1.8 added a lot of stuff, but good luck finding a side-by-side comparison of it and 1.7.10.
1140 posts
Location
Kaunas, Lithuania
Posted 12 April 2015 - 01:10 PM
Well, you can track-down the changes
here. But 1.7.10 is quite limited in commands compared to 1.8. I had so many ideas for command computers but the problem was that most of my ideas used 1.8 commands and features :|
Edited on 12 April 2015 - 11:11 AM
7083 posts
Location
Tasmania (AU)
Posted 12 April 2015 - 01:54 PM
Well, you can track-down the changes
here.
Great to have, thanks! :)/>
Though I do wish they'd document it alongside the commands themselves.
Edited on 12 April 2015 - 11:55 AM
72 posts
Posted 13 April 2015 - 03:11 AM
that was the conclusion i was drawing as well and im trying to build a work around but i guess i will just have to use a clear command like before. i can give the custom item but have no way to scan for it otherwise