Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- me = component.me_interface
- db = component.database
- io.write('Number of blocks needed: ')
- nBlocks = io.read("*n")
- io.write('DB index: ')
- dbIndex = io.read("*n")
- cycles = nBlocks//64;
- lastStack = nBlocks%64;
- for i=1,cycles do
- me.setInterfacePatternInput(1, db.address, dbIndex, 64, i)
- end
- me.setInterfacePatternInput(1, db.address, dbIndex, lastStack, cycles+1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement