nexi
nexi is the best!
Pet skriptim var sorunsuz çalışıyor ancak problem şu ki örneğin pet çağırıyor birisi fakat pet onu takip etmiyor kafasına göre takılıyor :D
bunu ayarlabilirmisiniz
bu arada eğer skripti istiyorsanız editleyip kullanabilirsiniz ama sunucumun ismiyle kullanmayın!
[DOUBLEPOST=1516041353,1516041320][/DOUBLEPOST]@bertek41
@Deichor
bunu ayarlabilirmisiniz
bu arada eğer skripti istiyorsanız editleyip kullanabilirsiniz ama sunucumun ismiyle kullanmayın!
Kod:
on load:
loop {pet.listesi::*}:
kill loop-value
on disconnect:
"%{pet.listesi::*}%" contains "%{pet.%player%}%":
kill {pet.%player%}
delete {pet.%player%}
remove {pet.%player%} from {pet.listesi::*}
command /pet [<text>]:
permission: pet.perm
permission message: &cBu komutu kullanmaya yetkin yok.
trigger:
if arg 1 is "gönder":
"%{pet.listesi::*}%" contains "%{pet.%player%}%":
message "&6&lPrivacyFC &8» &7Petiniz geri gönderildi.."
kill {pet.%player%}
delete {pet.%player%}
remove {pet.%player%} from {pet.listesi::*}
stop trigger
else:
message "&6&lPrivacyFC &8» &cPetiniz bulunmamaktadir.."
delete {pet.%player%}
stop trigger
if arg 1 is "inek":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 cow at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "kurt":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 wolf at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "domuz":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 pig at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "koyun":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 sheep at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "leopar":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 ocelot at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "tavuk":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 chicken at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 is "golem":
{pet.%player%} isn't set:
message "&6&lPrivacyFC &8» &7Petiniz yaniniza çağirildi."
spawn 1 iron golem at player's location
set name of spawned entity to "&e%player% &8» &6Hayvanı"
set {pet.%player%} to spawned entity
add spawned entity to {pet.listesi::*}
while {pet.%player%} is spawned entity:
wait 6 tick
if distance between player and last spawned entity is less than 15:
make last spawned entity pathfind to player with speed 1
else if distance between player and last spawned entity is bigger than 15:
teleport last spawned entity to player
stop trigger
if arg 1 isn't set:
wait 6 tick
open chest with 1 rows named "&aPet Menüsü" to player
format slot 0 of player with 383:92 named "&e✿ &dİnek &e✿" to close then run [make player execute command "pet inek"]
format slot 1 of player with 383:90 named "&e✿ &dDomuz &e✿" to close then run [make player execute command "pet domuz"]
format slot 2 of player with 383:91 named "&e✿ &dKoyun &e✿" to close then run [make player execute command "pet koyun"]
format slot 3 of player with 383:92 named "&e✿ &dKurt &e✿" to close then run [make player execute command "pet kurt"]
format slot 4 of player with 383:98 named "&e✿ &dLeopar &e✿" to close then run [make player execute command "pet leopar"]
format slot 5 of player with 383:93 named "&e✿ &dTavuk &e✿" to close then run [make player execute command "pet tavuk"]
format slot 6 of player with 383:100 named "&e✿ &dIron Golem &e✿" to close then run [make player execute command "pet golem"]
format slot 8 of player with 399 named "&cPeti Gönder" to close then run [make player execute command "pet gönder"]
on death of blaze or pig or witch or chicken or horse or wolf or cow or sheep:
name of victim contains "'in &6Hayvanı":
clear drops
on entity target:
name of event-entity contains "'in &6Hayvanı":
cancel event
on combust:
name of event-entity contains "'in &6Hayvanı":
cancel event
on damage of entity:
name of victim contains "'in &6Hayvanı":
message "&6&lPrivacyFC &8» &7Petlere saldiramazsiniz.." to attacker
cancel event
on teleport:
wait 3 tick
loop 4 times:
teleport {pet.%player%} to player
@Deichor