View difference between Paste ID: D3FSzd0b and JxauVSec
SHOW: | | - or go back to the newest paste.
1-
local sign = peripheral.find "minecraft:sign"
1+
2
local modem = peripheral.find "modem"
3-
local label = os.getComputerLabel()
3+
local channel = 49961
4-
local chest = peripheral.wrap "bottom"
4+
local offset = vector.new(-3, -3, 2)
5
6-
sign.setSignText "Rotating"
6+
local function randbytes(len)
7
	local out = ""
8-
local powered_rail_side = "right"
8+
	for i = 1, len do
9
		out = out .. string.char(math.random(0, 255))
10-
while true do
10+
11-
	local presence, meta = turtle.inspect()
11+
	return out
12-
	if presence and meta.name == "minecraft:activator_rail" then
12+
13-
		break
13+
14
local function main()
15-
	turtle.turnRight()
15+
16
		local entities = sensor.sense()
17
		local open = false
18-
turtle.turnLeft()
18+
19-
local presence, meta = turtle.inspect()
19+
			local position = vector.new(entity.x, entity.y, entity.z) + offset
20-
if presence and meta.name == "minecraft:golden_rail" then
20+
			if entity.displayName == "6_4" or entity.displayName == "gollark" and position:length() < 4 then
21-
	powered_rail_side = "left"
21+
				open = true
22
			end
23-
turtle.turnRight()
23+
24
		math.randomseed(math.floor(os.clock() * 100))
25-
local function sign_display(player)
25+
		local rc = math.random(0, 65535)
26-
	local l2, l3 = "", ""
26+
		modem.transmit(channel, rc, open)
27-
	if player then
27+
		print(open, rc)
28-
		l2 = "Welcome, "
28+
		sleep(0.1)
29-
		l3 = player
29+
30
end
31-
	sign.setSignText(label, l2, l3, "\\arr goto [dest]")
31+
32
main()