Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function redstoneEmit(side)
- redstone.setOutput(side, true)
- sleep(1)
- redstone.setOutput(side, false)
- sleep(1)
- end
- args = {...}
- x = args[1]
- y = args[2]
- if x < 0 then
- x = -x
- for i=1,x do
- redstoneEmit("left")
- end
- else
- for i=1,x do
- redstoneEmit("front")
- end
- end
- if y < 0 then
- y = -y
- for i=1,y do
- redstoneEmit("back")
- end
- else
- for i=1,y do
- redstoneEmit("right")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement