nfell2009

OBAM Stuff

May 18th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.33 KB | None | 0 0
  1. on break of vines:
  2.     if biome at player is "jungle":
  3.         set {_chance} to rounded random number between 1 and 40
  4.         if {_chance} is 2 or 4 or 6 or 8 or 10:
  5.             message "&aYou have been bitten by a snake! You suffer a few seconds of poison"
  6.             poison the player for 5 seconds
  7.         else if {_chance} is 22 or 24 or 26 or 28 or 30:
  8.             message "&aYou have been infected with poison ivy! You suffer a few seconds of poison"
  9.             poison the player for 5 seconds
  10.            
  11. on break of cactus:
  12.     set {_chance} to rounded random number between 1 and 5
  13.     if {_chance} is 2 or 4:
  14.         message "&aCareful! Don't get pricked by the needles"
  15.     else if {_chance} is 3:
  16.         message "&aOuch! You got pricked by a needle!"
  17.         subtract 1/2 from the player's health
  18.        
  19. on break of flower:
  20.     set {_chance} to rounded random number between 1 and 10
  21.     if {_chance} is 5:
  22.         message "&aOuch! You just touched a thorn!"
  23.         subtract 1/2 from the player's health
  24.    
  25. on break of grass:
  26.     set {_chance} to rounded random number between 1 and 20
  27.     if {_chance} is 5 or 10 or 15:
  28.         message "&aThat grass is starting to irritate your skin!"
  29.        
  30. #===>> The following doesn't work as there is no way to tell where the lightning strikes <<===
  31. #on lightning strike:
  32. #   set {_chance} to rounded random number between 1 and 10
  33. #   loop blocks in radius 20 of event-location:
  34. #       if {_chance} is 5:
  35. #           if loop-block is glowstone:
  36. #               add location of loop-block to {_lstrike.glowstone::*}
  37. #               set loop-block to 123
  38. #           if loop-block is 124:
  39. #               add location of loop-block to {_lstrike.rlamps::*}
  40. #               set loop-block to 123
  41. #           message "&aYour power has gone out! OBAM Power Inc. will return your power within 30 seconds to a minute"
  42. #           set {_time} to rounded random number between 30 and 60
  43. #           wait {_time} seconds
  44. #           loop {_lstrike.glowstone::*}:
  45. #               set block at loop-value to glowstone
  46. #           loop {_lstrike.rlamps::*}:
  47. #               set block at loop-value to 124
  48. #       else:
  49. #           if loop-block is glowstone:
  50. #               add location of loop-block to {_lstrike.glowstone::*}
  51. #               set loop-block to 123
  52. #           if loop-block is 124:
  53. #               add location of loop-block to {_lstrike.rlamps::*}
  54. #               set loop-block to 123
  55. #           wait 1 second
  56. #           loop {_lstrike.glowstone::*}:
  57. #               set block at loop-value to glowstone
  58. #           loop {_lstrike.rlamps::*}:
  59. #               set block at loop-value to 124
  60. #           message "&aYour power is flickering!"
Advertisement
Add Comment
Please, Sign In to add comment