Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while true do
- local senderID, message, protocol = rednet.receive("commandChannel")
- if senderID == 143 and message == "place" then
- for i = 1, 16 do
- local item = turtle.getItemDetail(i)
- if item and string.match(item.name, "wither") then
- turtle.select(i)
- turtle.place()
- break
- end
- end
- end
- end
- rednet.close("right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement