# MADEN SPAWNER
#
# SilkSpawner eklentisi mob spawner işlevini görür, bu skript ise maden spawner işlevini görmektedir.
# Yani item spawnlamaktadır:
# run player command... sonrasındaki "" içindeki bölüme setblock komutu koyulmuştur.
# Komutun içinde {Item:{id:264,Count:3} bölümü vardır. id itemin kodudur, count bir spawnlayışta kaç adet spawnlayacağıdır.
# Spawner ekleyecekseniz değişkenlerin {sp::isim::*} şeklinde olduğunu unutmayınız. Spawnerları kırmak için elinizde herhangi
# bir kazma olması gerekmektedir. Ayrıca yaratıcı modda spawner kırınca spawner gelmez büyük ihtimal.
#
# Destek almak için beeboy07#1737
#
on place of a spawner:
if tool of player is spawner named "&aElmas &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:264,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fElmas Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::elmas::*}
on break of spawner:
tool of player is any pickaxe # Bahsettiğim şey bu kod, kazma olması gerekiyor kaldırabilirsiniz isterseniz
set {_1} to location of event-block
loop {elmas::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aElmas &7&lSPAWNER" to player
remove {_1} from {sp::elmas::*}
# ELAMS BLOK
on place of a spawner:
if tool of player is spawner named "&aElmas Blok &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:57,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fElmas Blok Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::elmasblok::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::elmasblok::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aElmas Blok &7&lSPAWNER" to player
remove {_1} from {sp::elmasblok::*}
# ZÜMRÜT
on place of a spawner:
if tool of player is spawner named "&aZümrüt &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:388,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fZümrüt Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::zumrut::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::zumrut::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aZümrüt &7&lSPAWNER" to player
remove {_1} from {sp::zumrut::*}
# ZÜMRÜT BLOK
on place of a spawner:
if tool of player is spawner named "&aZümrüt Blok &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:133,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fZümrüt Blok Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::zumrutblok::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::zumrutblok::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aZümrüt Blok &7&lSPAWNER" to player
remove {_1} from {sp::zumrutblok::*}
# ALTIN
on place of a spawner:
if tool of player is spawner named "&aAltın &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:266,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fAltın Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::altin::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::altin::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aAltın &7&lSPAWNER" to player
remove {_1} from {sp::altin::*}
# ALTIN BLOK
on place of a spawner:
if tool of player is spawner named "&aAltın Blok &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:41,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fAltın Blok Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::altinblok::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::altinblok::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aAltın Blok &7&lSPAWNER" to player
remove {_1} from {sp::altinblok::*}
# DEMIR
on place of a spawner:
if tool of player is spawner named "&aDemir &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:265,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fDemir Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::demir::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::demir::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aDemir &7&lSPAWNER" to player
remove {_1} from {sp::demir::*}
# DEMIR BLOK
on place of a spawner:
if tool of player is spawner named "&aDemir Blok &7&lSPAWNER":
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.0000000000000001 second
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:42,Count:3}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:35,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:150,MaxNearbyEntities:1}" as op
send "&6&l» &7Bir &fDemir Blok Spawner &7yerleştirdiniz!"
set {_1} to location of event-block
add {_1} to {sp::demirblok::*}
on break of spawner:
tool of player is any pickaxe
set {_1} to location of event-block
loop {sp::demirblok::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
give a spawner named "&aDemir Blok &7&lSPAWNER" to player
remove {_1} from {sp::demirblok::*}
command /spver [<player>] [<text>] [<int>]:
permission: op
permission message: &cHata &8» &fBu komutu girmek için yetkiniz yok.
trigger:
arg 1 is set:
arg 2 is set:
arg 3 is set:
if arg 2 is "demir":
message "&7Oyuncuya &ademir &7spawner verildi."
give a spawner named "&aDemir &7&lSPAWNER" to arg 1
if arg 2 is "demirblok":
message "&7Oyuncuya &ademir blok &7spawner verildi."
give a spawner named "&aDemir Blok &7&lSPAWNER" to arg 1
if arg 2 is "altın" or "altin":
message "&7Oyuncuya &aaltın &7spawner verildi."
give a spawner named "&aAltın &7&lSPAWNER" to arg 1
if arg 2 is "altınblok" or "altinblok":
message "&7Oyuncuya &aaltın blok &7spawner verildi."
give a spawner named "&aAltın Blok &7&lSPAWNER" to arg 1
if arg 2 is "zümrüt" or "zumrut":
message "&7Oyuncuya &azümrüt &7spawner verildi."
give a spawner named "&aZümrüt &7&lSPAWNER" to arg 1
if arg 2 is "zümrütblok" or "zumrutblok":
message "&7Oyuncuya &azümrüt blok &7spawner verildi."
give a spawner named "&aZümrüt Blok &7&lSPAWNER" to arg 1
if arg 2 is "elmas":
message "&7Oyuncuya &aelmas &7spawner verildi."
give a spawner named "&aElmas &7&lSPAWNER" to player
if arg 2 is "elmasblok":
message "&7Oyuncuya &aelmas blok &7spawner verildi."
give a spawner named "&aElmas Blok &7&lSPAWNER" to player
arg 2 is not "demir" or "demirblok" or "altın" or "altin" or "altınblok" or "altinblok" or "zumrut" or "zümrüt" or "zümrütblok" or "zumrutblok" or "elmas" or "elmasblok":
message "&3Kullanım &8» &7Maden spawner vermek için &e/spver <oyuncu> <maden ismi> <miktar>"
message "&7Maden isimleri: &fdemir&7, &fdemirblok&7, &faltın&7, &faltınblok&7, &fzümrüt&7, &fzümrütblok&7, &felmas&7, &felmasblok"
else:
message "&3Kullanım &8» &7Maden spawner vermek için &e/spver <oyuncu> <maden ismi> <miktar>"
else:
message "&3Kullanım &8» &7Maden spawner vermek için &e/spver <oyuncu> <maden ismi> <miktar>"
else:
message "&3Kullanım &8» &7Maden spawner vermek için &e/spver <oyuncu> <maden ismi> <miktar>"