#show a button in actionform if player has a certain tag

1 messages · Page 1 of 1 (latest)

cloud sparrow
#
if (player.hasTag("kit1")) test.button('kit1')
silver carbon
#

Score instead of tags?

#
const scoreboard = world.scoreboard;
const objective = scoreboard.getObjective('test') || scoreboard.addObjective('test', 'test');
const score = objective.hasParticipant(player) ? objective.getScore(player) : 0;

if (score >= 5) test.button('kit1');
#

Greater or equal