Skocz do zawartości
  • 0

Particles


Crystal_PL
 Udostępnij

Pytanie

Proszę o naprawę tego błędu.

Błąd:

'else:' is not a boolean (yes/no) (Particle.sk, line 118: else::')

Kod:

Spoiler

command /ipefekty [<text>]:
    trigger:
        if player has permission "wario.particle":
            if arg is "serce":
                if {serca.%player%} is true:
                    set {angryVillager.%player%} to true
                    set {serca.%player%} to false
                    set {note.%player%} to true
                    set {slime.%player%} to true
                    set {happyVillager.%player%} to true
                    set {aktualny.%player%::*} to "&aSerca"
                    execute player command "/Pefekty"
                    loop 4*5+2^30 times:
                        if {serca.%player%} is false:
                            spawn 2 of particle heart:2 offset by 0, 0.5, 0 at player
                            wait 3 ticks
                        if {serca.%player%} is true:
                            stop
                if {serca.%player%} is false:
                    set {aktualny.%player%::*} to "&cZaden"
                    set {serca.%player%} to true
                    execute player command "/Pefekty"
                    stop
            if arg is "kryt":
                if {slime.%player%} is true:
                    set {angryVillager.%player%} to true
                    set {serca.%player%} to true
                    set {note.%player%} to true
                    set {slime.%player%} to false
                    set {happyVillager.%player%} to true
                    set {aktualny.%player%::*} to "&aKrytyki"
                    execute player command "/Pefekty"
                    loop 4*5+2^30 times:
                        if {slime.%player%} is false:
                            spawn 10 of particle crit offset by 0, 1, 0 at player
                            wait 3 ticks
                        if {slime.%player%} is true:
                            stop
                if {slime.%player%} is false:
                    set {aktualny.%player%::*} to "&cZaden"
                    set {slime.%player%} to true
                    execute player command "/Pefekty"
                    stop
            if arg is "note":
                if {note.%player%} is true:
                    set {angryVillager.%player%} to true
                    set {serca.%player%} to true
                    set {slime.%player%} to true
                    set {note.%player%} to false
                    set {happyVillager.%player%} to true
                    set {aktualny.%player%::*} to "&aNuty"
                    execute player command "/Pefekty"
                    loop 4*5+2^30 times:
                        if {note.%player%} is false:
                            spawn 3 of particle note:2 offset by 0, 0.5, 0 at player
                            wait 3 ticks
                        if {note.%player%} is true:
                            stop
                if {note.%player%} is false:
                    set {aktualny.%player%::*} to "&cZaden"
                    set {note.%player%} to true
                    execute player command "/Pefekty"
                    stop
            if arg is "angryVillager":
                if {angryVillager.%player%} is true:
                    set {angryVillager.%player%} to false
                    set {serca.%player%} to true
                    set {slime.%player%} to true
                    set {note.%player%} to true
                    set {happyVillager.%player%} to true
                    set {aktualny.%player%::*} to "&aZly Villager"
                    execute player command "/Pefekty"
                    loop 4*5+2^30 times:
                        if {angryVillager.%player%} is false:
                            spawn 3 of particle angry Villager:2 offset by 0, 0.5, 0 at player
                            wait 3 ticks
                        if {angryVillager.%player%} is true:
                            stop
                if {angryVillager.%player%} is false:
                    set {aktualny.%player%::*} to "&cZaden"
                    set {angryVillager.%player%} to true
                    execute player command "/Pefekty"
                    stop
            if arg is "sharpness":
                if {happyVillager.%player%} is true:
                    set {happyVillager.%player%} to false
                    set {angryVillager.%player%} to true
                    set {serca.%player%} to true
                    set {slime.%player%} to true
                    set {note.%player%} to true
                    set {aktualny.%player%::*} to "&aSharpness"
                    execute player command "/Pefekty"
                    loop 4*5+2^30 times:
                        if {happyVillager.%player%} is false:
                            spawn 10 of particle magic Crit offset by 0, 1, 0 at player
                            wait 3 ticks
                        if {happyVillager.%player%} is true:
                            stop
                if {happyVillager.%player%} is false:
                    set {aktualny.%player%::*} to "&cZaden"
                    set {happyVillager.%player%} to true
                    execute player command "/Pefekty"
                    stop
            if arg is "cc":
                set {ipefekty.%player%} to true
                set {serca.%player%} to true
                set {note.%player%} to true
                set {slime.%player%} to true
                set {happyVillager.%player%} to true
                set {angryVillager.%player%} to true
                set {aktualny.%player%::*} to "&cZaden"
                execute player command "/Pefekty"
                stop
            if arg is "kup":
                execute player command "/Pefekty"
                send "&7Kup Zestaw Na Stronie&7: &5http://www.kithc.pl/sklep/62465/" to player
                stop
        else::
            send "&cNie Masz Kupionego Zestawu Pefekty." to player
            send "&aKup Zestaw Na Stronie&7: &5http://www.kithc.pl/sklep/62465/" to player
            stop
   
 
on join:
    if player has permission "Itachi.partike":
        set {serca.%player%} to true
        set {note.%player%} to true
        set {slime.%player%} to true
        set {happyVillager.%player%} to true
        set {angryVillager.%player%} to true
        set {aktualny.%player%::*} to "&cZaden"
       
       
on quit:
    if player has permission "Itachi.partike":
        set {serca.%player%} to true
        set {note.%player%} to true
        set {slime.%player%} to true
        set {happyVillager.%player%} to true
        set {angryVillager.%player%} to true
        set {aktualny.%player%::*} to "&cZaden"
   
 
   
   
   
command /pefekty:
    trigger:
        set {ender.%player%.kom} to true
        open chest with 2 rows named "&4&lPEFEKTY" to player
        wait 2 tick
        format slot 0 of player with 1 of bone named "&7Serca" with lore "&7Kliknij Aby &2Wlaczyc&8/&cWylaczyc &7Efekt" to run [execute player command "/ipefekty serce"]
        format slot 1 of player with 1 of wooden sword named "&7Critical" with lore "&7Kliknij Aby &2Wlaczyc&8/&cWylaczyc &7Efekt" to run [execute player command "/ipefekty kryt"]
        format slot 2 of player with 1 of note block named "&7Nuty" with lore "&7Kliknij Aby &2Wlaczyc&8/&cWylaczyc &7Efekt" to run [execute player command "/ipefekty note"]
        format slot 3 of player with 1 of redstone named "&7Zly Villager" with lore "&7Kliknij Aby &2Wlaczyc&8/&cWylaczyc &7Efekt" to run [execute player command "/ipefekty angryVillager"]
        format slot 4 of player with 1 of diamond sword named "&7Sharpness" with lore "&7Kliknij Aby &2Wlaczyc&8/&cWylaczyc &7Efekt" to run [execute player command "/ipefekty sharpness"]
        format slot 15 of player with 1 of fire named "&cWylacz Wszystkie Pefekty" to run [execute player command "/ipefekty cc"]
        format slot 16 of player with 1 of book named "&7Aktualny Pefekt" with lore "%{aktualny.%player%::*}%" to run [execute player command "/pefekty"]
        format slot 17 of player with 1 of paper named "&7TUTAJ KUPISZ" with lore "www.kithc.pl" to run [execute player command "/ipefekty kup"]
        wait 20 ticks
        set {ender.%player%.kom} to false
        stop

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...