Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local trueSlot
- rednet.open("left")
- local senderIDI, slot = rednet.receive()
- sleep(0.2)
- local senderIDA, amount = rednet.receive()
- if slot == 17 then
- trueSlot = slot - 16
- print("redstone")
- else if slot == 18 then
- trueSlot = slot - 16
- print("blazePowder")
- else if slot == 19 then
- trueSlot = slot - 16
- print("glowStone")
- else if slot == 20 then
- trueSlot = slot - 16
- print("nikolite")
- else if slot == 21 then
- trueSlot = slot - 16
- print("diamond")
- else if slot == 22 then
- trueSlot = slot - 16
- print("lapis")
- else if slot == 23 then
- trueSlot = slot - 16
- print("coal")
- else if slot == 24 then
- trueSlot = slot - 16
- print("clay")
- else if slot == 25 then
- trueSlot = slot - 16
- print("flint")
- else if slot == 26 then
- trueSlot = slot - 16
- print("apatite")
- else if slot == 27 then
- trueSlot = slot - 16
- print("scrap")
- else if slot == 28 then
- trueSlot = slot - 16
- print("rubber")
- else if slot == 29 then
- trueSlot = slot - 16
- print("ruby")
- else if slot == 30 then
- trueSlot = slot - 16
- print("emerald")
- else if slot == 31 then
- trueSlot = slot - 16
- print("sapphire")
- else if slot == 32 then
- trueSlot = slot - 16
- print("obsidian")
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- sleep(1)
- --print(senderIDI)
- print(trueSlot)
- --print(senderIDA)
- print(amount)
- sleep(10)
- rednet.close("left")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment