I looked everywhere on the internet/youtube and there is nothing about activating redstone when a scoreboard is at 0. What I want is when a player (not objective, player) is at 0, it stays at 0. How can I accomplish this? When I try
testfor (player)[score_Stats=0] is says the UUID is in invalid format. Perhaps it's because I'm using 1.8 but what am I supposed to do?
What is the exact command you're using? Keep in mind that players are no longer automatically tracked in 1.8, thus they won't have a detectable score of 0. To get around this, you can 'add 0' to all players, which forces players to be tracked onto the scoreboard while not modifying the scores of previously-tracked players:
Here's the exact scenario. I'm making a game using scoreboards. There are five imaginary people but are still on scoreboard. (I added them to the objective) and the 0-5 scale represents their health. 5 = excellent and 0 = dead. The problem is I don't want the 0 to turn back into a 1 since there are ways to heal in the game. It would be weird to come back to life. How do I prevent this?
Here's the exact scenario. I'm making a game using scoreboards. There are five imaginary people but are still on scoreboard. (I added them to the objective) and the 0-5 scale represents their health. 5 = excellent and 0 = dead. The problem is I don't want the 0 to turn back into a 1 since there are ways to heal in the game. It would be weird to come back to life. How do I prevent this?
So you're using fake players? In that case, you cannot use /testfor or player selectors. Player selectors only detect online players. If you need to detect a fake player's score, you must use /scoreboard's "test" function:
/scoreboard players test [player] [objective] [min] [max]
/scoreboard players test NAME Stats 0 0
The above returns true if a tracked player named "NAME" has a Stats score of exactly 0.
testfor (player)[score_Stats=0] is says the UUID is in invalid format. Perhaps it's because I'm using 1.8 but what am I supposed to do?
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
/testfor @a[score_Scorename_min=0,score_Scorename=0]
score_Scorename_min is the minimum and score_Scorename is the maximum.
My recent creation
- Apocalyptic Disasters - Command block mod
My best Minigame
- Hangman
My best one command creation
- 1.9 Jetpack in minecraft
This isn't necessarily required if the system is not expected to reduce the value below 0.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
My recent creation
- Apocalyptic Disasters - Command block mod
My best Minigame
- Hangman
My best one command creation
- 1.9 Jetpack in minecraft
So you're using fake players? In that case, you cannot use /testfor or player selectors. Player selectors only detect online players. If you need to detect a fake player's score, you must use /scoreboard's "test" function:
The above returns true if a tracked player named "NAME" has a Stats score of exactly 0.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/