Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- CC
- local Monitor = peripheral.wrap('left')
- local modem = peripheral.wrap('right')
- function clear_mon()
- Monitor.clear()
- Monitor.setCursorPos(1,1)
- end
- function com()
- modem.open(3)
- local event, modemSide, senderChannel,
- replyChannel, message, senderDistance = os.pullEvent("modem_message")
- Monitor.write(message)
- end
- function pick_up()
- chest = peripheral.wrap('front')
- for i in pairs(chest.list()) do
- turtle.suck()
- end
- return True
- end
- local this = 'jemoedervriend'
- function drop()
- for x=2,16 do
- print(x)
- turtle.select(x)
- turtle.drop()
- end
- turtle.select(1)
- if turtle.getItemDetail()['name'] == 'minecraft:coal' then
- turtle.refuel()
- end
- end
- -- Main loop
- while this ~= nil do
- pick_up()
- drop()
- this = False
- end
Add Comment
Please, Sign In to add comment