Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # KitchenRevolution 0.1_PRE ALPHA
- options:
- tag: &8[&2Kuchnia&8]&a
- # CRAFTING
- 1: iron block
- 2: iron block
- 3: iron block
- 4: iron block
- 5: coal block
- 6: iron block
- 7: iron block
- 8: iron block
- 9: iron block
- # ==================== CRAFTING ====================
- on load:
- register new shaped recipe for iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" using {@1}, {@2}, {@3}, {@4}, {@5}, {@6}, {@7}, {@8}, {@9}
- # ==================== KOMENDA ADMINISTRACYJNA ====================
- command /kuchnia [<player>]:
- aliases: kitchenrevolusion, kr, kitchenr, krevolution
- permission: kuchnia.give
- 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:
- wait 2 tick
- open chest with 1 rows named "Kuchnia" to player
- wait 2 tick
- format slot 0 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 1 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"
- format slot 2 of player with 1 of golden carrot named "&6Zlota Marchew" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 20 zlota||&a- 5 marchewek||&5Efekty:||&dRegeneration II, Speed III, Jump Boost II" to run "Kuchnia:x_menu_y %player% zlota_marchew"
- format slot 3 of player with 1 of pumpkin pie named "&fSzarlotka" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 2 jajka||&a- 1 mleko||&a- 3 szt. pszenicy||&a- 5 jablek||&5Efekty:||&dInstant Heal V" to run "Kuchnia:x_menu_y %player% szarlotka"
- format slot 4 of player with 30 of cookie named "&fCiastko" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 5 szt. pszenicy||&a- 1 kakao" to run "Kuchnia:x_menu_y %player% ciastko"
- format slot 5 of player with 1 of steak named "&fUpieczony stek" with lore "&7Kliknij aby stworzyc!||&2Skladniki:||&a- 1 surowa wolowina (Z krowy)||&a- 1 wegiel" to run "Kuchnia:x_menu_y %player% stek"
- # ==================== JEDZENIE ====================
- on consume:
- if player's tool is golden carrot named "&6Zlota Marchew":
- remove regeneration from the player
- remove speed from the player
- remove jump boost from the player
- apply regeneration 2 to the player for 5 seconds
- apply speed 3 to the player for 15 seconds
- apply jump boost 2 to the player for 15 seconds
- stop
- if player's tool is pumpkin pie named "&fSzarlotka":
- heal player
- # ==================== MENU ====================
- command /Kuchnia:x_menu_y [<player>] [<text>]:
- trigger:
- if arg 1 is set:
- if arg 2 is "ciasto":
- if player-arg has 2 egg and 1 milk bucket and 3 wheat:
- remove 2 egg 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 player-arg
- give 1 cake named "&fCiasto" to player-arg
- else:
- close player's inventory
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
- if arg 2 is "zupa":
- if player-arg has 2 mushroom and 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 player-arg
- give 1 mushroom stew named "&fZupa" to player-arg
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
- if arg 2 is "zlota_marchew":
- if player-arg has 20 gold ingot and 5 carrot:
- remove 20 gold ingot from player-arg
- remove 5 carrot from player-arg
- send "{@tag} Pomyslnie stworzyles &6Zlota Marchew&a!" to player-arg
- give 1 golden carrot named "&6Zlota Marchew" to player-arg
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
- if arg 2 is "szarlotka":
- if player-arg has 2 egg and 1 milk bucket and 3 wheat and 5 apple:
- remove 2 egg from player-arg
- remove 1 milk bucket from player-arg
- remove 3 wheat from player-arg
- remove 5 apple from player-arg
- send "{@tag} Pomyslnie stworzyles Szarlotke!" to player-arg
- give 1 pumpkin pie named "&fSzarlotka" to player-arg
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
- if arg 2 is "ciastko":
- if player-arg has 5 wheat and 1 cocoa beans:
- remove 1 cocoa beans from player-arg
- remove 5 wheat from player-arg
- send "{@tag} Pomyslnie stworzyles 30 ciastek!" to player-arg
- give 30 cookie named "&fCiastko" to player-arg
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
- if arg 2 is "stek":
- if player-arg has 1 raw beef and 1 coal:
- remove 1 raw beef from player-arg
- remove 1 coal from player-arg
- send "{@tag} Pomyslnie stworzyles Upieczonego steka!" to player-arg
- give 1 steak named "&fUpieczony stek" to player-arg
- else:
- send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment