Emre Ertek
Odunlara Vur Vur Vur!
- Katılım
- 26 Ekim 2024
- Mesajlar
- 26
- Elmaslar
- 0
- Puan
- 80
- Yaş
- 22
- Konum
- Eskişehir
- Minecraft
- BA1909
Discord:
Emrebaba123
Merhaba yazdığım skript
sunucumun lobisinde çalışmıyor daha doğrusu diğer günlük ödül skriptlerinide denedim fakat hiçbiri çalışmıyor kodda hata varsa yardımcı olur musunuz veya çalışmamasının sebebi nedir acaba ?options:
cooldown: 24 hours
command /daily:
trigger:
if {lastReward.%player%} is not set or {lastReward.%player%} < now - {@cooldown}:
# Sandık oluştur
make a chest with 4 rows and 6 slots at player
open the chest for player
set slot 22 of player's opened inventory to minecraft:minecart named "Ödül" with lore "Tıklayarak ödül al!"
# Son ödül zamanını ayarla
set {lastReward.%player%} to now
else:
send "Henüz ödül almadın. Lütfen 24 saat bekle." to player
on inventory click:
if name of event-inventory is "Ödül":
if event-slot is 22:
# Kullanıcıya 10 coin ver
execute console command "eco give %player% 10"
# Kullanıcıya mystery box ver
execute console command "gmysterybox give %player% 1"
# Kullanıcıya bilgi mesajı gönder
send "Günlük ödülünü aldın! 10 coin ve 1 mystery box kazandın." to player
# Sandığı kapat
close the inventory of player