command /deneme:
trigger:
open chest with 1 row named "&cSatış" to player
wait 1 tick
format slot 0 of player with lapis named "&3deneme1" with lore "deneme12" to close then run [execute player command "lapissat"]
format slot 1 of player with redstone named "&3deneme2" with lore "deneme22" to close then run [execute player command "ktassat"]
format slot 2 of player with coal named "&3deneme3" with lore "deneme32" to close then run [execute player command "komursat"]
command /lapissat:
trigger:
if player has 128 lapis:
remove 128 lapis from player
give 64 diamond to player
wait 0.1 seconds
execute player command "/deneme"
else:
send "&cYeterli Lapisiniz yok!"
command /ktassat:
trigger:
if player has 128 redstone:
remove 128 redstone from player
give 64 diamond to player
wait 0.1 seconds
execute player command "/deneme"
else:
send "&cYeterli Kızıltaşınız yok!"
command /komursat:
trigger:
if player has 128 coal:
remove 128 coal from player
give 64 diamond to player
wait 0.1 seconds
execute player command "/deneme"
else:
send "&cYeterli kömürünüz yok!"