command /spawnersat <text> <player>:
executable by: console
description: Spawner satar.
trigger:
if arg-1 is "koyun":
if arg-2 is not op: # buraya para kontrolünü giriniz
#buraya para alma komutunu giriniz.
give spawner named "Koyun Spawnerı" to arg-2
else:
message "<red>Spawner almak için yeterli paranız yok" to arg-2
# buraya else if ile diğer spawner türlerini farklı fiyatlar ile ekleyebilirsiniz.
on place of spawner:
set {_x} to x location of event-location
set {_y} to y location of event-location
set {_z} to z location of event-location
set {_x} to {_x} - 0.5
set {_y} to {_y} - 0.5
set {_z} to {_z} - 0.5
if name of held item is "Koyun Spawnerı":
execute console command "/setblock %{_x}% %{_y}% %{_z}% spawner{Delay:200,SpawnPotentials:[{Weight:1,Entity:{id:item,Item:{id:""minecraft:mutton"",Count:1b}}},{Weight:1,Entity:{id:item,Item:{id:""minecraft:white_wool"",Count:1b}}},{Weight:1,Entity:{id:experience_bottle}}]} destroy"
#buraya else if ile her tür spawneri ekleyebilirsiniz.
add event-location to {spawnerlar::*}
set {spawnerad.%event-location%} to name of held item
on break of spawner:
loop {spawnerlar::*}:
if loop-value is event-location:
give spawner named {spawnerad.%event-location%} with lore {spawnerlevel.%event-location%} to player
remove event-location from {spawnerlar::*}
clear {spawnerad.%event-location%}
clear {spawnerid.%event-location%}
#clear drops
stop loop