Çözüldü Pet'e Özel Fazladan Can

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

CellatFaruk

Odunlara Vur Vur Vur!
Katılım
31 Mart 2019
Mesajlar
43
Elmaslar
6
Puan
1.985
Minecraft
MertCKA

Discord:

MertCKA #4895

Arkadaşlar bende bir pet skripti var her şey ayarlı fakat petin özelliğini ayarlayamadım. Pet sahiplerinin ekstra 10 canı olsun istiyorum. line 30 ve line 59 da arkadaşlar Yardımcı olursanız sevinirim.
skript:

Kod:
options:
    pet: &cPet Menüsü &7açılıyor...
    parça: rose red
    parçaisim: &c&lPet Parcasi
       
on rightclick with rose red:
    player's held item's name contains "{@parçaisim}":
        execute player command "pet"

command /pet [<text>]:
    trigger:
        arg 1 isn't set:
            message "{@pet}"
            wait 0.5 second
            open chest with 1 row named "&cPET" to player
            wait 3 tick
            format slot 4 of player with wolf spawn egg named "&f&lKurt" with lore "&7250 PET Parçası gerekiyor..." to close then run [make player execute command "pet kurt"]
        arg 1 is "kurt":
            {pet.%player%} isn't set:
                if player has 250 rose red named "{@parçaisim}":
                    kill {pet.%player%}
                    wait 0.3 second
                    set {petsahibi.%player%} to true
                    remove 250 rose red named "{@parçaisim}" from player
                    message "&c&lPET &8» &aBaşarılı! Petin Çağırılıyor..."
                    wait 1 second
                    message "&c&lPET &8» &aPetin Çağırıldı!"
                    spawn 1 wolf at player's location
                    set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                    add player's health to 10
                    heal the player
                    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
                else:
                    message "&c&lPET &8» &aPET Parçası Yetmiyor..."
        arg 1 is "gonder":
            "%{pet.listesi::*}%" contains "%{pet.%player%}%":
                message "&c&lPET &8» &aPET Gönderildi!"
                kill {pet.%player%}
                delete {pet.%player%}
                remove {pet.%player%} from {pet.listesi::*}
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
                delete {pet.%player%}
                stop trigger
        arg 1 is "cagir":
            if {petsahibi.%player%} is true:
                kill {pet.%player%}
                wait 0.3 second
                message "&c&lPET &8» &aPetin Çağırıldı!"
                spawn 1 wolf at player's location
                set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                add player's health to 10
                heal the player
                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
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
               
on damage of entity:
    name of victim contains "' in &c&lPET' i":
        chance of 50%:
            message "&c&lKURT &8» &aHırrr... Hırrr..." to attacker
            cancel event
        else:
            cancel event
   
command /ver:
    trigger:
        player is op:
            give 250 {@parça} named "{@parçaisim}" to player
       
on teleport:
    wait 3 tick
    loop 4 times:
        wait 1 second
        teleport {pet.%player%} to player
       
on combust:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
       
on entity target:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
       
on death of wolf:
    name of victim contains "' in &c&lPET' i":
        clear drops

on disconnect:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}
       
on join:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}
 
Son düzenleme:
Kod:
options:
    pet: &cPet Menüsü &7açılıyor...
    parça: rose red
    parçaisim: &c&lPet Parcasi
      
on rightclick with rose red:
    player's held item's name contains "{@parçaisim}":
        execute player command "pet"

command /pet [<text>]:
    trigger:
        arg 1 isn't set:
            message "{@pet}"
            wait 0.5 second
            open chest with 1 row named "&cPET" to player
            wait 3 tick
            format slot 4 of player with wolf spawn egg named "&f&lKurt" with lore "&7250 PET Parçası gerekiyor..." to close then run [make player execute command "pet kurt"]
        arg 1 is "kurt":
            {pet.%player%} isn't set:
                if player has 250 rose red named "{@parçaisim}":
                    kill {pet.%player%}
                    wait 0.3 second
                    set {petsahibi.%player%} to true
                    remove 250 rose red named "{@parçaisim}" from player
                    message "&c&lPET &8» &aBaşarılı! Petin Çağırılıyor..."
                    wait 1 second
                    message "&c&lPET &8» &aPetin Çağırıldı!"
                    spawn 1 wolf at player's location
                    set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                    add players health to 10
                    heal the player
                    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
                else:
                    message "&c&lPET &8» &aPET Parçası Yetmiyor..."
        arg 1 is "gonder":
            "%{pet.listesi::*}%" contains "%{pet.%player%}%":
                message "&c&lPET &8» &aPET Gönderildi!"
                kill {pet.%player%}
                delete {pet.%player%}
                remove {pet.%player%} from {pet.listesi::*}
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
                delete {pet.%player%}
                stop trigger
        arg 1 is "cagir":
            if {petsahibi.%player%} is true:
                kill {pet.%player%}
                wait 0.3 second
                message "&c&lPET &8» &aPetin Çağırıldı!"
                spawn 1 wolf at player's location
                set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                add players health to 10
                heal the player
                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
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
              
on damage of entity:
    name of victim contains "' in &c&lPET' i":
        chance of 50%:
            message "&c&lKURT &8» &aHırrr... Hırrr..." to attacker
            cancel event
        else:
            cancel event
  
command /ver:
    trigger:
        player is op:
            give 250 {@parça} named "{@parçaisim}" to player
      
on teleport:
    wait 3 tick
    loop 4 times:
        wait 1 second
        teleport {pet.%player%} to player
      
on combust:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
      
on entity target:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
      
on death of wolf:
    name of victim contains "' in &c&lPET' i":
        clear drops

on disconnect:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}
      
on join:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}

Merhaba böyle dener misiniz? Player's yazmışsınız Players yaptım.
 
[15:17:34 ERROR]: Can't understand this condition/effect: add players health to 10 (pet.sk, line 30: add players health to 10')
[15:17:34 ERROR]: Can't understand this condition/effect: add players health to 10 (pet.sk, line 59: add players health to 10')

Konsolda bu hatayı alıyorum
 
[15:17:34 ERROR]: Can't understand this condition/effect: add players health to 10 (pet.sk, line 30: add players health to 10')
[15:17:34 ERROR]: Can't understand this condition/effect: add players health to 10 (pet.sk, line 59: add players health to 10')

Konsolda bu hatayı alıyorum

Böyle deneyin %arg-1% olarak değiştirdim.

Kod:
options:
    pet: &cPet Menüsü &7açılıyor...
    parça: rose red
    parçaisim: &c&lPet Parcasi
      
on rightclick with rose red:
    player's held item's name contains "{@parçaisim}":
        execute player command "pet"

command /pet [<text>]:
    trigger:
        arg 1 isn't set:
            message "{@pet}"
            wait 0.5 second
            open chest with 1 row named "&cPET" to player
            wait 3 tick
            format slot 4 of player with wolf spawn egg named "&f&lKurt" with lore "&7250 PET Parçası gerekiyor..." to close then run [make player execute command "pet kurt"]
        arg 1 is "kurt":
            {pet.%player%} isn't set:
                if player has 250 rose red named "{@parçaisim}":
                    kill {pet.%player%}
                    wait 0.3 second
                    set {petsahibi.%player%} to true
                    remove 250 rose red named "{@parçaisim}" from player
                    message "&c&lPET &8» &aBaşarılı! Petin Çağırılıyor..."
                    wait 1 second
                    message "&c&lPET &8» &aPetin Çağırıldı!"
                    spawn 1 wolf at player's location
                    set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                    add %arg-1% health to 10
                    heal the player
                    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
                else:
                    message "&c&lPET &8» &aPET Parçası Yetmiyor..."
        arg 1 is "gonder":
            "%{pet.listesi::*}%" contains "%{pet.%player%}%":
                message "&c&lPET &8» &aPET Gönderildi!"
                kill {pet.%player%}
                delete {pet.%player%}
                remove {pet.%player%} from {pet.listesi::*}
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
                delete {pet.%player%}
                stop trigger
        arg 1 is "cagir":
            if {petsahibi.%player%} is true:
                kill {pet.%player%}
                wait 0.3 second
                message "&c&lPET &8» &aPetin Çağırıldı!"
                spawn 1 wolf at player's location
                set name of spawned entity to "&6&l%player%' in &c&lPET' i"
                add %arg-1% health to 10
                heal the player
                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
            else:
                message "&c&lPET &8» &aÖncelikle PET satın almalısınız.."
              
on damage of entity:
    name of victim contains "' in &c&lPET' i":
        chance of 50%:
            message "&c&lKURT &8» &aHırrr... Hırrr..." to attacker
            cancel event
        else:
            cancel event
 
command /ver:
    trigger:
        player is op:
            give 250 {@parça} named "{@parçaisim}" to player
      
on teleport:
    wait 3 tick
    loop 4 times:
        wait 1 second
        teleport {pet.%player%} to player
      
on combust:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
      
on entity target:
    name of event-entity contains "' in &c&lPET' i":
        cancel event
      
on death of wolf:
    name of victim contains "' in &c&lPET' i":
        clear drops

on disconnect:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}
      
on join:
    "%{pet.listesi::*}%" contains "%{pet.%player%}%":
        kill {pet.%player%}
        delete {pet.%player%}
        remove {pet.%player%} from {pet.listesi::*}
 
bu sefer
[21:07:37 ERROR]: Can't understand this condition/effect: add %arg-1% health to 10 (pet.sk, line 30: add %arg-1% health to 10')
[21:07:37 ERROR]: Can't understand this condition/effect: add %arg-1% health to 10 (pet.sk, line 59: add %arg-1% health to 10')
hatası veriyor
 
bu sefer
[21:07:37 ERROR]: Can't understand this condition/effect: add %arg-1% health to 10 (pet.sk, line 30: add %arg-1% health to 10')
[21:07:37 ERROR]: Can't understand this condition/effect: add %arg-1% health to 10 (pet.sk, line 59: add %arg-1% health to 10')
hatası veriyor
Hiç bir, fikrim yok
 
Yokmu çözümü bilen ya
 
Hata veren yeri bu kod ile değiştirmeyi deneyin.

Kod:
add 10 to the arg-1's health
 
[15:21:49 ERROR]: the 1st argument is not a living entity (pet.sk, line 30: add 10 to the arg-1's health')
[15:21:49 ERROR]: the 1st argument is not a living entity (pet.sk, line 59: add 10 to the arg-1's health')
hatasını alıyorum acaba bi plugin falan mı eksik her şeyi denedim çünkü
 
Son bir fikir olarak bunu deneyebilirsin.Olmazsa forumda pet skripti vardır diye düşünüyorum onu kullanabilirsin.

Kod:
add 10 to the spawned entity's health
 
artık hata vermiyor ama fazladan canda vermiyor. Bu arada hayvana değil bana can gelmesi lazım yani pet sahibi olanların ekstra 10 canı daha olsun
 
Sanırım ben sorunu yanlış anlamışım ben pete can vermek istiyorsunuz diye düşünmüştüm.

Kod:
add 10 to the player's health

bu kod çalışmazsa

Kod:
set player's health to 30
 
Konu çözüldüyse lütfen çözüldü olarak işaretleyin.
 
şuan herhangi bir hata almıyorum ama can da gelmiyo. neyse ya sıkıldım artık süs olarak kalsın en iyisi. Teşekkür ederim yinede
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst