Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("func/func_base")
- os.loadAPI("func/func_const")
- print ("---CABLE LAYER---")
- local matrix = {}
- local get = true
- while get do
- print ("What direction (u)p, (d)own, (l)eft, (r)ight, (f)orward")
- local val = read()
- if val ~= "f" then
- if val ~= "d" then
- if val ~= "u" then
- if val ~= "l" then
- if val ~= "r" then
- get = false
- end
- end
- end
- end
- end
- if get == true then
- print("How many Blocks")
- local num = tonumber(read())
- table.insert(matrix, {val, num})
- end
- term.clear()
- end
- print("Put item to place in slot 1")
- print("press RETURN to start or TYPE q to cancel")
- local v = read()
- if v ~= "q" then
- local item = func_base.getItemName(1)
- func_const.layCable(matrix, item)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement