Advertisement
Guest User

Scenario Manager - By British

a guest
Jan 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.22 KB | None | 0 0
  1. command /scenarios:
  2. aliases: /scen, /scenario, /scenar
  3. trigger:
  4. send "&7&m------------------------------"
  5. send "&cUHC &6» Enabled Scenarios:"
  6. if {scenario::bleedingsweets} is true:
  7. send "&7» &aBleeding Sweets &7&l- &7&oWhenever a player dies they will drop a diamond, 5 gold, a book, 1 string, 16 arrows."
  8. if {scenario::cutclean} is true:
  9. send "&7» &aCutClean &7&l- &7&oFood and Ores drop in their smelted version!"
  10. if {scenario::timber} is true:
  11. send "&7» &aTimber &7&l- &7&oBreaking a log of a tree will cause the whole tree to fall down"
  12. if {scenario::hasteyboys} is true:
  13. send "&7» &aHasteyBoys &7&l- &7&oTools will be enchanted with efficency 3 and unbreaking 1 when crafted!"
  14. if {scenario::meleefun} is true:
  15. send "&7» &aMeleeFun &7&l- &7&oYou will hit people as fast as you click!"
  16. if {scenario::barebones} is true:
  17. send "&7» &aBareBones &7&l- &7&oYou cannot mine anything other than iron and cannot make enchants. When a player dies, they will drop 1 diamond, 1 golden apple, 32 arrows, and 2 string."
  18. if {scenario::bats} is true:
  19. send "&7» &aBats &7&l- &7&oWhen you kill a bat, there is a 95% chance you it will drop a golden apple but there is a 5% chance that you will die!"
  20. send "&7&m------------------------------"
  21.  
  22.  
  23.  
  24. #-------------------Scenarios part dont touch---------------------------
  25.  
  26.  
  27. variables:
  28. {scenario::barebones}=false
  29.  
  30. command /barebones <text>:
  31. permission: uhc.staff
  32. trigger:
  33. if arg 1 is "enable":
  34. if {scenario::barebones} is false:
  35. set {scenario::barebones} to true
  36. broadcast "<orange>Barebones <purple>is now enabled!"
  37. stop
  38. if {scenario::barebones} is true:
  39. message "<red>Barebones is already enabled!"
  40. stop
  41. if arg 1 is "disable":
  42. if {scenario::barebones} is true:
  43. set {scenario::barebones} to false
  44. broadcast "<orange>Barebones <purple>is now disabled!"
  45. stop
  46. if {scenario::barebones} is false:
  47. message "<red>Barebones is already disabled!"
  48. stop
  49. if arg 1 is "toggle":
  50. if {scenario::barebones} is true:
  51. set {scenario::barebones} to false
  52. broadcast "<orange>Barebones <purple>is now disabled!"
  53. stop
  54. if {scenario::barebones} is false:
  55. set {scenario::barebones} to true
  56. broadcast "<orange>Barebones <purple>is now enabled!"
  57. stop
  58.  
  59. on mine of gold ore:
  60. if {scenario::barebones} is true:
  61. set the block to air
  62. cancel the event
  63. drop 1 iron ingot
  64.  
  65.  
  66. on mine of diamond ore:
  67. if {scenario::barebones} is true:
  68. set the block to air
  69. cancel the event
  70. drop 1 iron ingot
  71.  
  72.  
  73. on craft of enchantment table:
  74. if {scenario::barebones} is true:
  75. cancel the event
  76.  
  77. on craft of anvil:
  78. if {scenario::barebones} is true:
  79. cancel the event
  80.  
  81. on craft of golden apple:
  82. if {scenario::barebones} is true:
  83. cancel the event
  84.  
  85. on death of a player:
  86. if {scenario::barebones} is true:
  87. drop 1 golden apple at the player
  88. drop 1 diamond at the player
  89. drop 32 arrows at the player
  90. drop 2 string at the player
  91.  
  92. #----------------------------------------MeleeFun-------------------------
  93.  
  94. options:
  95. Perm: uhc.staff
  96. P: &f[&bMeleeFun&f]
  97. C: &b
  98. H: &f
  99.  
  100. command /MeleeFun <text>:
  101. permission: {@Perm}
  102. usage: /MeleeFun <On:Off>
  103. trigger:
  104. if arg-1 is "enable" or "on":
  105. set {scenario::meleefun} to true
  106. broadcast "{@P}{@C} Melee Fun {@H}Enabled{@C}!"
  107. if arg-1 is "disable" or "off":
  108. delete {scenario::meleefun}
  109. broadcast "{@P}{@C} Melee Fun {@H}Disabled{@C}!"
  110.  
  111. on damage of player:
  112. if {scenario::meleefun} is true:
  113. attacker is a player
  114. set the no damage of victim to 0.1 tick
  115.  
  116.  
  117. #-------------------------------Bleeding Sweets-----------------------------
  118.  
  119. command /bs <text>:
  120. permission: uhc.staff
  121. trigger:
  122. if arg 1 is "on":
  123. set {scenario::bleedingsweets} to true
  124. broadcast "&aEnabled bleeding sweets"
  125. else if arg 1 is "off":
  126. delete {scenario::bleedingsweets}
  127. broadcast "&cDisabled bleeding sweets"
  128.  
  129. on death of player:
  130. {scenario::bleeding_sweets} is true
  131. loop split "1 diamond+5 golden ingot+1 string+16 arrow" at "+":
  132. drop ("%loop-value%" parsed as item) at victim
  133.  
  134.  
  135. #-------------------------CutClean------------------------
  136.  
  137.  
  138. options:
  139. Perm: uhc.staff
  140. P: &f[&bCutclean&f]
  141. C: &b
  142. H: &f
  143. VariableDrops: true
  144.  
  145. command /cutclean <text>:
  146. permission: {@Perm}
  147. usage: /Cutclean <On:Off>
  148. trigger:
  149. if arg-1 is "enable" or "on":
  150. set {scenario::cutclean} to true
  151. broadcast "{@P}{@C} Cutclean {@H}Enabled{@C}!"
  152. if arg-1 is "disable" or "off":
  153. delete {scenario::cutclean}
  154. broadcast "{@P}{@C} Cutclean {@H}Disabled{@C}!"
  155.  
  156. on mine of iron ore:
  157. if {scenario::cutclean} is true:
  158. if {VeinMiner} is true:
  159. player is not sneaking
  160. cancel event
  161. place iron ingot at event-block
  162. spawn 1 xp at event-block
  163. damage player's tool by 1
  164. else:
  165. cancel event
  166. place iron ingot at event-block
  167. spawn 1 xp at event-block
  168. damage player's tool by 1
  169.  
  170. on mine of gold ore:
  171. if {scenario::cutclean} is true:
  172. if {VeinMiner} is true:
  173. player is not sneaking
  174. cancel event
  175. place gold ingot at event-block
  176. spawn 1 xp at event-block
  177. damage player's tool by 1
  178. else:
  179. cancel event
  180. place gold ingot at event-block
  181. spawn 1 xp at event-block
  182. damage player's tool by 1
  183.  
  184. on death of a pig:
  185. if {scenario::cutclean} is true:
  186. clear drops
  187. set {_variable} to {@VariableDrops}
  188. if {_variable} is true:
  189. set block at the pig to chest
  190. set {_chestloc} to location at the pig
  191. set {_cookedporkchop} to a random integer between 1 and 2
  192. if {_cookedporkchop} is 1:
  193. add 1 cooked porkchop to the block at {_chestloc}
  194. if {_cookedporkchop} is 2:
  195. add 2 cooked porkchop to the block at {_chestloc}
  196. set the block at {_chestloc} to air
  197. else:
  198. drop 2 cooked porkchop at the pig
  199. drop 1 xp at the pig
  200.  
  201. on death of a cow:
  202. if {scenario::cutclean} is true:
  203. clear drops
  204. set {_variable} to {@VariableDrops}
  205. if {_variable} is true:
  206. set block at the cow to chest
  207. set {_chestloc} to location at the cow
  208. set {_steak} to a random integer between 1 and 2
  209. if {_steak} is 1:
  210. add 1 steak to the block at {_chestloc}
  211. if {_steak} is 2:
  212. add 2 steak to the block at {_chestloc}
  213. set the block at {_chestloc} to air
  214. else:
  215. drop 2 steak at the cow
  216. if {_variable} is true:
  217. set block at the cow to chest
  218. set {_chestloc} to location at the cow
  219. set {_leather} to a random integer between 1 and 2
  220. if {_leather} is 1:
  221. add 1 leather to the block at {_chestloc}
  222. if {_leather} is 2:
  223. add 2 leather to the block at {_chestloc}
  224. set the block at {_chestloc} to air
  225. else:
  226. drop 1 leather at the cow
  227. drop 1 xp at the cow
  228.  
  229. on death of a sheep:
  230. clear drops
  231. if {scenario::cutclean} is true:
  232. set {_variable} to {@VariableDrops}
  233. if {_variable} is true:
  234. set block at the sheep to chest
  235. set {_chestloc} to location at the sheep
  236. set {_cookedmutton} to a random integer between 1 and 2
  237. if {_cookedmutton} is 1:
  238. add 1 cooked mutton to the block at {_chestloc}
  239. if {_cookedmutton} is 2:
  240. add 2 cooked mutton to the block at {_chestloc}
  241. set the block at {_chestloc} to air
  242. else:
  243. drop 2 cooked mutton at the sheep
  244. drop 1 xp at the sheep
  245. else:
  246. set {_variable} to {@VariableDrops}
  247. if {_variable} is true:
  248. set block at the sheep to chest
  249. set {_chestloc} to location at the sheep
  250. set {_rawmutton} to a random integer between 1 and 2
  251. if {_rawmutton} is 1:
  252. add 1 raw mutton to the block at {_chestloc}
  253. if {_rawmutton} is 2:
  254. add 2 raw mutton to the block at {_chestloc}
  255. set the block at {_chestloc} to air
  256. else:
  257. drop 2 raw mutton at the sheep
  258. drop 1 xp at the sheep
  259. stop
  260.  
  261. on death of a chicken:
  262. {scenario::cutclean} is true
  263. clear drops
  264. set {_variable} to {@VariableDrops}
  265. if {_variable} is true:
  266. set block at the chicken to chest
  267. set {_chestloc} to location at the chicken
  268. set {_cookedchicken} to a random integer between 1 and 2
  269. if {_cookedchicken} is 1:
  270. add 1 cooked chicken to the block at {_chestloc}
  271. if {_cookedchicken} is 2:
  272. add 2 cooked chicken to the block at {_chestloc}
  273. set the block at {_chestloc} to air
  274. else:
  275. drop 2 cooked chicken at the chicken
  276. if {_variable} is true:
  277. set block at the chicken to chest
  278. set {_chestloc} to location at the chicken
  279. set {_feather} to a random integer between 1 and 2
  280. if {_feather} is 1:
  281. add 1 feather to the block at {_chestloc}
  282. if {_feather} is 2:
  283. add 2 feather to the block at {_chestloc}
  284. set the block at {_chestloc} to air
  285. else:
  286. drop 2 feather at the chicken
  287. drop 1 xp at the chicken
  288.  
  289. on death of a spider:
  290. {scenario::cutclean} is true
  291. clear drops
  292. set {_variable} to {@VariableDrops}
  293. if {_variable} is true:
  294. set block at the spider to chest
  295. set {_chestloc} to location at the spider
  296. set {_string} to a random integer between 1 and 2
  297. if {_string} is 1:
  298. add 1 string to the block at {_chestloc}
  299. if {_string} is 2:
  300. add 2 string to the block at {_chestloc}
  301. set the block at {_chestloc} to air
  302. else:
  303. drop 2 string at the spider
  304. chance of 30%:
  305. drop 1 spider eye at the spider
  306. drop 4 xp at the spider
  307.  
  308.  
  309.  
  310. #-------------------------HasteyBoys----------------------
  311.  
  312.  
  313. command /hasteyboys [<text>]:
  314. permission: uhc.staff
  315. trigger:
  316. if arg-1 is "on":
  317. broadcast "&c&lUHC &7» &fHasteyBoys &aEnabled"
  318. set {scenario::hasteyboys} to true
  319. if arg-1 is "off":
  320. broadcast "&c&lUHC &7» &fHasteyBoys &cDisabled"
  321. set {scenario::hasteyboys} to false
  322.  
  323. on craft of axe or shovel or pickaxe:
  324. {scenario::hasteyboys} is true
  325. wait 20 ticks
  326. loop all items in the player's inventory:
  327. loop-item is axe or pickaxe or shovel
  328. enchant loop-item with efficiency 3
  329.  
  330.  
  331. #------------------------Bats-----------------
  332.  
  333. command /bats [<text>]:
  334. permission: uhc.staff
  335. trigger:
  336. if arg 1 is equal to "on":
  337. set {scenario::bats} to true
  338. broadcast "&2Bats enabled"
  339. if arg 1 is equal to "off":
  340. set {scenario::bats} to false
  341. broadcast "&4Bats disabled"
  342.  
  343. on death of bat:
  344. {scenario::bats} is true
  345. attacker is a player
  346. drop 1 golden apple at location of victim
  347. chance of 5%:
  348. kill the attacker
  349. broadcast "&4%attacker% was consumed by the bats"
  350.  
  351.  
  352. #---------------------------Timber----------------
  353.  
  354. options:
  355. Perm: uhc.staff
  356. P: &f[&bTimber&f]
  357. C: &b
  358. H: &f
  359.  
  360. on mine:
  361. event-block is oak wood or birch wood or acacia wood or dark oak wood or spruce wood:
  362. {scenario::timber} is true:
  363. set {_tloc.%player%.1} to location 20 meters below event-block
  364. set {_tloc.%player%.2} to location 20 meters above event-block
  365. set {_tloc.%player%.3} to location 5 meters above event-block
  366. loop blocks within {_tloc.%player%.1} to {_tloc.%player%.2}:
  367. block below loop-block is dirt or grass block:
  368. block above loop-block is oak wood or birch wood or acacia wood or dark oak wood or spruce wood:
  369. set {_tloc.%player%.1} to location 20 meters below event-block
  370. set {_tloc.%player%.2} to location 20 meters above loop-block
  371. set {_tloc.%player%.3} to location 5 meters above loop-block
  372. loop blocks within {_tloc.%player%.1} to {_tloc.%player%.2}:
  373. loop-block is oak wood or birch wood or acacia wood or dark oak wood or spruce wood:
  374. break loop-block naturally
  375. play raw sound "dig.wood" at player with pitch 1 volume 5
  376. wait 0.1 tick
  377. loop blocks in radius 3 of loop-block:
  378. loop-block-2 is oak wood or birch wood or wood:0 or dark oak wood or spruce wood:
  379. break loop-block-2 naturally
  380. play raw sound "dig.wood" at player with pitch 1 volume 5
  381. wait 0.1 tick
  382.  
  383.  
  384. on mine:
  385. event-block is jungle wood:
  386. block above event-block is jungle wood:
  387. block below event-block is dirt or grass block:
  388. {scenario::timber} is true:
  389. set {tloc.%player%.1} to location of event-block
  390. set {tloc.%player%.2} to location 40 meters above event-block
  391. set {tloc.%player%.3} to location 23 meters above event-block
  392. loop blocks within {tloc.%player%.1} to {tloc.%player%.2}:
  393. wait 1 ticks
  394. loop-block is jungle wood:
  395. break loop-block naturally
  396. play raw sound "dig.wood" at player with pitch 1 volume 5
  397. loop blocks in radius 10 around {tloc.%player%.3}:
  398. wait 0.4 tick
  399. loop-block is jungle leaves:
  400. break loop-block naturally
  401. play raw sound "dig.wood" at player with pitch 1 volume 5
  402. delete {tloc.%player%.1}
  403. delete {tloc.%player%.2}
  404. delete {tloc.%player%.3}
  405.  
  406. command /Timber <text>:
  407. permission: {@Perm}
  408. usage: /Timber <On:Off>
  409. trigger:
  410. if arg-1 is "enable" or "on":
  411. set {scenario::timber} to true
  412. broadcast "{@P}{@C} Timber {@H}Enabled{@C}!"
  413. if arg-1 is "disable" or "off":
  414. delete {scenario::timber}
  415. broadcast "{@P}{@C} Timber {@H}Disabled{@C}!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement