Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # KitchenRevolution v1.0
- options:
- tag: &8[&2Kuchnia&8]&a
- command /kuchnia [<player>]:
- aliases: kitchenrevolusion, kr, kitchenr, krevolution
- trigger:
- if arg 1 is set:
- give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player-arg
- send "{@tag} Gracz &2%arg 1%&a otrzymal stol kuchenny!"
- stop
- else:
- give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player
- send "{@tag} Otrzymales stol kuchenny!"
- stop
- # ==================== STAWIANIE I NISZCZENIE ====================
- on place:
- if player's tool is iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!":
- add location of block to {Kuchnie::*}
- send "{@tag} Postawiles kuchenke!"
- stop
- on break:
- loop {Kuchnie::*}:
- if loop-value is location of block:
- send "{@tag} Zniszczyles kuchenke!"
- remove location of block from {Kuchnie::*}
- # ==================== KLIKANIE I OTWIERANIE MENU ====================
- on rightclick on iron block:
- loop {Kuchnie::*}:
- if loop-value is location of clicked block:
- if {Naladowane::%location of clicked block%} is not set:
- if player has 32 coal:
- remove 32 coal from player
- send "{@tag} Naladowales kuchenke weglem!"
- set {Naladowane::%location of clicked block%} to true
- stop
- else:
- send "{@tag} &cPotrzebujesz 32 wegla by naladowac kuchnie!"
- if {Naladowane::%location of clicked block%} is true:
- open chest with 1 rows named "Kuchnia" to player
- wait 1 tick
- format slot 1 of player with 1 of cake named "&fCiasto" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 2 jajka||&a- 1 mleko||&a- 3 szt. pszenicy" to run "Kuchnia:x_menu_y %player% ciasto"
- format slot 2 of player with 1 of mushroom stew named "&fZupa" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 2 grzyby (szare)||&a- 1 woda" to run "Kuchnia:x_menu_y %player% zupa"
- # ==================== MENU ====================
- command /Kuchnia:x_menu_y [<player>] [<text>]:
- trigger:
- if arg 1 is set:
- set {_g} to arg 1
- if arg 2 is "ciasto":
- if player-arg has 2 eggs:
- if player-arg has 1 milk bucket:
- if player-arg has 3 wheat:
- remove 2 eggs from player-arg
- remove 1 milk bucket from player-arg
- remove 3 wheat from player-arg
- give 1 bucket to player-arg
- send "{@tag} Pomyslnie stworzyles ciasto!" to {_g}
- give 1 cake named "&fCiasto" to {_g}
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
- else:
- close player's inventory
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
- if arg 2 is "zupa":
- if player-arg has 2 mushroom:
- if player-arg has 1 water bucket:
- remove 2 mushroom from player-arg
- remove 1 water bucket from player-arg
- give 1 bucket to player-arg
- send "{@tag} Pomyslnie stworzyles ciasto!" to {_g}
- give 1 mushroom stew named "&fZupa" to {_g}
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
Advertisement
Add Comment
Please, Sign In to add comment