Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mana_converter_south(l: location):
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is double stone slab item
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block north of {_chest}
- block north of {_chest} is dropper
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is stone brick stairs
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is double stone slab item
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is stone brick stairs
- block north west of {_chest} is stone brick stairs
- block at {_chest} is chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- function mana_converter_north(l: location):
- block south of {mana.stone.button.converter.block} is air
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is double stone slab item
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block south of {_chest}
- block south of {_chest} is dropper
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is stone brick stairs
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is double stone slab item
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is stone brick stairs
- block south east of {_chest} is stone brick stairs
- block at {_chest} is chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- function mana_converter_west(l: location):
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is air
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is double stone slab item
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block east of {_chest}
- block east of {_chest} is dropper
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is stone brick stairs
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is double stone slab item
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is stone brick stairs
- block north east of {_chest} is stone brick stairs
- block at {_chest} is chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- function mana_converter_east(l: location):
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is double stone slab item
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block west of {_chest}
- block west of {_chest} is dropper
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is stone brick stairs
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is double stone slab item
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is stone brick stairs
- block south west of {_chest} is stone brick stairs
- block at {_chest} is chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- on right click on stone button:
- if block south of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_south({mana.stone.button.converter.block})
- if block north of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_north({mana.stone.button.converter.block})
- if block east of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_east({mana.stone.button.converter.block})
- if block west of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_west({mana.stone.button.converter.block})
Advertisement
Add Comment
Please, Sign In to add comment