I am working on the code to create a store GUI inside a store GUI!
But I got stuck in a 'loop'... Oh my god!
Please fix the error below. Help me, genius!
I used some Korean for the function.
I tried to change it one by one, but I gave up because it took too long.
Please understand me!
This is error code.
But I got stuck in a 'loop'... Oh my god!
Please fix the error below. Help me, genius!
I used some Korean for the function.
I tried to change it one by one, but I gave up because it took too long.
Please understand me!
Code:
every seconds:
loop all players:
if {다나잡화점 메뉴.%loop-player%} is "buy":
open chest with 5 rows named "좋은 물건들을 많이 구해놓았어요!" to loop-player
format slot 10 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 12 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 14 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 16 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 28 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 30 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 32 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 34 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
if {다나잡화점 메뉴.%loop-player%} is "sell":
open chest with 5 rows named "광물은 언제든지 환영이라구요!" to loop-player
format slot 10 of loop-player with coal named "석탄 1개" with lore "구매가 : 1 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 1" and "/clear %loop-player% minecraft:coal 1"]
format slot 12 of loop-player with charcoal named "목탄 5개" with lore "구매가 : 1 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 1" and "/clear %loop-player% minecraft:charcoal 5"]
format slot 14 of loop-player with iron ingot named "철괴 1개" with lore "구매가 : 5 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 5" and "/clear %loop-player% minecraft:iron_ingot 1"]
format slot 16 of loop-player with redstone dust named "레드스톤 10개" with lore "구매가 : 10 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 10" and "/clear %loop-player% minecraft:redstone_dust 10"]
format slot 28 of loop-player with lapis lazuli named "청금석 10개" with lore "구매가 : 10 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 10" and "/clear %loop-player% minecraft:lapis_lazuli 10"]
format slot 30 of loop-player with gold ingot named "금괴 1개" with lore "구매가 : 20 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 20" and "/clear %loop-player% minecraft:gold_ingot 1"]
format slot 32 of loop-player with diamond named "다이아몬드 1개" with lore "구매가 : 에메 한 세트 (64개)" to close then run [execute op command "/give %loop-player% minecraft:emerald 64" and "/clear %loop-player% minecraft:diamond 1"]
format slot 34 of loop-player with netherite ingot named "네더라이트 1개" with lore "구매가 : 100 에메" to close then run [execute op command "/give %loop-player% minecraft:emerald 100" and "/clear %loop-player% minecraft:netherite_ingot 1"]
if {다나잡화점 메뉴.%loop-player%} is "special":
open chest with 5 rows named "현재 준비중이에요!" to loop-player
format slot 19 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 21 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 23 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
format slot 25 of loop-player with white stained glass named "품절" with lore "상품이 품절되었어요..." to close
else:
set {다나잡화점 메뉴.%loop-player%} to "none"
This is error code.
Code:
there's no loop that matches 'loop-player' with "blah blah blah..."