1

Scoreboard Shop Help Wanted!

xXOathKeeperXx's Avatar xXOathKeeperXx5/17/15 9:12 pm
1 emeralds 304 3
5/19/2015 9:51 pm
Chron's Avatar Chron
I am making my first (probably most successful yet. Haven't ran out of ideas yet either. ) survival map and I really need help. I'm using a Minecraft command generator that I downloaded from the Minecraft forums and I am not sure how totally accurate it is. I got "/testfor @p[score_Emeralds_min=5] " for the first part of the store in one Command Block, then "/scoreboard players remove @p Emeralds 5" for the second Command Block, and here's the last one "/give @p stone_button 1"

The problem:
Whenever I pressed the button to make it work it said "KaileeMaylene was found!" (Which is my Minecraft username.) It never gave me a button, nor did it remove my 5 Emeralds. (Scoreboard objective name) When I rewritten the code exactly like it was, it gave me a message in the Previous Output saying that the format was invalid. It was the same exact code and now it tells me it's invalid? It told me it found me (for some odd reason... ^^; ) before I rewritten it? O_o I even copied and pasted the same code and still tells me that.

Anyway I really need help, and probably even with the pattern on how to make the store work correctly. It's usually letting me go OVER 5 Emeralds and making go down the negatives, instead of stopping at 0 without a button. Sometimes when I tested it, it only gave me the button, but the scoreboard is not affected..

Thanks for any suggestions! ^^

NOTE: Please do not send me links to videos. I am on a limited data wifi and we are very low on data right now, so I can't watch anything. Please show me pictures or describe them with high detail. Thank you!
Posted by xXOathKeeperXx's Avatar
xXOathKeeperXx
Level 17 : Journeyman Artist
6

Create an account or sign in to comment.

3

1
05/19/2015 9:51 pm
Level 47 : Master Cowboy
Chron
Chron's Avatar
Looks like the question's been answered. /lock
1
05/19/2015 1:19 pm
Level 31 : Artisan Engineer
TerraScript
TerraScript's Avatar
Aw man, you beat me to it!
1
05/18/2015 3:47 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
It looks like the command it gave you is correct, just make sure you're using a comparator as the output for the testfor command. That said, you don't actually need to use testfor in this case, and I would suggest you didn't. Just run these two commands in this order when the button is pressed:give @p[score_Emeralds_min=5] stone_buttonscoreboard players remove @p[score_Emeralds_min=5] Emeralds 5Whenever a player presses the button, they will be given a button and have 5 emeralds removed, but only if they have enough emeralds in the first place.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome