system.run(() => {
let form = new ActionFormData();
const stat = world.scoreboard.getObjective(`stat`).getScore(e);
form.title("§e스텟");
form.body(`당신의 남은 스텟 : ${stat}`)
form.button("§1스폰");
form.button("§1상점")
form.show(e).then(i => {
switch (i.selection) {
case 0:
if (${stat} >= 1 ) {
}
break;
case 1:
tpsh(e)
break;
}
})
});
}``` cant work
#help me
1 messages · Page 1 of 1 (latest)
if (stat >= 1) {
}