AdamGrzegorz

KitchenRevolution - 0.1 PRE ALPHA

Nov 8th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.41 KB | None | 0 0
  1. # KitchenRevolution 0.1_PRE ALPHA
  2.  
  3. options:
  4. tag: &8[&2Kuchnia&8]&a
  5. # CRAFTING
  6. 1: iron block
  7. 2: iron block
  8. 3: iron block
  9.  
  10. 4: iron block
  11. 5: coal block
  12. 6: iron block
  13.  
  14. 7: iron block
  15. 8: iron block
  16. 9: iron block
  17.  
  18. # ==================== CRAFTING ====================
  19. on load:
  20. 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}
  21. # ==================== KOMENDA ADMINISTRACYJNA ====================
  22. command /kuchnia [<player>]:
  23. aliases: kitchenrevolusion, kr, kitchenr, krevolution
  24. permission: kuchnia.give
  25. trigger:
  26. if arg 1 is set:
  27. give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player-arg
  28. send "{@tag} Gracz &2%arg 1%&a otrzymal stol kuchenny!"
  29. stop
  30. else:
  31. give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player
  32. send "{@tag} Otrzymales stol kuchenny!"
  33. stop
  34. # ==================== STAWIANIE I NISZCZENIE ====================
  35. on place:
  36. if player's tool is iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!":
  37. add location of block to {Kuchnie::*}
  38. send "{@tag} Postawiles kuchenke!"
  39. stop
  40. on break:
  41. loop {Kuchnie::*}:
  42. if loop-value is location of block:
  43. send "{@tag} Zniszczyles kuchenke!"
  44. remove location of block from {Kuchnie::*}
  45.  
  46. # ==================== KLIKANIE I OTWIERANIE MENU ====================
  47. on rightclick on iron block:
  48. loop {Kuchnie::*}:
  49. if loop-value is location of clicked block:
  50. if {Naladowane::%location of clicked block%} is not set:
  51. if player has 32 coal:
  52. remove 32 coal from player
  53. send "{@tag} Naladowales kuchenke weglem!"
  54. set {Naladowane::%location of clicked block%} to true
  55. stop
  56. else:
  57. send "{@tag} &cPotrzebujesz 32 wegla by naladowac kuchnie!"
  58. if {Naladowane::%location of clicked block%} is true:
  59. wait 2 tick
  60. open chest with 1 rows named "Kuchnia" to player
  61. wait 2 tick
  62. 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"
  63. 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"
  64. 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"
  65. 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"
  66. 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"
  67. 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"
  68.  
  69. # ==================== JEDZENIE ====================
  70. on consume:
  71. if player's tool is golden carrot named "&6Zlota Marchew":
  72. remove regeneration from the player
  73. remove speed from the player
  74. remove jump boost from the player
  75. apply regeneration 2 to the player for 5 seconds
  76. apply speed 3 to the player for 15 seconds
  77. apply jump boost 2 to the player for 15 seconds
  78. stop
  79. if player's tool is pumpkin pie named "&fSzarlotka":
  80. heal player
  81. # ==================== MENU ====================
  82.  
  83. command /Kuchnia:x_menu_y [<player>] [<text>]:
  84. trigger:
  85. if arg 1 is set:
  86. if arg 2 is "ciasto":
  87. if player-arg has 2 egg and 1 milk bucket and 3 wheat:
  88. remove 2 egg from player-arg
  89. remove 1 milk bucket from player-arg
  90. remove 3 wheat from player-arg
  91. give 1 bucket to player-arg
  92. send "{@tag} Pomyslnie stworzyles ciasto!" to player-arg
  93. give 1 cake named "&fCiasto" to player-arg
  94. else:
  95. close player's inventory
  96. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
  97. if arg 2 is "zupa":
  98. if player-arg has 2 mushroom and 1 water bucket:
  99. remove 2 mushroom from player-arg
  100. remove 1 water bucket from player-arg
  101. give 1 bucket to player-arg
  102. send "{@tag} Pomyslnie stworzyles ciasto!" to player-arg
  103. give 1 mushroom stew named "&fZupa" to player-arg
  104. else:
  105. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
  106. if arg 2 is "zlota_marchew":
  107. if player-arg has 20 gold ingot and 5 carrot:
  108. remove 20 gold ingot from player-arg
  109. remove 5 carrot from player-arg
  110. send "{@tag} Pomyslnie stworzyles &6Zlota Marchew&a!" to player-arg
  111. give 1 golden carrot named "&6Zlota Marchew" to player-arg
  112. else:
  113. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
  114. if arg 2 is "szarlotka":
  115. if player-arg has 2 egg and 1 milk bucket and 3 wheat and 5 apple:
  116. remove 2 egg from player-arg
  117. remove 1 milk bucket from player-arg
  118. remove 3 wheat from player-arg
  119. remove 5 apple from player-arg
  120. send "{@tag} Pomyslnie stworzyles Szarlotke!" to player-arg
  121. give 1 pumpkin pie named "&fSzarlotka" to player-arg
  122. else:
  123. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
  124. if arg 2 is "ciastko":
  125. if player-arg has 5 wheat and 1 cocoa beans:
  126. remove 1 cocoa beans from player-arg
  127. remove 5 wheat from player-arg
  128. send "{@tag} Pomyslnie stworzyles 30 ciastek!" to player-arg
  129. give 30 cookie named "&fCiastko" to player-arg
  130. else:
  131. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
  132. if arg 2 is "stek":
  133. if player-arg has 1 raw beef and 1 coal:
  134. remove 1 raw beef from player-arg
  135. remove 1 coal from player-arg
  136. send "{@tag} Pomyslnie stworzyles Upieczonego steka!" to player-arg
  137. give 1 steak named "&fUpieczony stek" to player-arg
  138. else:
  139. send "{@tag} &cNie masz wystarczajaco skladnikow!" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment