GamePL7

Untitled

Jun 18th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. on script load:
  2. register new shapeless recipe for sponge named "&6&lGENERATOR &a&lSTONE" using 64 cobblestone, 64 cobblestone, 64 cobblestone, 64 cobblestone, emerald, 64 cobblestone, 64 cobblestone, 64 cobblestone, 64 cobblestone
  3. every 33 ticks:
  4. loop {gpl::*}:
  5. if block above loop-value is air:
  6. set block above loop-value to Spruce wood
  7. On place sponge:
  8. if name of player's tool is "&6&lGENERATOR &e&lDREWNA":
  9. add location of target block to {gpl::*}
  10. on break sponge:
  11. loop {gpl::*}:
  12. if loop-value is location of target block:
  13. remove location of target block from {gpl::*}
  14. if block up is Spruce wood:
  15. cancel event
  16. set block to air
  17. give sponge named "&6&lGENERATOR &e&lDREWNA" to the player
  18. wait 1 tick
  19. set block up to air
  20. else:
  21. stop
  22. every 33 ticks:
  23. loop {gpl1::*}:
  24. if block above loop-value is air:
  25. set block above loop-value to obsidian
  26. On place sponge:
  27. if name of player's tool is "&6&lGENERATOR &c&lOBSA":
  28. add location of target block to {gpl1::*}
  29. if block under is sponge:
  30. cancel event
  31. send "&aNie, nie, nie!"
  32. on break sponge:
  33. loop {gpl1::*}:
  34. if loop-value is location of target block:
  35. remove location of target block from {gpl1::*}
  36. if block up is obsidian:
  37. cancel event
  38. set block to air
  39. give sponge named "&6&lGENERATOR &c&lOBSA" to the player
  40. wait 1 tick
  41. set block up to air
  42. else:
  43. stop
  44. every 33 ticks:
  45. loop {gpl2::*}:
  46. if block above loop-value is air:
  47. set block above loop-value to stone
  48. On place sponge:
  49. if name of player's tool is "&6&lGENERATOR &a&lSTONE":
  50. add location of target block to {gpl2::*}
  51. if block under is sponge:
  52. cancel event
  53. send "&aNie, nie, nie!"
  54. on break sponge:
  55. loop {gpl2::*}:
  56. if loop-value is location of target block:
  57. remove location of target block from {gpl2::*}
  58. if block up is stone:
  59. cancel event
  60. set block to air
  61. give sponge named "&6&lGENERATOR &a&lSTONE" to the player
  62. wait 1 tick
  63. set block up to air
  64. else:
  65. stop
  66. command /fastcoregenerator [<text>] [<player>]:
  67. permission: gen.gpl7
  68. permission message: &aNIE?
  69. trigger:
  70. if arg 1 is "sp":
  71. if arg 2 is offline player:
  72. give sponge named "&6&lGENERATOR &e&lDREWNA" to the arg-2
  73. if arg 1 is "bd":
  74. if arg 2 is offline player:
  75. give sponge named "&6&lGENERATOR &c&lOBSA" to the arg-2
  76. if arg 1 is "sto":
  77. if arg 2 is offline player:
  78. give sponge named "&6&lGENERATOR &a&lSTONE" to the arg-2
Advertisement
Add Comment
Please, Sign In to add comment