stormtrooper28

MulitBlock

Feb 1st, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. function mana_converter_south(l: location):
  2. block north of {mana.stone.button.converter.block} is air
  3. block north east of {mana.stone.button.converter.block} is air
  4. block east of {mana.stone.button.converter.block} is air
  5. block south east of {mana.stone.button.converter.block} is air
  6. block south of {mana.stone.button.converter.block} is double stone slab item
  7. block south west of {mana.stone.button.converter.block} is air
  8. block west of {mana.stone.button.converter.block} is air
  9. block north west of {mana.stone.button.converter.block} is air
  10. block at {mana.stone.button.converter.block} is stone button
  11. set {_chest} to block below {mana.stone.button.converter.block}
  12. set {_output} to block north of {_chest}
  13. block north of {_chest} is dropper
  14. block north east of {_chest} is stone brick stairs
  15. block east of {_chest} is stone brick stairs
  16. block south east of {_chest} is stone brick stairs
  17. block south of {_chest} is double stone slab item
  18. block south west of {_chest} is stone brick stairs
  19. block west of {_chest} is stone brick stairs
  20. block north west of {_chest} is stone brick stairs
  21. block at {_chest} is chest
  22. loop all items in block at {_chest}:
  23. if loop-item is redstone:
  24. set {_count.stack} to amount of loop-item in block at {_chest}
  25. add {_count.stack} to {_count.redstone}
  26. while {_count.redstone} > {@convert.rate} - 1:
  27. remove 10 redstone from block at {_chest}
  28. remove 10 from {_count.redstone}
  29. add 1 redstone named "&4Mana" to block at {_output}
  30.  
  31. function mana_converter_north(l: location):
  32. block south of {mana.stone.button.converter.block} is air
  33. block south west of {mana.stone.button.converter.block} is air
  34. block west of {mana.stone.button.converter.block} is air
  35. block north west of {mana.stone.button.converter.block} is air
  36. block north of {mana.stone.button.converter.block} is double stone slab item
  37. block north east of {mana.stone.button.converter.block} is air
  38. block east of {mana.stone.button.converter.block} is air
  39. block south east of {mana.stone.button.converter.block} is air
  40. block at {mana.stone.button.converter.block} is stone button
  41. set {_chest} to block below {mana.stone.button.converter.block}
  42. set {_output} to block south of {_chest}
  43. block south of {_chest} is dropper
  44. block south west of {_chest} is stone brick stairs
  45. block west of {_chest} is stone brick stairs
  46. block north west of {_chest} is stone brick stairs
  47. block north of {_chest} is double stone slab item
  48. block north east of {_chest} is stone brick stairs
  49. block east of {_chest} is stone brick stairs
  50. block south east of {_chest} is stone brick stairs
  51. block at {_chest} is chest
  52. loop all items in block at {_chest}:
  53. if loop-item is redstone:
  54. set {_count.stack} to amount of loop-item in block at {_chest}
  55. add {_count.stack} to {_count.redstone}
  56. while {_count.redstone} > {@convert.rate} - 1:
  57. remove 10 redstone from block at {_chest}
  58. remove 10 from {_count.redstone}
  59. add 1 redstone named "&4Mana" to block at {_output}
  60.  
  61. function mana_converter_west(l: location):
  62. block east of {mana.stone.button.converter.block} is air
  63. block south east of {mana.stone.button.converter.block} is air
  64. block south of {mana.stone.button.converter.block} is air
  65. block south west of {mana.stone.button.converter.block} is air
  66. block west of {mana.stone.button.converter.block} is double stone slab item
  67. block north west of {mana.stone.button.converter.block} is air
  68. block north of {mana.stone.button.converter.block} is air
  69. block north east of {mana.stone.button.converter.block} is air
  70. block at {mana.stone.button.converter.block} is stone button
  71. set {_chest} to block below {mana.stone.button.converter.block}
  72. set {_output} to block east of {_chest}
  73. block east of {_chest} is dropper
  74. block south east of {_chest} is stone brick stairs
  75. block south of {_chest} is stone brick stairs
  76. block south west of {_chest} is stone brick stairs
  77. block west of {_chest} is double stone slab item
  78. block north west of {_chest} is stone brick stairs
  79. block north of {_chest} is stone brick stairs
  80. block north east of {_chest} is stone brick stairs
  81. block at {_chest} is chest
  82. loop all items in block at {_chest}:
  83. if loop-item is redstone:
  84. set {_count.stack} to amount of loop-item in block at {_chest}
  85. add {_count.stack} to {_count.redstone}
  86. while {_count.redstone} > {@convert.rate} - 1:
  87. remove 10 redstone from block at {_chest}
  88. remove 10 from {_count.redstone}
  89. add 1 redstone named "&4Mana" to block at {_output}
  90.  
  91. function mana_converter_east(l: location):
  92. block west of {mana.stone.button.converter.block} is air
  93. block north west of {mana.stone.button.converter.block} is air
  94. block north of {mana.stone.button.converter.block} is air
  95. block north east of {mana.stone.button.converter.block} is air
  96. block east of {mana.stone.button.converter.block} is double stone slab item
  97. block south east of {mana.stone.button.converter.block} is air
  98. block south of {mana.stone.button.converter.block} is air
  99. block south east of {mana.stone.button.converter.block} is air
  100. block at {mana.stone.button.converter.block} is stone button
  101. set {_chest} to block below {mana.stone.button.converter.block}
  102. set {_output} to block west of {_chest}
  103. block west of {_chest} is dropper
  104. block north west of {_chest} is stone brick stairs
  105. block north of {_chest} is stone brick stairs
  106. block north east of {_chest} is stone brick stairs
  107. block east of {_chest} is double stone slab item
  108. block south east of {_chest} is stone brick stairs
  109. block south of {_chest} is stone brick stairs
  110. block south west of {_chest} is stone brick stairs
  111. block at {_chest} is chest
  112. loop all items in block at {_chest}:
  113. if loop-item is redstone:
  114. set {_count.stack} to amount of loop-item in block at {_chest}
  115. add {_count.stack} to {_count.redstone}
  116. while {_count.redstone} > {@convert.rate} - 1:
  117. remove 10 redstone from block at {_chest}
  118. remove 10 from {_count.redstone}
  119. add 1 redstone named "&4Mana" to block at {_output}
  120.  
  121. on right click on stone button:
  122. if block south of event-block is double stone slab item:
  123. set {mana.stone.button.converter.block} to event-block
  124. mana_converter_south({mana.stone.button.converter.block})
  125. if block north of event-block is double stone slab item:
  126. set {mana.stone.button.converter.block} to event-block
  127. mana_converter_north({mana.stone.button.converter.block})
  128. if block east of event-block is double stone slab item:
  129. set {mana.stone.button.converter.block} to event-block
  130. mana_converter_east({mana.stone.button.converter.block})
  131. if block west of event-block is double stone slab item:
  132. set {mana.stone.button.converter.block} to event-block
  133. mana_converter_west({mana.stone.button.converter.block})
Advertisement
Add Comment
Please, Sign In to add comment