- Mesajlar
- 1,091
- En iyi cevaplar
- 0
- Beğeniler
- 1,069
- Puanları
- 3,120
- Ruh hali
Arkadaşlar sunucumda kullanmak için kodlamıştım sonradan forumda paylaşayım dedim. Belki birilerinin işine yarar .
V2.0
+ Kurttan başka moblarda eklendi . Örümcek ve blaze sahibi dahil hiçbir oyuncuya saldırmaz.
+ Eğilip pete sağ tıklarsanız menüsü açılır. (Yeni özellikler v3 .0'da eklenecek)
+ Pete direk sağ tıklarsanız üstüne binersiniz. (v3.0'da pet sürülebilecek)
V3.0
+ Ayarlar bölümü eklendi. Mesajların tümü artık kolayca değiştirilebilir.
+ birçok hata giderildi. Kodlar Yeniden düzenlendi.
+ /bugdüzelt komutu ile buglar düzeltilebilir.
+ Köylü peti eklendi.
V3.1
+ Köylü petini kovalayan zombiler düzeltildi.
+ Köylü petinin menüsü eklendi.
Not: Ayaklı sandık skriptinden uyarlanarak yapılmıştır.
Link: https://forum.gamer.com.tr/konu/tue...gelistirilmis-sueruemue-ile-uecretsiz.281327/
V3.1
+ Köylü petini kovalayan zombiler düzeltildi.
+ Köylü petinin menüsü eklendi.
Kod:
options:
tag: &2[&6Pet&2]
cagirilmis: &cPet zaten çağırılmış!
cagirdin: &7Petini yanına çağırdın.
yolladin: &7Petini yolladın.
yetkiyok: &cBu komutu kullanabilmek için yetkin yok!
cagirilmamis: &cPetini çağırmadan onu nasıl yollamayı düşünüyorsun? :)
cagiramazsin: &cBu bölgede petini yanına çağıramazsın!
bugduzeltildi: &cBug&alar başarıyla düzeltildi.
command /pet [<text>]:
trigger:
if player has permission "pet.kullanma":
argument 1 is not set:
send "&8/----------------------[&6&lPet&8]-----------------------"
send "&8| &a&l* &7&oPeti çağırmak için: &c/pet <petismi>"
send "&8| &a&l* &7&oPeti yollamak için: &c/pet yolla"
send "&8|"
send "&8| &e&lPetler: &3Kurt, Tavuk, Domuz, İnek, Koyun, Örümcek, Blaze, Köylü"
send "&8\----------------------[&6&lPet&8]-----------------------"
stop
argument 1 isn't "kurt" or "tavuk" or "domuz" or "inek" or "koyun" or "örümcek" or "blaze" or "slime" or "köylü" or "yolla" or "bugdüzelt":
execute player command "pet"
stop
argument 1 is "yolla":
if {%player%.petivarmi} is set:
loop all entities:
if name of loop-entity contains "&6%player%&7'in Peti":
delete loop-entity
send "{@tag} {@yolladin}" to player
delete {%player%.petivarmi}
stop
if {%player%.petivarmi} is not set:
send "{@tag} {@cagirilmamis}"
stop
argument 1 is "bugdüzelt":
if player has permission "pet.bugduzelt":
loop all entities:
name of loop-entities contains "&7'in Peti"
delete loop-entities
loop all players:
delete {%loop-player%.petivarmi}
send "{@tag} {@bugduzeltildi}"
stop
else:
send "{@tag} {@yetkiyok}"
stop
if {%player%.petivarmi} is not set:
argument 1 is "kurt":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby wolf at player's location
set name of spawned wolf to "&6%player%&7'in Peti"
set {_kurt} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_kurt} is alive:
make {_kurt} pathfind to player with speed 1.2
wait 3 tick
while {_kurt} isn't alive:
stop
argument 1 is "tavuk":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 chicken at player's location
set name of spawned chicken to "&6%player%&7'in Peti"
set {_tavuk} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_tavuk} is alive:
make {_tavuk} pathfind to player with speed 1.2
wait 3 tick
while {_tavuk} isn't alive:
stop
argument 1 is "domuz":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby pig at player's location
set name of spawned pig to "&6%player%&7'in Peti"
set {_domuz} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_domuz} is alive:
make {_domuz} pathfind to player with speed 1.2
wait 3 tick
while {_domuz} isn't alive:
stop
argument 1 is "inek":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby cow at player's location
set name of spawned cow to "&6%player%&7'in Peti"
set {_inek} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_inek} is alive:
make {_inek} pathfind to player with speed 1.2
wait 3 tick
while {_inek} isn't alive:
stop
argument 1 is "koyun":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby sheep at player's location
set name of spawned sheep to "&6%player%&7'in Peti"
set {_koyun} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_koyun} is alive:
make {_koyun} pathfind to player with speed 1.2
wait 3 tick
while {_koyun} isn't alive:
stop
argument 1 is "örümcek":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 spider at player's location
set name of spawned spider to "&6%player%&7'in Peti"
set {_orumcek} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_orumcek} is alive:
make {_orumcek} pathfind to player with speed 1.2
wait 3 tick
while {_orumcek} isn't alive:
stop
argument 1 is "blaze":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 blaze at player's location
set name of spawned blaze to "&6%player%&7'in Peti"
set {_blaze} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_blaze} is alive:
make {_blaze} pathfind to player with speed 1.2
wait 3 tick
while {_blaze} isn't alive:
stop
argument 1 is "slime":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 slime at player's location
set name of spawned slime to "&6%player%&7'in Peti"
set {_slime} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_slime} is alive:
make {_slime} pathfind to player with speed 1.2
wait 3 tick
while {_slime} isn't alive:
stop
argument 1 is "köylü":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby villager at player's location
set name of spawned villager to "&6%player%&7'in Peti"
set {_koylu} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_koylu} is alive:
make {_koylu} pathfind to player with speed 0.7
wait 3 tick
while {_koylu} isn't alive:
stop
if {%player%.petivarmi} is set:
send "{@tag} {@cagirilmis}"
stop
else:
send "{@tag} {@yetkiyok}"
stop
on damage:
if name of victim contains "&7'in Peti":
cancel event
on death of wolf or chicken or pig or cow or sheep or spider or blaze or slime:
if name of victim contains "&7'in Peti":
clear drops
stop
on right click on wolf or chicken or pig or cow or sheep or spider or blaze or slime or villager:
entity's name is "&6%player%&7'in Peti":
if player is sneaking:
wait 3 tick
open chest with 1 row named "&5%player%&8'in Peti" to player
format slot 0 of player with redstone named "&cPeti Yolla" to close then run [make player execute command "pet yolla"]
stop
on target:
if targeted entity is a player:
if name of targeted entity contains "&7'in Peti":
cancel event
if targeted entity is a villager:
if name of targeted entity contains "&7'in Peti":
cancel event
on damage:
if victim is player:
if name of attacker contains "&7'in Peti":
cancel event
on quit:
loop all entities:
if name of loop-entities contains "&6%player%&7'in Peti":
delete {%player%.petivarmi}
delete loop-entities
stop
on teleport:
loop all entities:
if name of loop-entities contains "&6%player%&7'in Peti":
delete {%player%.petivarmi}
delete loop-entities
stop
Kod:
options:
tag: &2[&6Pet&2]
cagirilmis: &cPet zaten çağırılmış!
cagirdin: &7Petini yanına çağırdın.
yolladin: &7Petini yolladın.
yetkiyok: &cBu komutu kullanabilmek için yetkin yok!
cagirilmamis: &cPetini çağırmadan onu nasıl yollamayı düşünüyorsun? :)
cagiramazsin: &cBu bölgede petini yanına çağıramazsın!
bugduzeltildi: &cBug&alar başarıyla düzeltildi.
command /pet [<text>]:
trigger:
if player has permission "pet.kullanma":
argument 1 is not set:
send "&8/----------------------[&6&lPet&8]-----------------------"
send "&8| &a&l* &7&oPeti çağırmak için: &c/pet <petismi>"
send "&8| &a&l* &7&oPeti yollamak için: &c/pet yolla"
send "&8|"
send "&8| &e&lPetler: &3Kurt, Tavuk, Domuz, İnek, Koyun, Örümcek, Blaze, Köylü"
send "&8\----------------------[&6&lPet&8]-----------------------"
stop
argument 1 isn't "kurt" or "tavuk" or "domuz" or "inek" or "koyun" or "örümcek" or "blaze" or "slime" or "köylü" or "yolla" or "bugdüzelt":
execute player command "pet"
stop
argument 1 is "yolla":
if {%player%.petivarmi} is set:
loop all entities:
if name of loop-entity contains "&6%player%&7'in Peti":
delete loop-entity
send "{@tag} {@yolladin}" to player
delete {%player%.petivarmi}
stop
if {%player%.petivarmi} is not set:
send "{@tag} {@cagirilmamis}"
stop
argument 1 is "bugdüzelt":
if player has permission "pet.bugduzelt":
loop all entities:
name of loop-entities contains "&7'in Peti"
delete loop-entities
loop all players:
delete {%loop-player%.petivarmi}
send "{@tag} {@bugduzeltildi}"
stop
else:
send "{@tag} {@yetkiyok}"
stop
if {%player%.petivarmi} is not set:
argument 1 is "kurt":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby wolf at player's location
set name of spawned wolf to "&6%player%&7'in Peti"
set {_kurt} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_kurt} is alive:
make {_kurt} pathfind to player with speed 1.2
wait 3 tick
while {_kurt} isn't alive:
stop
argument 1 is "tavuk":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 chicken at player's location
set name of spawned chicken to "&6%player%&7'in Peti"
set {_tavuk} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_tavuk} is alive:
make {_tavuk} pathfind to player with speed 1.2
wait 3 tick
while {_tavuk} isn't alive:
stop
argument 1 is "domuz":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby pig at player's location
set name of spawned pig to "&6%player%&7'in Peti"
set {_domuz} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_domuz} is alive:
make {_domuz} pathfind to player with speed 1.2
wait 3 tick
while {_domuz} isn't alive:
stop
argument 1 is "inek":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby cow at player's location
set name of spawned cow to "&6%player%&7'in Peti"
set {_inek} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_inek} is alive:
make {_inek} pathfind to player with speed 1.2
wait 3 tick
while {_inek} isn't alive:
stop
argument 1 is "koyun":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby sheep at player's location
set name of spawned sheep to "&6%player%&7'in Peti"
set {_koyun} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_koyun} is alive:
make {_koyun} pathfind to player with speed 1.2
wait 3 tick
while {_koyun} isn't alive:
stop
argument 1 is "örümcek":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 spider at player's location
set name of spawned spider to "&6%player%&7'in Peti"
set {_orumcek} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_orumcek} is alive:
make {_orumcek} pathfind to player with speed 1.2
wait 3 tick
while {_orumcek} isn't alive:
stop
argument 1 is "blaze":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 blaze at player's location
set name of spawned blaze to "&6%player%&7'in Peti"
set {_blaze} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_blaze} is alive:
make {_blaze} pathfind to player with speed 1.2
wait 3 tick
while {_blaze} isn't alive:
stop
argument 1 is "slime":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 slime at player's location
set name of spawned slime to "&6%player%&7'in Peti"
set {_slime} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_slime} is alive:
make {_slime} pathfind to player with speed 1.2
wait 3 tick
while {_slime} isn't alive:
stop
argument 1 is "köylü":
loop blocks in radius 3 of player:
if player cannot build at the loop-block:
send "{@tag} {@cagiramazsin}"
stop
spawn 1 baby villager at player's location
set name of spawned villager to "&6%player%&7'in Peti"
set {_koylu} to spawned entity
set {%player%.petivarmi} to true
message "{@tag} {@cagirdin}"
while {_koylu} is alive:
make {_koylu} pathfind to player with speed 0.7
wait 3 tick
while {_koylu} isn't alive:
stop
if {%player%.petivarmi} is set:
send "{@tag} {@cagirilmis}"
stop
else:
send "{@tag} {@yetkiyok}"
stop
on damage:
if name of victim contains "&7'in Peti":
cancel event
on death of wolf or chicken or pig or cow or sheep or spider or blaze or slime:
if name of victim contains "&7'in Peti":
clear drops
stop
on right click on wolf or chicken or pig or cow or sheep or spider or blaze or slime:
entity's name is "&6%player%&7'in Peti":
if player is sneaking:
wait 3 tick
open chest with 1 row named "&5%player%&8'in Peti" to player
format slot 0 of player with redstone named "&cPeti Yolla" to close then run [make player execute command "pet yolla"]
stop
on target:
if targeted entity is a player:
if name of entity contains "&7'in Peti":
cancel event
on damage:
if victim is player:
if name of attacker contains "&7'in Peti":
cancel event
on quit:
loop all entities:
if name of loop-entities contains "&6%player%&7'in Peti":
delete {%player%.petivarmi}
delete loop-entities
stop
on teleport:
loop all entities:
if name of loop-entities contains "&6%player%&7'in Peti":
delete {%player%.petivarmi}
delete loop-entities
stop
Kod:
command /pet [<text>]:
trigger:
if player has permission "pet.kullanma":
argument 1 is not set:
send "&8/----------------------[&6&lPet&8]-----------------------"
send "&8| &a&l* &7Peti çağırmak için: &c/pet <petismi>"
send "&8| &a&l* &7Peti yollamak için: &c/pet yolla"
send "&8|"
send "&8| &e&lPetler: &3Kurt, Tavuk, Domuz, İnek, Koyun, Örümcek, Blaze"
send "&8\----------------------[&6&lPet&8]-----------------------"
argument 1 is "kurt":
if {%player%.petivarmi} is not set:
spawn 1 baby wolf at player's location
set name of spawned wolf to "&6%player%&7'in Peti"
set {_kurt} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_kurt} is alive:
make {_kurt} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "tavuk":
if {%player%.petivarmi} is not set:
spawn 1 chicken at player's location
set name of spawned chicken to "&6%player%&7'in Peti"
set {_tavuk} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_tavuk} is alive:
make {_tavuk} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "domuz":
if {%player%.petivarmi} is not set:
spawn 1 baby pig at player's location
set name of spawned pig to "&6%player%&7'in Peti"
set {_domuz} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_domuz} is alive:
make {_domuz} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "inek":
if {%player%.petivarmi} is not set:
spawn 1 baby cow at player's location
set name of spawned cow to "&6%player%&7'in Peti"
set {_inek} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_inek} is alive:
make {_inek} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "koyun":
if {%player%.petivarmi} is not set:
spawn 1 baby sheep at player's location
set name of spawned sheep to "&6%player%&7'in Peti"
set {_koyun} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_koyun} is alive:
make {_koyun} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "örümcek":
if {%player%.petivarmi} is not set:
spawn 1 spider at player's location
set name of spawned spider to "&6%player%&7'in Peti"
set {_orumcek} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_orumcek} is alive:
make {_orumcek} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "blaze":
if {%player%.petivarmi} is not set:
spawn 1 blaze at player's location
set name of spawned blaze to "&6%player%&7'in Peti"
set {_blaze} to spawned entity
set {%player%.petivarmi} to true
message "&2[&6Pet&2] &7Petini yanına çağırdın."
while {_blaze} is alive:
make {_blaze} pathfind to player with speed 1.2
wait 3 tick
if {%player%.petivarmi} is set:
send "&2[&6Pet&2] &cPet zaten çağırılmış!"
stop
argument 1 is "yolla":
loop all entities:
if name of loop-entity contains "&6%player%":
delete loop-entity
delete {%player%.petivarmi}
send "&2[&6Pet&2] &7Petini yolladın." to player
stop
on damage:
if name of victim contains "&7'in Peti":
cancel event
on death of wolf or chicken or pig or cow or sheep or spider or blaze:
if name of victim contains "&7'in Peti":
clear drops
stop
on right click on wolf or chicken or pig or cow or sheep or spider or blaze:
entity's name is "&6%player%&7'in Peti":
if player is sneaking:
wait 3 tick
open chest with 1 row named "&5%player%&8'in Peti" to player
format slot 0 of player with redstone named "&cPeti Yolla" to close then run [make player execute command "pet yolla"]
stop
make player ride clicked entity
on target:
if targeted entity is a player:
if name of entity contains "&7'in Peti":
cancel event
Not: Ayaklı sandık skriptinden uyarlanarak yapılmıştır.
Link: https://forum.gamer.com.tr/konu/tue...gelistirilmis-sueruemue-ile-uecretsiz.281327/
Son düzenleme: