View difference between Paste ID: f7MZGbai and L5ei8286
SHOW: | | - or go back to the newest paste.
1
local m = peripheral.find("modem", function(_, o) return o.isWireless() end)
2-
    rs.setOutput(side,true)
2+
 
3-
    sleep(0.05)
3+
local function send_metric(...)
4-
    rs.setOutput(side,false)
4+
	m.transmit(3054, 3054, {...})
5-
    sleep(0.05)
5+
6
7-
--[[
7+
8-
function look()
8+
	rs.setOutput(side,true)
9-
    while true do
9+
	sleep(0.05)
10-
        local x,y = turtle.inspect()
10+
	rs.setOutput(side,false)
11-
        if x then
11+
	sleep(0.05)
12-
            if y.name == "minecraft:netherrack" then
12+
13-
                pulse "left"
13+
14-
                return
14+
15-
            end
15+
	local exists, data = turtle.inspect()
16-
        end
16+
	if not exists then sleep(0.05)
17-
    end
17+
	elseif data.name == "minecraft:netherrack" or data.name == "minecraft:stone" then pulse "left"
18
	else send_metric("ores_made", "quantity of ores summoned from beespace", "inc", 1) pulse "right" end
19
end