Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function testBlock()
- PC = 21
- local success, data = turtle.inspect()
- if success then
- print("Block:", data.name)
- if data.name == "minecraft:white_wool" then
- rednet.send(PC, "G")
- elseif data.name == "minecraft:orange_wool" then
- rednet.send(PC, "1")
- elseif data.name == "minecraft:magenta_wool" then
- rednet.send(PC, "2")
- elseif data.name == "minecraft:light_blue_wool" then
- rednet.send(PC, "3")
- elseif data.name == "minecraft:yellow_wool" then
- rednet.send(21, "4")
- elseif data.name == "minecraft:lime_wool" then
- rednet.send(PC, "5")
- elseif data.name == "minecraft:pink_wool" then
- rednet.send(PC, "6")
- elseif data.name == "minecraft:gray_wool" then
- rednet.send(PC, "7")
- elseif data.name == "minecraft:light_gray_wool" then
- rednet.send(PC, "8")
- elseif data.name == "minecraft:cyan_wool" then
- rednet.send(PC, "9")
- elseif data.name == "minecraft:purple_wool" then
- rednet.send(PC, "10")
- elseif data.name == "minecraft:blue_wool" then
- rednet.send(PC, "11")
- elseif data.name == "minecraft:brown_wool" then
- rednet.send(PC, "12")
- elseif data.name == "minecraft:green_wool" then
- rednet.send(PC, "13")
- elseif data.name == "minecraft:red_wool" then
- rednet.send(PC, "14")
- elseif data.name == "minecraft:black_wool" then
- rednet.send(PC, "15")
- end
- end
- end
- testBlock()
Add Comment
Please, Sign In to add comment