command /compress:
trigger:
while player is online:
if player has 9 lapis:
remove 9 lapis from player's inventory
give player 1 lapis block
else:
exit 1 loop
wait 3 ticks```
this will compress al ingots, don't remove wait 3 ticks or you will crash the server
#Converting Ingots to Blocks in bulk
1 messages · Page 1 of 1 (latest)
It’s not checking, it’s just running while the player is online
well, while is an if that just runs until it doesn't meet the req
While is a section, if is a condition, two different things
So poorly explained, you are right
just check if they have 9 lapis in the while loop
Or just do some quick math, no need for a loop
Thanks