nightblue13
Yeni bir Steve doğdu!
- Katılım
- 1 Kasım 2018
- Mesajlar
- 2
- Tepki puanı
- 0
- Puanları
- 0
Dakikalar içinde aktif Minecraft sunucunu kur! Lag’sız, düşük pingli TR lokasyon ile kendi dünyanı oluştur, arkadaşlarınla oyna Hemen başla
başlıktan da belli oldugu gıbı bı komud ıstıyorum skrıpte sadece spawner olusturma var bana spawner lıst , kaydedıcı ve oyunculara verme komudu skrıptı atıyorum lutfen yardımcı olun Skrıpt Alıntıdır .
Kod:
options:
seviyeKatsayisi: 250000 # Her seviye yükseldiğinde "Seviye X 250 000" kadar para isteyecek
saniyeSeviyesi: 75#Her yükseltmede kaç level isteyeceği?
on load:
create a gui with id "spy" with chest with 5 rows named "&0[&6KSP&0]&8 Yükseltme Menüsü":
make gui slot numbers between 0 and 9 and numbers between 17 and 27 and numbers between 35 and 46 with gray glass pane named " "
set {_x} to 21
loop 5 times:
make gui slot {_x} to white glass pane named "&8%loop-value%.&7 Yüksetlme."
add 1 to {_x}
make gui slot 19 with white glass pane named "&8Yükseltme&7 Türü."
# -------------------------- #
function editSPYM(p:player, location: location):
edit gui "spy": # function
make gui slot 20 with mob spawner named "&8""%{ksp::spawners::%{_location}%::name}%""&7 Hakkında Bilgi:" with lore "&7Adı: &8%{ksp::spawners::%{_location}%::name}% ||&7 Lokasyonu: &8%{ksp::spawners::%{_location}%::location}% ||&7 Materyal'i: &8%{ksp::spawners::%{_location}%::material}% ||&7 Saniye'si: &8%{ksp::spawners::%{_location}%::saniye}% ||&7 Seviye'si: &8%{ksp::spawners::%{_location}%::seviye}% ||&7 Kime ait: &8%{ksp::spawners::%{_location}%::player}%"
make gui slot 11 with barrier named "&c&mSaniye'yi &4&mdüşürmek&c&m için &c&mtıkla&7!" with lore "&7EXP seviyen &cyetersiz&7.(%75 - {_p}'s level%'e daha &cihtiyacın&7 var.)":
send "&7[&6KSP&7] &7› EXP level'in &cyetersiz&7.({@saniyeSeviyesi} EXP seviyesine daha &cihtiyacın&7 var.)" to {_p}
make gui slot numbers between 30 and 34 with 0 blaze rod named "&7Henüz yükseltilmemiş."
make gui slot 29 with barrier named "&c&mSeviye'yi &4&myükseltmek&c&m için &c&mtıkla&7!" with lore "&7EXP seviyen &cyetersiz&7.(%75 - {_p}'s level%'e daha &cihtiyacın&7 var.)":
send "&7[&6KSP&7] &7› EXP level'in &cyetersiz&7.({@saniyeSeviyesi} EXP seviyesine daha &cihtiyacın&7 var.)" to {_p}
set {_x} to x coord of {_location}
set {_y} to y coord of {_location}
set {_z} to z coord of {_location}
set {_saniye} to {ksp::spawners::%{_location}%::saniye}
set {_seviye} to {ksp::spawners::%{_location}%::seviye}
if {_saniye} isn't 1:
if {_p}'s level > {@saniyeSeviyesi}:
make gui slot 11 with anvil named "&7Saniye'yi &adüşürmek&7 için &8tıkla&7!":
saniyeDusur(player, {_location})
else:
make gui slot 11 with barrier named "&c&mSaniye'yi &4&mdüşürmek&c&m için &c&mtıkla&7!" with lore "&cSon seviye'ye&4 yükseltilmiş."
if {_seviye} isn't 5:
if {_p}'s balance > ({_seviye} * {@seviyeKatsayisi}):
make gui slot 29 with anvil named "&7Seviye &ayükseltmek&7 için &8tıkla&7!":
seviyeYukselt(player, {_location})
else:
make gui slot 29 with barrier named "&c&mSeviye'yi &4&myükseltmek&c&m için &c&mtıkla&7!" with lore "&cSon seviye'ye&4 yükseltilmiş."
make gui slot 10 with stick named "&8Saniye&7 Yükseltmeleri" with lore "&8""&8%{ksp::spawners::%{_location}%::name}%&7&8""&7 Hakkında bilgi: || &7Saniye: &8%{_saniye}%&7"
make gui slot 28 with blaze rod named "&8Seviye Yükseltmeleri" with lore "&8""&8%{ksp::spawners::%{_location}%::name}%&7&8""&7 Hakkında bilgi: || &7Seviye: &8%{_seviye}%"
send "%{_saniye}%" to {_p}
set {_x} to 16
loop 5 times:
if {_x} < 12:
stop loop
make gui slot {_x} with loop-value of stick named "&8%loop-value%.Saniye'ye&7 düşürülmüş"
remove 1 from {_x}
set {_x} to 16
loop {_saniye} - 1 times:
if {_saniye} is 1:
stop loop
if {_x} < 12:
stop loop
make gui slot {_x} with 0 stick named "&7Henüz yükseltilmemiş."
remove 1 from {_x}
set {_x} to 30
loop {_seviye} times:
if {_x} > 34:
stop loop
make gui slot {_x} with loop-value of blaze rod named "&8%loop-value%.Seviye'ye&7 yükseltilmiş"
add 1 to {_x}
if {ksp::spawners::%{_location}%::player} isn't {_p}:
make gui slot 11 and 29 with barrier named "&c&mSpawner'ı &4&mgeliştirmek&c&m için &c&mtıkla&7!" with lore "&8Bu spawner'ın &csahibi değilsiniz!&8 (&8Sahibi: &7%{ksp::spawners::%{_location}%::player}%&8)"
open gui "spy" to {_p}
function seviyeYukselt(p:player, location: location):
set {_x} to x coord of {_location}
set {_y} to y coord of {_location}
set {_z} to z coord of {_location}
set {_saniye} to {ksp::spawners::%{_location}%::saniye}
set {_seviye} to {ksp::spawners::%{_location}%::seviye}
play sound "random.anvil_use" at {_location} for {_p}
if {ksp::spawners::%{_location}%::seviye} != 5:
remove {_seviye} * {@seviyeKatsayisi} from {_p}'s balance
add 1 to {_seviye}
execute console command "manuaddp %{_p}% minecraft.command.setblock"
wait 5 tick
set {_saniye} to {_saniye} * 20
execute {_p} command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:%{ksp::spawners::%{_location}%::material}%,Count:%{_seviye}%b}},SpawnCount:1,SpawnRange:1,Delay:%{_saniye}%,MinSpawnDelay:%{_saniye}%,MaxSpawnDelay:%{_saniye}%,RequiredPlayerRange:%{_seviye} * 10%}"
set {_saniye} to {_saniye} / 20
execute console command "manudelp %{_p}% minecraft.command.setblock"
set {ksp::spawners::%{_location}%::seviye} to {_seviye}
send "&7[&6KSP&7] &7› &aBaşarıyla&7 Seviye yükselyildi" to {_p}
editSPYM({_p}, {ksp::spawners::%{_location}%::location})
else:
send "&7[&6KSP&7] &7› En fazla &85.Seviye'ye yükseltebilirsiniz&7." to {_p}
function saniyeDusur(p:player, location: location):
set {_x} to x coord of {_location}
set {_y} to y coord of {_location}
set {_z} to z coord of {_location}
set {_saniye} to {ksp::spawners::%{_location}%::saniye}
set {_seviye} to {ksp::spawners::%{_location}%::seviye}
play sound "random.anvil_use" at {_location} for {_p}
if {ksp::spawners::%{_location}%::saniye} != 1:
remove {@saniyeSeviyesi} from {_p}'s level
remove 1 from {_saniye}
execute console command "manuaddp %{_p}% minecraft.command.setblock"
wait 5 tick
set {_saniye} to {_saniye} * 20
execute {_p} command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:%{ksp::spawners::%{_location}%::material}%,Count:%{_seviye}%b}},SpawnCount:1,SpawnRange:1,Delay:%{_saniye}%,MinSpawnDelay:%{_saniye}%,MaxSpawnDelay:%{_saniye}%,RequiredPlayerRange:%{_seviye} * 10%}"
set {_saniye} to {_saniye} / 20
execute console command "manudelp %{_p}% minecraft.command.setblock"
set {ksp::spawners::%{_location}%::saniye} to {_saniye}
send "&7[&6KSP&7] &7› &aBaşarıyla&7 saniye'yi düşürdün" to {_p}
editSPYM({_p}, {ksp::spawners::%{_location}%::location})
else:
send "&7[&6KSP&7] &7› En fazla &81.Saniye'ye düşürebilirsiniz&7." to {_p}
command /ksp <text> <text> <int> <int>:
usage: &7[&6KSP&7] &7› Kullanım: ""/KSP <Spawner'ın İlk adı|Text> <Spawner'ın Materyali|Text> <Saniye|Int> <Seviye|Int>"" "
permission: ksp.getspawner
trigger:
if arg-4 is set:
if arg-3 > 0:
give a mob spawner named "%arg-1% &7Spawner" with lore "&7Materyal: &8%arg-2%||&7Saniye: &8%arg-3%||&7Seviye: &8%arg-4%" to player
else:
send "&7[&6KSP&7] &7› Kullanım: ""&8/KSP &7<Spawner'ın İlk adı|&8Text&7> <Spawner'ın Materyali|&8Text&7> <Saniye|&8Int&7> <Seviye|&8Int&7>"""
on place of mob spawner:
if name of player's tool contains "&7Spawner":
set {_lore::*} to lore of player's tool split at "||"
set {_location} to location of event-block
play sound "fire.ignite" at {_location} for player
set {_x} to player's tool's name
replace " &7Spawner" in {_x} with ""
replace "&7" in {_x} with ""
set {ksp::spawners::%{_location}%::name} to {_x} #adını kaydet
set {ksp::spawners::%{_location}%::location} to {_location} # Lokasyon kaydet
set {_x} to {_lore::1}
replace "&7Materyal: &8" in {_x} with "" #&7Materyal: &8%arg-2%||&7Saniye: &8%arg-3%||&7Seviye: &8%arg-4%" to player
set {ksp::spawners::%{_location}%::material} to {_x} # Materyal kaydet
set {_x} to {_lore::2}
replace "&7Saniye: &8" in {_x} with ""
set {ksp::spawners::%{_location}%::saniye} to {_x} parsed as integer# saniye kaydet
set {_x} to {_lore::3}
replace "&7Seviye: &8" in {_x} with ""
set {ksp::spawners::%{_location}%::seviye} to {_x} parsed as integer# seviye kaydet
set {_x} to x coord of {_location}
set {_y} to y coord of {_location}
set {_z} to z coord of {_location}
set {ksp::spawners::%{_location}%::player} to player
set {ksp::spawners::%{_location}%::lore} to player's tool's lore
wait 1 tick
execute console command "manuaddp %player% minecraft.command.setblock"
set {ksp::spawners::%{_location}%::saniye} to {ksp::spawners::%{_location}%::saniye} * 20
execute player command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:%{ksp::spawners::%{_location}%::material}%,Count:%{ksp::spawners::%{_location}%::seviye}%b}},SpawnCount:1,SpawnRange:1,Delay:%{ksp::spawners::%{_location}%::saniye}%,MinSpawnDelay:%{ksp::spawners::%{_location}%::saniye}%,MaxSpawnDelay:%{ksp::spawners::%{_location}%::saniye}%,RequiredPlayerRange:%{ksp::spawners::%{_location}%::seviye} * 10%}"
set {ksp::spawners::%{_location}%::saniye} to {ksp::spawners::%{_location}%::saniye} / 20
execute console command "manudelp %player% minecraft.command.setblock"
send "&7[&6KSP&7] &7› &7Adı: &8%{ksp::spawners::%{_location}%::name}%&7 || Materyal: &8%{ksp::spawners::%{_location}%::material}%&7 || Saniye: &8%{ksp::spawners::%{_location}%::saniye}%&7 || Seviye: &8%{ksp::spawners::%{_location}%::seviye}%&7 Spawner'ı &abaşarıyla&7 yerleştirdin"
send " "
send "&7Bu spawner'ın &8sahibi&7 artık: &a%player%&7."
on right click on mob spawner:
wait 1 tick
set {_location} to location of event-block
if {ksp::spawners::%{_location}%::location} is set:
editSPYM(player, {_location})
on break of mob spawner:
if {ksp::spawners::%location of event-block%::location} is set:
if {ksp::spawners::%location of event-block%::player} is player:
set {_location} to location of event-block
cancel event
set block to air
give a mob spawner named "%{ksp::spawners::%location of event-block%::name}% &7Spawner" with lore "&7Materyal: &8%{ksp::spawners::%{_location}%::material}%||&7Saniye: &8%{ksp::spawners::%{_location}%::saniye}%||&7Seviye: &8%{ksp::spawners::%{_location}%::seviye}%" to player
send "&7[&6KSP&7] &7› ""&7%{ksp::spawners::%location of targeted block%::name}% &7Spawner""&7 Adlı spawner verildi!"
delete {ksp::spawners::%{_location}%::*}
else:
send "&7[&6KSP&7] &7› &8Bu spawner'ın &csahibi değilsiniz!&8 (&8Sahibi: &7%{ksp::spawners::%{_location}%::player}%&8)"
cancel event[CODE]