Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.56 KB | None | 0 0
  1. Options:
  2.  
  3. #--------------------------------
  4. # Teplé Nápoje
  5. #--------------------------------
  6.  
  7. item1: &lHorká čokoláda
  8. item2: &lEspresso
  9. item3: &lCappucino
  10. item4: &llLatte
  11.  
  12. #--------------------------------
  13. # Zákusky
  14. #--------------------------------
  15.  
  16. item5: &lMalinový zákusek
  17. item6: &lLimetkový cupcake
  18. item7: &lŠlehačkový dort
  19. item8: &lTiramisu
  20.  
  21. #--------------------------------
  22. # Studené nápoje
  23. #--------------------------------
  24.  
  25. item9: &lPomerančový fresh
  26. item10: &lFresh mix ovoce
  27. item11: &lSmoothie Mango
  28. item12: &lFrapé
  29.  
  30. #--------------------------------
  31. # Efekty
  32. #--------------------------------
  33.  
  34. efekt1: night vision
  35. efekt2: glowing
  36.  
  37. #--------------------------------
  38. # Particle Efekt
  39. #--------------------------------
  40.  
  41. p.efekt1: greensparks
  42. p.efekt2: crushedcandycane
  43. p.efekt3: music
  44.  
  45. #--------------------------------
  46. # Zvuky
  47. #--------------------------------
  48.  
  49. sound.drink: ENTITY_GENERIC_DRINK
  50. sound.jidlo1: ENTITY_GENERIC_EAT
  51. sound.jidlo2: ENTITY_PLAYER_BURP
  52. sound.nadobi: BLOCK_GLASS_BREAK
  53. sound.penize: ENTITY_EXPERIENCE_ORB_PICKUP
  54. sound.nakup: ENTITY_VILLAGER_TRADE
  55. sound.klic: BLOCK_IRON_DOOR_CLOSE
  56.  
  57. #--------------------------------
  58. # Talíř
  59. #--------------------------------
  60.  
  61. name.talir: &7&oPrázdný talíř
  62. lore.talir: &7&oUkliď po sobě!||&7&oVhoď prázdný talíř do koše!||Klikni s talířem na koš!
  63. item.talir: bowl
  64.  
  65. #--------------------------------
  66. # Hrneček
  67. #--------------------------------
  68.  
  69. name.hrnecek: &7&oPrázdný hrnek
  70. lore.hrnecek: &7&oUkliď po sobě!||&7&oVhoď prázdný hrnek do koše!||Klikni s hrnkem na koš!
  71. item.hrnecek: flower pot
  72.  
  73. #--------------------------------
  74. # Sklenička
  75. #--------------------------------
  76.  
  77. name.sklenicka: &7&oPrázdná sklenice
  78. lore.sklenicka: &7&oUkliď po sobě!||&7&oVhoď prázdnou sklenici do koše!||Klikni se sklenicí na koš!
  79. item.sklenicka: glass bottle
  80.  
  81. #--------------------------------
  82. # Message
  83. #--------------------------------
  84.  
  85. message.dekuji: &bDěkuji za úklid! Dám ti nějaké drobné!
  86. message.drobne: &6Bylo ti posláno 0.25 ฿
  87. message.nakup: &6Děkuji ti za nákup!
  88. message.kos: &6Vhazuj použité nádobí &7&o(věc musíš držet v ruce a kliknout na koš)
  89. message.cooldown: &cChvilku počkej, než se můžeš znovu najíst a napít!
  90.  
  91. #--------------------------------
  92. # Money
  93. #--------------------------------
  94.  
  95. money.uklid: money give %player% 0.25
  96.  
  97. #--------------------------------
  98. # Effect Duration & Cooldown
  99. #--------------------------------
  100.  
  101. efekt.cooldown.1: 10 seconds
  102. efekt.cooldown.2: 20 seconds
  103. efekt.cooldown.3: 60 seconds
  104.  
  105. #************************************************************************************************************************
  106. # CODE LINE CODE LINE CODE LINE CODE LINE CODE LINE
  107. #************************************************************************************************************************
  108.  
  109. on rightclick with player head:
  110.  
  111. #--------------------------------
  112. # ITEM1 - Horká čokoláda
  113. #--------------------------------
  114.  
  115. if name of event-item contains "{@item1}":
  116. cancel event
  117.  
  118. if {cooldown::%player%} is set:
  119. wait 2 seconds
  120. message "{@message.cooldown}"
  121. stop trigger
  122.  
  123. remove 1 of tool from tool
  124. execute console command "lp user %player% permission settemp ultracosmetics.* true 70s global hub"
  125. play sound "{@sound.drink}" to player with volume 1 and pitch 4.0
  126. wait 2 seconds
  127. apply potion of {@efekt1} of tier 1 to player for {@efekt.cooldown.3}
  128. execute console command "uc toggle effect {@p.efekt3} %player%"
  129. give 1 {@item.hrnecek} named "{@name.hrnecek}" with lore "{@lore.hrnecek}" to player
  130.  
  131. set {cooldown::%player%} to 1
  132. wait {@efekt.cooldown.3}
  133. execute console command "uc clear %player% particleeffects"
  134. delete {cooldown::%player%}
  135.  
  136. #--------------------------------
  137. # ITEM 5 - Malinový zákusek
  138. #--------------------------------
  139.  
  140. if name of event-item contains "{@item5}":
  141. cancel event
  142.  
  143. if {cooldown::%player%} is set:
  144. wait 2 seconds
  145. message "{@message.cooldown}"
  146. stop trigger
  147.  
  148. remove 1 of tool from tool
  149. execute console command "lp user %player% permission settemp ultracosmetics.* true 30s global hub"
  150. play sound "{@sound.jidlo1}" to player with volume 1 and pitch 4.0
  151. play sound "{@sound.jidlo2}" to player with volume 1 and pitch 4.0
  152. apply potion of {@efekt2} of tier 1 to player for {@efekt.cooldown.2}
  153. execute console command "uc toggle effect {@p.efekt1} %player%"
  154. give 1 {@item.talir} named "{@name.talir}" with lore "{@lore.talir}" to player
  155.  
  156. set {cooldown::%player%} to 1
  157. wait {@efekt.cooldown.2}
  158. execute console command "uc clear %player% particleeffects"
  159. delete {cooldown::%player%}
  160.  
  161. #--------------------------------
  162. # ITEM 8 - Tiramisu
  163. #--------------------------------
  164.  
  165. if name of event-item contains "{@item8}":
  166. cancel event
  167.  
  168. if {cooldown::%player%} is set:
  169. wait 2 seconds
  170. message "{@message.cooldown}"
  171. stop trigger
  172.  
  173. remove 1 of tool from tool
  174. execute console command "lp user %player% permission settemp ultracosmetics.* true 30s global hub"
  175. play sound "{@sound.jidlo1}" to player with volume 1 and pitch 4.0
  176. play sound "{@sound.jidlo2}" to player with volume 1 and pitch 4.0
  177. apply potion of {@efekt2} of tier 1 to player for {@efekt.cooldown.2}
  178. execute console command "uc toggle effect {@p.efekt1} %player%"
  179. give 1 {@item.talir} named "{@name.talir}" with lore "{@lore.talir}" to player
  180.  
  181. set {cooldown::%player%} to 1
  182. wait {@efekt.cooldown.2}
  183. execute console command "uc clear %player% particleeffects"
  184. delete {cooldown::%player%}
  185.  
  186. #--------------------------------
  187. # ITEM 9 - Pomerančový fresh
  188. #--------------------------------
  189.  
  190. if name of event-item contains "{@item9}":
  191. cancel event
  192.  
  193. if {cooldown::%player%} is set:
  194. wait 2 seconds
  195. message "{@message.cooldown}"
  196. stop trigger
  197.  
  198. remove 1 of tool from tool
  199. execute console command "lp user %player% permission settemp ultracosmetics.* true 30s global hub"
  200. play sound "{@sound.drink}" to player with volume 1 and pitch 4.0
  201. apply potion of {@efekt2} of tier 1 to player for {@efekt.cooldown.2}
  202. execute console command "uc toggle effect {@p.efekt1} %player%"
  203. give 1 {@item.sklenicka} named "{@name.sklenicka}" with lore "{@lore.sklenicka}" to player
  204.  
  205. set {cooldown::%player%} to 1
  206. wait {@efekt.cooldown.2}
  207. execute console command "uc clear %player% particleeffects"
  208. delete {cooldown::%player%}
  209.  
  210. #-----------
  211.  
  212. on load:
  213. delete {cooldown::*}
  214.  
  215. #xxxxxxxxxxxxxxxxxxxxxxxxxxx
  216. # KOŠ
  217. #xxxxxxxxxxxxxxxxxxxxxxxxxxx
  218.  
  219. on rightclick:
  220. if event-block is cauldron:
  221.  
  222. #--------------------------------
  223. # Prázdná ruka / jiný item
  224. #--------------------------------
  225.  
  226. if player's tool is not {@item.hrnecek} or {@item.talir} or {@item.sklenicka}:
  227. message "{@message.kos}"
  228.  
  229. #--------------------------------
  230. # Hrníček
  231. #--------------------------------
  232.  
  233. else if player's tool is {@item.hrnecek}:
  234. if name of player's tool is "{@name.hrnecek}":
  235. play sound "{@sound.nadobi}" to player with volume 1 and pitch 4.0
  236. set action bar of player to coloured "{@message.dekuji}"
  237. execute console command "{@money.uklid}"
  238. remove 1 of tool from tool
  239. wait 1 seconds
  240. play sound "{@sound.penize}" to player with volume 1 and pitch 4.0
  241. set action bar of player to coloured "{@message.drobne}"
  242.  
  243. #--------------------------------
  244. # Talířek
  245. #--------------------------------
  246.  
  247. else if player's tool is {@item.talir}:
  248. if name of player's tool is "{@name.talir}":
  249. play sound "{@sound.nadobi}" to player with volume 1 and pitch 4.0
  250. set action bar of player to coloured "{@message.dekuji}"
  251. execute console command "{@money.uklid}"
  252. remove 1 of tool from tool
  253. wait 1 seconds
  254. play sound "{@sound.penize}" to player with volume 1 and pitch 4.0
  255. set action bar of player to coloured "{@message.drobne}"
  256.  
  257. #--------------------------------
  258. # Sklenička
  259. #--------------------------------
  260.  
  261. else if player's tool is {@item.sklenicka}:
  262. if name of player's tool is "{@name.sklenicka}":
  263. play sound "{@sound.nadobi}" to player with volume 1 and pitch 4.0
  264. set action bar of player to coloured "{@message.dekuji}"
  265. execute console command "{@money.uklid}"
  266. remove 1 of tool from tool
  267. wait 1 seconds
  268. play sound "{@sound.penize}" to player with volume 1 and pitch 4.0
  269. set action bar of player to coloured "{@message.drobne}"
  270.  
  271. #_______________________________
  272. #
  273. # NÁKUP ACTION BAR
  274. #_______________________________
  275.  
  276. command /kavarna_nakup:
  277. trigger:
  278. set action bar of player to coloured "{@message.nakup}"
  279.  
  280. #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  281. # KLÍČ
  282. #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  283.  
  284. on right click with player head:
  285. if name of event-item contains "{@item5}" or "{@item6}" or "{@item7}" or "{@item8}":
  286. cancel event
  287. chance of 5%:
  288. play sound "{@sound.klic}" to player with volume 1 and pitch 4.0
  289. wait 2 seconds
  290. broadcast "&6Našel se zapečený klíč v dortíku! &d&l%player%&6 je ten štastný nálezce!"
  291. execute console command "cc give p basic 1 %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement