Welp the Hypixel fourms failed me the only community I know so I turn to you now (Literly I waitined 20 minutes and I didn't even get 1 view on my forums post and I was the most recent post) so HAVE AT THE![/p]
I got a problem. Playing in normal vanilla 1.14.4 Minecraft (badlion) setting up a kit pvp server and working on the hub command. currently to "ready-up" for the game you have to drink a normal potion (Then it gives you a leaping potion to un-ready). I need to figure out how to have a scoreboard objective detect a used leaping potion. So far I have to scoreboard, both detecting potion drinks but two separate commands blocks detecting when the score goes up. The first checks if you have a score on the "ready-up" scoreboard of 1 and the tag "un-ready". If so, it gives you the "ready" tag and removes the "un-ready" tag. The command shown below.[/p]
execute if score @p ready-up = @e[name=base,limit=1] base
(I have an armor stand named "base" on a scoreboard called "base" for a interval)[/p]
Now this works and it uses a comparator to connect the rest of the command chain but another command is trying to detect if a player has a score of 1 on the "un-ready" scoreboard whish also increases every time a player drinks a potion.[/p]
Here is the detection command[/p]
execute if entity @a[scores={un-ready=1..},tag=ready]
I thought setting up the command so it only effects players with the tag "ready" and also have a score of on 1 on the "un-ready" scoreboard. Then I realized after the first chain of commands executes giving the person the tag "ready" by drinking a water bottle it also increases their score on "ready" by 1 causing the commands to think that the player is trying to "un-ready" so you see I'm in a bit of loop.[/p]
Then I though if there was a way for the scoreboard command to detect the diffrence between a leaping potion (means "ready", used to un-ready") and a normal potion (un-craftable water bottle meaning "un-ready" used to ready) for this to work.[/p]
Of course I can always go back and change the item but this looks nicer and I don't like giving up.[/p]
Thanks, Chickblock2 (Chick-o-Block2)[/p]
I got a problem. Playing in normal vanilla 1.14.4 Minecraft (badlion) setting up a kit pvp server and working on the hub command. currently to "ready-up" for the game you have to drink a normal potion (Then it gives you a leaping potion to un-ready). I need to figure out how to have a scoreboard objective detect a used leaping potion. So far I have to scoreboard, both detecting potion drinks but two separate commands blocks detecting when the score goes up. The first checks if you have a score on the "ready-up" scoreboard of 1 and the tag "un-ready". If so, it gives you the "ready" tag and removes the "un-ready" tag. The command shown below.[/p]
(I have an armor stand named "base" on a scoreboard called "base" for a interval)[/p] Now this works and it uses a comparator to connect the rest of the command chain but another command is trying to detect if a player has a score of 1 on the "un-ready" scoreboard whish also increases every time a player drinks a potion.[/p] Here is the detection command[/p]
I thought setting up the command so it only effects players with the tag "ready" and also have a score of on 1 on the "un-ready" scoreboard. Then I realized after the first chain of commands executes giving the person the tag "ready" by drinking a water bottle it also increases their score on "ready" by 1 causing the commands to think that the player is trying to "un-ready" so you see I'm in a bit of loop.[/p]
Then I though if there was a way for the scoreboard command to detect the diffrence between a leaping potion (means "ready", used to un-ready") and a normal potion (un-craftable water bottle meaning "un-ready" used to ready) for this to work.[/p]
Of course I can always go back and change the item but this looks nicer and I don't like giving up.[/p]
Thanks, Chickblock2 (Chick-o-Block2)[/p]