1
[Solved] @a working strangely 15w46c
/scoreboard players set @a flyon 1 {Inventory:[{Slot:100b,tag:{Tags:[0:"flyboots"]}}]}
Leads into /tp @a[score_flying_min=1] ~ ~0.15 ~
Leads into /scoreboard players remove @a[score_flyon_min=1] flying 1
First off, I'm not sure whether this has always happened and I've just never tested it, whether it's a new change, or whether it's a bug. Anyway, so, this code is going off for ALL players when at least one player has a flying > 0. I have one player at 1 point, then a player at -300 points puts their boots on, and every player, even those without their boots on, starts flying, and no one loses flying score. Wut? Why does that happen, and how do I fix?
flyon is a bool for if the players boots are on.
flying is an int that represents fuel.
And when it finds no players with boots on, it runs this:
/scoreboard players set @a flyon 0
Create an account or sign in to comment.
5
1
Cereal, you only posted to confirm what I posted?
Good job...
Good job...
1
Bertiecrafterand 15w46c doesn't exist
1
and 15w46c doesn't exist
and the tag should change:
and the tag should change:
{Inventory:[{Slot:100b,tag:{display:{Name:"flyboots"}}}]}
1
Part of the problem may be that you are using two objectives to determine whether or not a player should fly, but only have one in the tp command. Try changing it to this:
As well, the final command setting flyon to 0 should run every tick, regardless of whether it finds a player with the boots on or not.
/tp @a[score_flying_min=1,score_flyon_min=1] ~ ~0.15 ~
Similarly, the third command should have both objectives as well so that players will not gain negative fuel by keeping the boots on./scoreboard players remove @a[score_flyon_min=1,score_flying_min=1] flying 1
As well, the final command setting flyon to 0 should run every tick, regardless of whether it finds a player with the boots on or not.
1
Ah, I see. Thanks!
Do you do anything other then follow me around correcting my typos? And if I had wanted it to be display, I would have asked for display.
Bertiecrafterand 15w46c doesn't exist
and the tag should change:{Inventory:[{Slot:100b,tag:{display:{Name:"flyboots"}}}]}
Do you do anything other then follow me around correcting my typos? And if I had wanted it to be display, I would have asked for display.