I am messing around with rednet at the moment and seeing if I can transfer a message from one computer using a different computer, but, I have no idea where to start at this time, or even how to use rednet. Earlier today I was putting in some pre-made code by a user on these forums, I'm looking at it right now and it seems as if it was a password to a vault I guess. Here is the code -
print("Computer ID " , os.computerID())
redstone.setoutput("back" , true)
rednet.open("top")
repeat
local allowedIDs = { [33] = true, [34] = true }
local sEvent, param1, param2 = os.pullEvent()
if sEvent == "rednet_message" and allowedIDs[param1] then
redstone.setoutput("back" , false)
sleep(4)
redstone.setOutput("back" , true)
end
until event == "char" and p1=="x"
I really have no idea what that means, that's why I need some help understanding the lua coding. If anyone could help me with this I would be very greatful.