Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Autor Skryptu: KiwoPL #
- # =-=-=-=-=-=-=-=-=-=-= #
- # Nie zezwalam na: #
- # - Podszywanie się pod autora #
- # - Edytowanie Kodu #
- # - Usuwanie informacji o autorze #
- # - Publikowanie skryptu #
- # - Zarabianie na skrypcie #
- on script load:
- register new shaped recipe for 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" using tnt, diamond, tnt, diamond, redstone, diamond, tnt, diamond, tnt
- variables:
- {poke::krowa} = "&aWlaczony"
- {poke::swinia} = "&aWlaczony"
- {poke::owca} = "&aWlaczony"
- {poke::kurczak} = "&aWlaczony"
- command /poke [<text>]:
- trigger:
- if arg 1 is "daj":
- if player has permission "kiwi.poke.daj" or "kiwi.poke.*":
- give 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" to player
- stop
- else:
- send "&cNie masz uprawnien &7(kiwi.poke.daj)"
- if arg 1 is "crafting":
- open chest with 5 rows named "&6Crafting PokeBalla" to player
- wait 2 tick
- format slot 10 of player with 1 of tnt named "&cTNT" to be unstealable
- format slot 11 of player with 1 of diamond named "&bDIAMENT" to be unstealable
- format slot 12 of player with 1 of tnt named "&cTNT" to be unstealable
- format slot 19 of player with 1 of diamond named "&bDIAMENT" to be unstealable
- format slot 20 of player with 1 of redstone named "&4REDSTONE" to be unstealable
- format slot 21 of player with 1 of diamond named "&bDIAMENT" to be unstealable
- format slot 24 of player with 1 of sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" to be unstealable
- format slot 28 of player with 1 of tnt named "&cTNT" to be unstealable
- format slot 29 of player with 1 of diamond named "&bDIAMENT" to be unstealable
- format slot 30 of player with 1 of tnt named "&cTNT" to be unstealable
- stop
- if arg 1 is "admin":
- if player has permission "kiwi.poke.admin" or "kiwi.poke.*":
- wait 2 tick
- open chest with 5 rows named "&6Ustawienia PokeBalla" to player
- wait 2 tick
- format slot 0 of player with 1 of cow spawn egg named "&bKrowa" with lore "&fSTATUS: %{poke::krowa}%" to close then run [execute player command "pokeball krowa" and "poke admin"]
- format slot 1 of player with 1 of pig spawn egg named "&bSwinia" with lore "&fSTATUS: %{poke::swinia}%" to close then run [execute player command "pokeball swinia" and "poke admin"]
- format slot 2 of player with 1 of sheep spawn egg named "&bOwca" with lore "&fSTATUS: %{poke::owca}%" to close then run [execute player command "pokeball owca" and "poke admin"]
- format slot 3 of player with 1 of chicken spawn egg named "&bKurczak" with lore "&fSTATUS: %{poke::kurczak}%" to close then run [execute player command "pokeball kurczak" and "poke admin"]
- stop
- else:
- send "&cNie masz uprawnien &7(kiwi.poke.admin)"
- if arg 1 is "info":
- wait 2 tick
- open chest with 5 rows named "&6Info PokeBallow" to player
- wait 2 tick
- format slot 0 of player with 1 of cow spawn egg named "&bKrowa" with lore "&fSTATUS: %{poke::krowa}%" to close then run [execute player command "poke info"]
- format slot 1 of player with 1 of pig spawn egg named "&bSwinia" with lore "&fSTATUS: %{poke::swinia}%" to close then run [execute player command "poke info"]
- format slot 2 of player with 1 of sheep spawn egg named "&bOwca" with lore "&fSTATUS: %{poke::owca}%" to close then run [execute player command "poke info"]
- format slot 3 of player with 1 of chicken spawn egg named "&bKurczak" with lore "&fSTATUS: %{poke::kurczak}%" to close then run [execute player command "poke kurczak"]
- stop
- else:
- if player has permission "kiwi.poke.pomoc.admin" or "kiwi.poke.*":
- send " "
- send "&b/Poke Daj &a- Daje PokeBalla"
- send "&b/Poke Crafting &a- Crafting PokeBalla"
- send "&b/Poke INFO &a- Otwiera GUI pokeballow"
- send "&b/Poke Admin &a- Otwiera GUI pokeballow"
- stop
- else:
- send " "
- send "&b/Poke Crafting &a- Crafting PokeBalla"
- send "&b/Poke INFO &a- Otwiera GUI pokeballow"
- command /pokeball [<text>]:
- trigger:
- if player has permission "kiwi.poke.admin" or "kiwi.poke.*":
- if arg 1 is "krowa":
- if {poke::krowa} is "&aWlaczony":
- set {poke::krowa} to "&cWylaczony"
- broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &akrowy"
- stop
- if {poke::krowa} is "&cWylaczony":
- set {poke::krowa} to "&aWlaczony"
- broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &akrowy"
- stop
- if arg 1 is "swinia":
- if {poke::swinia} is "&aWlaczony":
- set {poke::swinia} to "&cWylaczony"
- broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &aswinie"
- stop
- if {poke::swinia} is "&cWylaczony":
- set {poke::swinia} to "&aWlaczony"
- broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &aswinie"
- stop
- if arg 1 is "owca":
- if {poke::owca} is "&cWylaczony":
- set {poke::owca} to "&aWlaczony"
- broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &aowce"
- stop
- if {poke::owca} is "&aWlaczony":
- set {poke::owca} to "&cWylaczony"
- broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &aowce"
- stop
- if arg 1 is "kurczak":
- if {poke::kurczak} is "&cWylaczony":
- set {poke::kurczak} to "&aWlaczony"
- broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &akurczaki"
- stop
- if {poke::kurczak} is "&aWlaczony":
- set {poke::kurczak} to "&cWylaczony"
- broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &akurczaki"
- stop
- on right click on cow:
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
- if {poke::krowa} is "&aWlaczony":
- clear cow
- remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
- wait 1 second
- drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6krowa"
- send "&aUkryles w srodku &6krowe"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- on right click on sheep:
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
- if {poke::owca} is "&aWlaczony":
- clear sheep
- remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
- wait 1 second
- drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6owca"
- send "&aUkryles w srodku &6owce"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- on right click on pig:
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
- if {poke::swinia} is "&aWlaczony":
- clear pig
- remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
- wait 1 second
- drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6swinia"
- send "&aUkryles w srodku &6swinie"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- on right click on chicken:
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
- if {poke::kurczak} is "&aWlaczony":
- clear entity
- remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
- wait 1 second
- drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryty jest &6kurczak"
- send "&aUkryles w srodku &6kurczaka"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- on right click:
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aW srodku ukryty jest &6kurczak":
- if {poke::kurczak} is "&aWlaczony":
- cancel event
- remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryty jest &6kurczak" from player
- spawn 1 chicken at player's location
- send "&aZespawnowales &6kurczaka"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aW srodku ukryta jest &6krowa":
- if {poke::krowa} is "&aWlaczony":
- cancel event
- remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6krowa" from player
- spawn 1 cow at player's location
- send "&aZespawnowales &6krowe"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aW srodku ukryta jest &6owca":
- if {poke::owca} is "&aWlaczony":
- cancel event
- remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6owca" from player
- spawn 1 sheep at player's location
- send "&aZespawnowales &6owce"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aW srodku ukryta jest &6swinia":
- if {poke::swinia} is "&aWlaczony":
- cancel event
- remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6swinia" from player
- spawn 1 pig at player's location
- send "&aZespawnowales &6swinie"
- else:
- cancel event
- send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
- if player's tool's name is "&bPokeBall":
- if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
- cancel event
- send "&aMozesz zamykac tylko niektore moby"
- stop
Advertisement
Add Comment
Please, Sign In to add comment