Code:
format gui slot 10 of player with 5 of red wool named "&4&l-5 Diamanter" with lore "" to run:
remove 5 from {_antal}
send "%{_antal}%"
format gui slot 11 of player with 1 of red wool named "&4&l-1 Diamant" with lore "" to run:
remove 1 from {_antal}
send "%{_antal}%"
format gui slot 13 of player with {_antal} of diamonds named "&3Spil om &e&l%{_antal}% Diamanter" with lore "" to run:
send "%{_antal}%"
format gui slot 15 of player with 1 of green wool named "&a&l+1 Diamanter" with lore "" to run:
add 1 to {_antal}
send "%{_antal}%"
format gui slot 16 of player with 5 of green wool named "&a&l+5 Diamanter" with lore "" to run:
add 5 to {_antal}
send "%{_antal}%"
format gui slot 17 of player with 10 of green wool named "&a&l+10 Diamant" with lore "" to run:
add 10 to {_antal}
send "%{_antal}%"
Can someone explain to my why {_antal} doesn't change when I press the item