variables:
{dsp.%player%} = 0
{esp.%player%} = 0
{asp.%player%} = 0
{zsp.%player%} = 0
{ksp.%player%} = 0
{zbsp.%player%} = 0
{aasp.%player%} = 0
options:
delay: 1 # zaman
count: 1 # adet
command /dspver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% DSP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&eDemirSpawner "
add arg-2 to {dsp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
command /kspver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% KSP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&aKaktusSpawner "
add arg-2 to {ksp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
command /zbspver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% ZBSP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&aElmasBlock_Spawner "
add arg-2 to {zbsp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/zbspver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/zbspver &c<kullaniciadi> &C<Adet>" to player
on place of a mob spawner:
if name of player's tool is "&eDemirSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
execute console command "manuaddp %player% minecraft.command.setblock"
wait 0.03 seconds
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:iron_ingot,Count:1,Named:&cDemir,}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
send "&e&l » &eDemir Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {demirspawner::*}
add -1 to {dsp.%player%}
add -1 to {aasp.%player%}
on place of a mob spawner:
if name of player's tool is "&aElmasBlock Spawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
execute console command "manuaddp %player% minecraft.command.setblock"
wait 0.03 seconds
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:57,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:60,MinSpawnDelay:160,MaxSpawnDelay:160,MaxNearbyEntities:9999}"
send "&e&l » &aZumrut Block Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {eblockspawner::*}
add -1 to {zbsp.%player%}
add -1 to {aasp.%player%}
command /spbak <offlineplayer>:
permission: SpreyMC.bakmak
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
arg 1 is set:
send "&f&lBeat&6&lNW &eDemir Spawner Sayisi &8= &c%{dsp.%arg 1%}%"
send "&f&lBeat&6&lNW &eAltin Spawner Sayisi &8= &c%{asp.%arg 1%}%"
send "&f&lBeat&6&lNW &eElmas Spawner Sayisi &8= &c%{esp.%arg 1%}%"
send "&f&lBeat&6&lNW &eZumrut Spawner Sayisi &8= &c%{zsp.%arg 1%}%"
send "&f&lBeat&6&lNW &eKaktus Spawner Sayisi &8= &c%{ksp.%arg 1%}%"
send "&f&lBeat&6&lNW &eZumrut Blok Spawner Sayisi &8= &c%{zbsp.%arg 1%}%"
send "&f&lBeat&6&lNW &cToplam Spawner Sayisi &8= &c%{aasp.%arg 1%}%"
stop
else:
send "&f&lBeat&6&lNW &7Lütfen Bir Isim Seciniz"
on place of a mob spawner:
if name of player's tool is "&aKaktusSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
execute console command "manuaddp %player% minecraft.command.setblock"
wait 0.03 seconds
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:81,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:60,MinSpawnDelay:160,MaxSpawnDelay:160,MaxNearbyEntities:9999}"
send "&e&l » &aKaktus Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {kaktussp::*}
add -1 to {ksp.%player%}
add -1 to {aasp.%player%}
command /spver <player> <number> <text>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
if arg 3 is set:
if arg 3 is "demir":
execute console command "/dspver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
if arg 3 is "elmas":
execute console command "/espver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
if arg 3 is "altin":
execute console command "/aspver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
if arg 3 is "zumrut":
execute console command "/zspver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
if arg 3 is "ZumrutBlok":
execute console command "/zbspver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
if arg 3 is "kaktus":
execute console command "/kspver %arg 1% %arg 2%"
send "&f&lBeat&6&lNW &aSpawneri Basariyla Verdiniz!" to player
else:
send "&f&lBeat&6&lNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
else:
send "&f&lBeat&6&lNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
else:
send "&f&lBeat&6&lNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
command /espver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% ESP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&eElmasSpawner "
add arg-2 to {esp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/espver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/espver &c<kullaniciadi> &C<Adet>" to player
command /aspver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% ASP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&eAltinSpawner"
add arg-2 to {asp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/aspver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/aspver &c<kullaniciadi> &C<Adet>" to player
command /zspver [<player>] <number>:
permission: SpreyMC.sp
permission message: &f&lBeat&6&lNW &4Kullanmak Icin Yetkiniz Yok
trigger:
if arg 1 is set:
if arg 2 is set:
execute console command "manuaddp %arg 1% ZSP.Kullanim"
execute console command "give %arg 1% 52 %arg 2% name:&eZumrutSpawner "
add arg-2 to {zsp.%arg-1%}
add arg-2 to {aasp.%arg-1%}
else:
send "&cKullanim : &7/zspver &c<kullaniciadi> &C<Adet>" to player
else:
send "&cKullanim : &7/zspver &c<kullaniciadi> &C<Adet>" to player
on place of a mob spawner:
if name of player's tool is "&eElmasSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
execute console command "manuaddp %player% minecraft.command.setblock"
wait 0.03 seconds
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:diamond,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
send "&e&l » &eElmas Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {elmasspawner::*}
add -1 to {esp.%player%}
add -1 to {aasp.%player%}
on place of a mob spawner:
if name of player's tool is "&eAltinSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 0.03 seconds
execute console command "manuaddp %player% minecraft.command.setblock"
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:gold_ingot,Count:1}},SpawnCount:2,SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
send "&e&l » &eAltin Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {aspawner::*}
add -1 to {asp.%player%}
add -1 to {aasp.%player%}
on place of a mob spawner:
if name of player's tool is "&eZumrutSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 0.03 seconds
execute console command "manuaddp %player% minecraft.command.setblock"
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:emerald,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
send "&e&l » &eZumrut Spawneri başarıyla koydun!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {zspawner::*}
add -1 to {zsp.%player%}
add -1 to {aasp.%player%}
command /spyenile:
trigger:
if player have permission "SpreyMC.SP":
execute console command "sk reload spwnr"
send "&eSprey&FMC &cSkript Basariyla Yenilendi" to player
else:
send "&4Bunu Yapamazsin." to player
command /sp yardim:
trigger:
if player have permission "SpreyMC.SP":
send "&6--------------&f&lBeat&6&lNW&6------------" to player
send "&6/spyenile &aSkripti Yeniler"
send "&6/spver <isim> <adet> <spawner (demir , altin , elmas , zumrut)> &aKisiye Spawner Verir " to player
send "&6/spbak <isim> &a Kisinin Kac Adet Spawnere Sahip Oldugu Gozukur"
send "&6/spsil <isim> &a Kisinin Butun Spawnerlerini Siler."
send "&6--------------&f&lBeat&6&lNW&6------------" to player
command /spsil <player>:
permission: SpreyMC.sp
permission message: &eBunu Kullanamazsin.
trigger:
set {dsp.%arg 1%} to 0
set {esp.%arg 1%} to 0
set {asp.%arg 1%} to 0
set {zsp.%arg 1%} to 0
set {ksp.%arg 1%} to 0
set {aasp.%arg 1%} to 0
execute console command "manudelp %arg 1% DSP.Kullanim"
execute console command "manudelp %arg 1% ESP.Kullanim"
execute console command "manudelp %arg 1% ASP.Kullanim"
execute console command "manudelp %arg 1% ZSP.Kullanim"
send "&f&lBeat&6&lNW &6Basariyla Butun Spawnerler Silindi !" to player
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {demirspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "spver %player% 1 demir "
remove {_1} from {demirspawner::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {elmasspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "spver %player% 1 elmas"
remove {_1} from {elmasspawner::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {aspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "spver %player% 1 altın"
remove {_1} from {aspawner::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {zspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "spver %player% 1 zumrut"
remove {_1} from {zspawner::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {kaktussp::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "spver %player% 1 kaktus"
remove {_1} from {kaktussp::*}