Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This code is designed to work only on Turtles with empty inventories
- local turtleInventory = peripheral.wrap("cctweaked:turtle_0")
- local inputChest = peripheral.wrap("minecraft:chest_8")
- local inputChestName = peripheral.getName(inputChest)
- while (true) do
- local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- if (message == "CRAFT") then
- turtle.craft()
- -- Return item/items to inventory
- for i=1,16 do
- turtleInventory.pushItems(inputChestName, i)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment