command spawner <text>:
aliases: sp
executable by: players
trigger:
if arg 1 is "al":
open chest inventory with 5 rows named "Spawner Satın Al" to player
format slot 0 of player with diamond named "Elmas Spawnerı" with lore "Fiyat -Parayı Girin-" to run "spsat diamond Elmas %player% 10000" #bura her tür için çoğaltılacak 10000 yerine istediğiniz fiyatı girin
else if arg 1 is "aç":
open chest inventory with 5 rows named "Spawnerlarım" to player
set {_count} to 0
loop {%player%.sp::*}:
format slot {_count} of player with diamond named "%{%loop-value%.a}% Spawnerı" with lore "Level %{%loop-value%.l}%" to run "spawnerac %loop-value% %player%"
add 1 to {_count}
command spawnerac <text> <player>:
executable by: console
trigger:
open chest inventory with 5 rows named "Elmas Spawnerı %arg 1%" to arg 2
format slot 0 of arg 2 with spawner named "Elmas Spawnerı" with lore "Level %{%arg 1%.l}%" and "Level Yükseltmek için Tıkla -Parayı Girin-" to run ""
set {_slot} to 8
while {%arg 1%.s} is greater than 63:
add 1 to {_slot}
loop 64 times:
add {%arg 1%.i} to slot {_slot} of current inventory of arg 2
remove 64 from {%arg 1%.s}
add 1 to {_slot}
loop {%arg 1%.s} times:
add {%arg 1%.i} to slot {_slot} of current inventory of arg 2
set {%arg 1%.s} to 0
set {mevcutinv.%arg 2%} to arg 1
command spawnerlevelatlamenu <text> <player>:
executable by: console
trigger:
open chest inventory with 1 rows named "Level Atla" to arg 2
format slot 3 of arg 2 with red glass named "İptal" to run ""
format slot 5 of arg 2 with green glass named "Satın Al" with lore arg 1 to run "" #arg 1 ile spawnerin idsini oradan bütün bilgileri çağırabilirsiniz. Lore ile fiyatı yazabilirsiniz
command spsat <item> <text> <player> <text>:
executable by: console
trigger:
if player is not op: #burada arg 4 ile para kontrolu yapılacak
#burada para alınacak
add 1 to {count}
add {count} to {%arg 3%.sp::*}
set {%{count}%.i} to arg 1
set {%{count}%.a} to arg 2
set {%{count}%.l} to 1
set {%{count}%.s} to 0
send "%{count}% - %{%{count}%.i}% - %{%{count}%.l}%" to arg 3 #bu satır silinecek
else:
send "<red>Paranız yetersiz" to arg 3
on join:
add player to {spawnerUretim::*}
on quit:
remove player from {spawnerUretim::*}
every 10 second:
loop {spawnerUretim::*}:
loop {%loop-value%.sp::*}:
add {%loop-value-2%.l} to {%loop-value-2%.s}
#send "{%loop-value-2%.s}" to console # bu satır silinecek
on inventory close:
if display name of event-inventory is "Elmas Spawnerı":
send "%amount of diamonds in current inventory%" to player
add amount of diamonds in current inventory to {%{mevcutinv.%player%}%.s}
send "%{mevcutinv.%player%}% - %{%{mevcutinv.%player%}%.s}%"
clear {mevcutinv.%player%}
on inventory click:
if event-inventory's display name contains "Spawnerı":
if event-slot is 0:
set {_ad::*} to event-inventory's display name split at " "
if player is not op: #burada {_ad::3} ile spawnerın tüm bilgilerine oradan ürettiği eşyaya leveline ulaşabilir, oradan leveler atlama fiyatını çağırabilirsiniz, ben ayarlamadım kendiniz bir değişken ve değer atadıktan sonra çağırabilirsiniz.
execute console command "spawnerlevelatlamenu %{_ad::3}% %player%"
else:
send "<red>Paranız yetersiz" to player
cancel event
else if event-inventory's display name is "Level Atla":
if event-item is green glass:
if player is not op: #fiyatı camın lore'undan okuyabilir ya da başka çözüm bulabilirsiniz
#parayı alın
close player's inventory
set {_lore::*} to lore of event-item
send "%{_lore::1}%" to player
add 1 to {%{_lore::1}%.l}
else:
close player's inventory
command /temizle: #burayı sadece gerekirse açın
trigger:
message "temizleniyor" to sender
loop 50 times: #sayı elle girilecek
message "%loop-value%" to sender
clear {%loop-value%.i}
clear {%loop-value%.a}
clear {%loop-value%.l}
clear {%loop-value%.s}
set {count} to 0
clear {%player%.sp::*}