AdamGrzegorz

skKitchen PRE ALPHA 0.00000001

Nov 8th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. # KitchenRevolution v1.0
  2.  
  3. options:
  4. tag: &8[&2Kuchnia&8]&a
  5.  
  6. command /kuchnia [<player>]:
  7. aliases: kitchenrevolusion, kr, kitchenr, krevolution
  8. trigger:
  9. if arg 1 is set:
  10. give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player-arg
  11. send "{@tag} Gracz &2%arg 1%&a otrzymal stol kuchenny!"
  12. stop
  13. else:
  14. give 1 iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!" to player
  15. send "{@tag} Otrzymales stol kuchenny!"
  16. stop
  17. # ==================== STAWIANIE I NISZCZENIE ====================
  18. on place:
  19. if player's tool is iron block named "&fStól Kuchenny" with lore "&7Postaw na ziemi, zaladuj||&7weglem, i kliknij lewym przyciskiem!":
  20. add location of block to {Kuchnie::*}
  21. send "{@tag} Postawiles kuchenke!"
  22. stop
  23. on break:
  24. loop {Kuchnie::*}:
  25. if loop-value is location of block:
  26. send "{@tag} Zniszczyles kuchenke!"
  27. remove location of block from {Kuchnie::*}
  28.  
  29. # ==================== KLIKANIE I OTWIERANIE MENU ====================
  30. on rightclick on iron block:
  31. loop {Kuchnie::*}:
  32. if loop-value is location of clicked block:
  33. if {Naladowane::%location of clicked block%} is not set:
  34. if player has 32 coal:
  35. remove 32 coal from player
  36. send "{@tag} Naladowales kuchenke weglem!"
  37. set {Naladowane::%location of clicked block%} to true
  38. stop
  39. else:
  40. send "{@tag} &cPotrzebujesz 32 wegla by naladowac kuchnie!"
  41. if {Naladowane::%location of clicked block%} is true:
  42. open chest with 1 rows named "Kuchnia" to player
  43. wait 1 tick
  44. 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"
  45. 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"
  46.  
  47. # ==================== MENU ====================
  48.  
  49. command /Kuchnia:x_menu_y [<player>] [<text>]:
  50. trigger:
  51. if arg 1 is set:
  52. set {_g} to arg 1
  53. if arg 2 is "ciasto":
  54. if player-arg has 2 eggs:
  55. if player-arg has 1 milk bucket:
  56. if player-arg has 3 wheat:
  57. remove 2 eggs from player-arg
  58. remove 1 milk bucket from player-arg
  59. remove 3 wheat from player-arg
  60. give 1 bucket to player-arg
  61. send "{@tag} Pomyslnie stworzyles ciasto!" to {_g}
  62. give 1 cake named "&fCiasto" to {_g}
  63. else:
  64. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
  65. else:
  66. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
  67. else:
  68. close player's inventory
  69. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
  70. if arg 2 is "zupa":
  71. if player-arg has 2 mushroom:
  72. if player-arg has 1 water bucket:
  73. remove 2 mushroom from player-arg
  74. remove 1 water bucket from player-arg
  75. give 1 bucket to player-arg
  76. send "{@tag} Pomyslnie stworzyles ciasto!" to {_g}
  77. give 1 mushroom stew named "&fZupa" to {_g}
  78. else:
  79. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
  80. else:
  81. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
  82. else:
  83. send "{@tag} &cNie masz wystarczajaco skladnikow!" to {_g}
Advertisement
Add Comment
Please, Sign In to add comment