Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Intended to craft items in turtle
- rDir = "east"
- fDir = "north"
- local rInv = peripheral.wrap("right")
- local fInv = peripheral.wrap("front")
- turtle.select(16)
- piston = { [1]="minecraft:planks",[2]="minecraft:planks",[3]="minecraft:planks",[5]="minecraft:cobblestone",[6]="minecraft:iron_ingot",[7]="minecraft:cobblestone",[9]="minecraft:cobblestone",[10]="minecraft:redstone",[11]="minecraft:cobblestone"}
- allInv = rInv.getAllStacks()
- for k,v in pairs(piston) do
- for i=1,27 do
- if allInv[i].basic().id == v then
- rInv.pushItem(rDir, i, 1, k)
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment