Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # # # #
- # Edited By Damiankooo #
- # # # # # # # # # # # # #
- Variables:
- {wielkanoc.use.%player%} = true
- {pamiatka.use.%player%} = true
- # # # # #
- # Kod #
- # # # # #
- Options:
- mob: villager
- namezajac: &c» &6&lWielkanocny Zajac
- namekoszyk: &e&lKoszyk
- # # # # # #
- # Komendy #
- # # # # # #
- command /wielkanoc [<text>]:
- trigger:
- if player has permission "wielkanoc.*":
- if arg 1 is not set:
- send "&c» &7Poprawne uzycie &c/wielkanoc zajac, koszyk"
- stop
- # Wielkanocny Zajac #
- if arg 1 is "zajac":
- spawn {@mob} at player
- apply slowness 100000 to spawned {@mob} for 9999999 days
- wait a tick
- set display name of spawned entity to "{@namezajac}"
- set name of spawned entity to "{@namezajac}"
- send "&c» &7Pomyslnie stworzono &c2Wielkanocnego zajaca"
- loop 15 times:
- broadcast ""
- broadcast "&6&lWielkanocny Zajac &7Nas odwiedził! :)"
- broadcast "&7Czeka na was na spawnie !"
- stop
- # Koszyk #
- if arg 1 is "koszyk":
- spawn {@mob} at player
- apply slowness 100000 to spawned {@mob} for 9999999 days
- wait a tick
- set display name of spawned entity to "{@namekoszyk}"
- set name of spawned entity to "{@namekoszyk}"
- send "&c» &7Pomyslnie stworzono &c2Koszyk!"
- loop 15 times:
- broadcast ""
- broadcast "&e&lKoszyk &7 Poszukajcie go i dajcie mu itemy od Wielkanocnego Zajaca! :)"
- broadcast "&7Znajdzcie go ! Powodzenia"
- stop
- # Reset Pamiatek #
- if arg 1 is "res" or "reset":
- broadcast "&8&l&m============"
- broadcast "&7Pamiatki zostaly odnowione!"
- broadcast "&8&l&m============"
- set {wielkanoc.use.::*} to true
- set {pamiatka.use.::*} to true
- stop
- else:
- send "&c» &4Brak uprawnien!"
- stop
- # # # # # # # # # #
- # On Right Click #
- # # # # # # # # # #
- on rightclick on {@mob}: #Zajac
- if name of clicked entity is "{@namezajac}":
- wait 2 ticks
- open chest with 3 rows named "{@namezajac}" to player
- wait 2 ticks
- format slot 12 of player with 1 chest named "&2&lZajac rozdaje" with lore "&7Odbierz prezent" to close then run "zajac %player%"
- format slot 13 of player with 1 book named "&2&lZajac opowiada" with lore "&7Witaj &c%player%, ||&7Przybylem tu z bieguna polnocnego,||&7spotkalem tam &cSwietego mikolaja||&7Ktory mi dal Dla was prezenty :) !" to close
- format slot 14 of player with 1 paper named "&e&lOdbierz pamiatke po mnie !" with lore "&7Otrzymasz pamiatke po Zajacu z bieguna polnocnego :)" to close then run "pamiatkaj %player%"
- format slot 22 of player with 1 emerald named "&a&lCzemu zombiaki na mnie patrza?" with lore "&7Zombiaki na mnie patrza bo mysla ze jestem ich panem. ||&7Przy drodze duzo mi towarzyszylo :)" to close
- stop
- #
- on rightclick on {@mob}: #Koszyk
- if name of clicked entity is "{@namekoszyk}":
- wait 2 ticks
- open chest with 3 rows named "{@namekoszyk}" to player
- wait 2 ticks
- format slot 13 of player with 1 ender chest named "&f" with lore "&7Witaj &c%player%, ||&7Widze ze mnie znalazles juz :) ||&7Mam nadzieje ze odebrales od &6&lZajaca &7pamiatke||&7W zamian za pamiatke dam ci prezent :)" to close then run "koszyk %player%"
- stop
- # # # # # # #
- # On Damage #
- # # # # # # #
- on damage of {@mob}:
- if victim is a {@mob}:
- if name of victim is "{@namezajac}":
- cancel event
- stop
- on damage of {@mob}:
- if victim is a {@mob}:
- if name of victim is "{@namekoszyk}":
- cancel event
- stop
- # # # # # # # # # # # # #
- # Commands from console #
- # # # # # # # # # # # # #
- Command /zajac [<player>]:
- trigger:
- if sender is console:
- if arg 1 is online:
- if {wielkanoc.use.%player-arg%} is true:
- set {_wielkanoc} to 1 or 2 or 3
- if {_swieta} is 1:
- send "&6&lZajac &7Dostales Czapeczke i buty!" to player-arg
- give 1 diamond helmet of protection 4 and unbreaking 3 to player-arg
- give 1 diamond boots of protection 4 and unbreaking 3 to player-arg
- set {wielkanoc.use.%player-arg%} to false
- stop
- if {_wielkanoc} is 2:
- send "&6&lZajac &7Dostales sweter i spodenki!" to player-arg
- give 1 diamond chestplate of protection 4 and unbreaking 3 to player-arg
- give 1 diamond leggings of protection 4 and unbreaking 3 to player-arg
- set {wielkanoc.use.%player-arg%} to false
- stop
- if {_wielkanoc} is 3:
- send "&6&lZajac &7Dostales jabuszko i mieczyk!" to player-arg
- give 1 enchanted golden apple to player-arg
- give 1 diamond sword of sharpness 5 and fire aspect 2 to player-arg
- set {wielkanoc.use.%player-arg%} to false
- stop
- else:
- send "&6&lZajac &cJuz odebrales juz swoj prezent :(" to player-arg
- stop
- else:
- send "&cTa komende moze wykonywac tylko &6konsola&c!"
- stop
- Command /pamiatkaj [<player>]:
- trigger:
- if sender is console:
- if arg 1 is online:
- if {pamiatka.use.%player-arg%} is true:
- send "&6&lZajac &7Nie zgub jej :)" to player-arg
- give 1 paper named "&9&lPamiatka po &6&lZajacu" with lore "&7%player-arg% ||&7spotkal sie z &cWielkanocnym Zajacem ||&3&o&lWielkanocny Zajac" to player-arg
- set {pamiatka.use.%player-arg%} to false
- stop
- else:
- send "&6&lWielkanocny Zajac &7odebrales juz swoja pamiatke :(" to player-arg
- stop
- else:
- send "&cTa komende moze wykonywac tylko &6konsola&c!"
- stop
- Command /koszyk [<player>]:
- trigger:
- if sender is console:
- if arg 1 is online:
- if arg 1 has 1 paper named "&9&lPamiatka po &6&lWielkanocnym Zajacu" with lore "&7%player-arg% ||&7spotkal sie z &cWielkanocnym Zajacem":
- send "&6&lKoszyk &7Witaj przybyszu!" to player-arg
- send "&7Widze ze juz otrzymales pamiatke od &6&lWielkanocnego Zajaca." to player-arg
- send "&7W nagrode ze przyniosles mi pamiatke po nim dostaniesz prezent :)" to player-arg
- give 1 diamond helmet of protection 4 and unbreaking 3 named "&e&lSwieta" to player-arg
- give 1 diamond chestplate of protection 5 and unbreaking 4 named "&e&lSwieta" to player-arg
- give 1 diamond leggings of protection 4 and unbreaking 3 named "&e&lSwieta" to player-arg
- give 1 enchanted golden apple to player-arg
- give 4 golden apple to player-arg
- remove 1 paper named "&9&lPamiatka po &6&lWielkanocnym Zajacu" with lore "&7%player-arg% ||&7spotkal sie z &cWielkanocnym Zajacem" from player-arg
- stop
- else:
- send "&cNie masz pamiatki po &6&lWielkanocnym Zajacu" to player-arg
- stop
- else:
- send "&cTa komende moze wykonywac tylko &6konsola&c!"
- stop
- # # # #
- # End #
- # # # #
Advertisement
Add Comment
Please, Sign In to add comment