Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {zajac} = true
- {pisanki.%player%} = 0
- {rozmowa.zajac.%player%} = false
- ###########
- # Pisanki #
- ###########
- command /jajko:
- trigger:
- player has permission "jajko.wielkanoc":
- give 16 egg named "&1P&2i&3s&4a&5n&6k&7a" to the player
- ##############
- # Stworzenie #
- # Zajaca #
- ##############
- command /zajac:
- trigger:
- player has permission "zajac.wielkanoc":
- spawn villager at player
- apply slowness 100000 to spawned villager for 9999999 days
- set display name of spawned entity to "&b&lZajac Wielkanocny"
- set name of spawned entity to "&b&lZajac Wielkanocny"
- send "&e&l>> &7Pomyslnie stworzono &aZajaca Wielkanocnego"
- broadcast ""
- broadcast "&a&lZajac Wielkanocny &e&lOdwiedzil nas :)"
- broadcast "&7&lCzeka na was na spawnie!"
- set {zajac.ruch} to location of player
- every 5 tick:
- loop all entities:
- loop-entity is villager:
- name of loop-entity is "&b&lZajac Wielkanocny":
- location of loop-entity is not {zajac.ruch}:
- teleport loop-entity to {zajac.ruch}
- every 5 tick:
- loop all entities:
- loop-entity is zombie:
- name of loop-entity is "&6&lKoszyk Wielkanocny":
- location of loop-entity is not {kosz.ruch}:
- teleport loop-entity to {kosz.ruch}
- ##############
- # Stworzenie #
- # Koszyka #
- ##############
- command /koszyk:
- trigger:
- player has permission "koszyk.wielkanoc":
- spawn zombie at player
- apply slowness 100000 to spawned zombie for 9999999 days
- set helmet of the spawned zombie to a chest
- set display name of spawned entity to "&6&lKoszyk Wielkanocny"
- set name of spawned entity to "&6&lKoszyk Wielkanocny"
- send "&e&l>> &7Pomyslnie stworzono &6Koszyk Wielkanocny"
- set {kosz.ruch} to location of player
- on damage of villager:
- victim is a villager:
- {zajac} is true:
- name of victim is "&b&lZajac Wielkanocny":
- cancel event
- stop
- on damage of zombie:
- victim is a zombie:
- {kosz} is true:
- name of victim is "&6&lKoszyk Wielkanocny":
- cancel event
- stop
- on rightclick holding egg:
- player is holding egg named "&1P&2i&3s&4a&5n&6k&7a":
- cancel event
- #################
- # Bicie #
- # Zajaca #
- # Wielkanocnego #
- #################
- command /bicie [<text>]:
- trigger:
- arg 1 is "tak":
- set {zajac} to true
- send "&c&l>> &a&lNie mozna bic zajaca!"
- arg 1 is "nie":
- set {zajac} to false
- send "&c&l>> &a&lMocna bic zajaca!"
- #################
- # Bicie #
- # Koszyka #
- # Wielkanocnego #
- #################
- command /kosz [<text>]:
- trigger:
- arg 1 is "tak":
- set {kosz} to true
- send "&c&l>> &a&lNie mozna bic koszyk!"
- arg 1 is "nie":
- set {kosz} to false
- send "&c&l>> &a&lMocna bic koszyk!"
- on rightclick on a villager:
- name of clicked entity is "&b&lZajac Wielkanocny":
- cancel event
- ##############
- # Wkladanie #
- # Pisanek #
- ##############
- on rightclick holding egg on a zombie:
- player is holding egg named "&1P&2i&3s&4a&5n&6k&7a":
- wait 1 tick
- name of clicked entity is "&6&lKoszyk Wielkanocny":
- send "&c&l>> &a&lDodano 1 pisanke do koszyka!"
- remove 1 egg named "&1P&2i&3s&4a&5n&6k&7a" from the player
- add 1 to {pisanki.%player%}
- ##############
- # Wyciaganie #
- # Pisanek #
- ##############
- on rightclick on a zombie:
- name of clicked entity is "&6&lKoszyk Wielkanocny":
- player is not holding egg named "&1P&2i&3s&4a&5n&6k&7a":
- {pisanki.%player%} is greater than 0:
- send "&c&l>> &a&lWyciagnieto 1 pisanke z koszyka!"
- give 1 egg named "&1P&2i&3s&4a&5n&6k&7a" to the player
- remove 1 from {pisanki.%player%}
- else:
- send "&c&l>> &a&lNie masz pisanek w koszyku!"
- ##########
- # Koszyk #
- ##########
- command /pisanki:
- trigger:
- send "&c&l>> &a&lMasz %{pisanki.%player%}% pisanek w koszyku!"
- ###################
- # Rozmowa z #
- # Zajacem #
- ###################
- on rightclick on a villager:
- name of clicked entity is "&b&lZajac Wielkanocny":
- {rozmowa.zajac.%player%} is false:
- set {rozmowa.zajac.%player%} to true
- send "&7&l[&b&lZajac&7&l] &aJaka nagrode mozesz dostac:"
- wait 1 second
- send "&7&l[&b&lZajac&7&l] &a1. 1 Diax - 10 Pisanek"
- wait 1 second
- send "&7&l[&b&lZajac&7&l] &a2. 10 Diaxow - 50 Pisanek"
- wait 1 second
- send "&7&l[&b&lZajac&7&l] &aAby cos zakupic wpisz /wielkanoc (numer nagrody)"
- set {rozmowa.zajac.%player%} to false
- #################
- # Wybor #
- # Nagrody #
- #################
- command /wielkanoc [<integer>]:
- trigger:
- arg 1 is 1:
- {pisanki.%player%} is greater than 9:
- send "&aWybrales nagrode nr.1!"
- give 1 diamond named "&bDiamond" to the player
- remove 10 from {pisanki.%player%}
- arg 1 is 2:
- {pisanki.%player%} is greater than 49:
- send "&aWybrales nagrode nr.2!"
- give 10 diamond named "&bDiamond" to the player
- remove 50 from {pisanki.%player%}
Advertisement
Add Comment
Please, Sign In to add comment