Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if args[1] == nil then
- print("Give me more than one arguemnt")
- return
- end
- if args[2] == nil then
- args[2] = "1"
- end
- rednet.open("back")
- function getSide(i)
- if i == 0 then
- return "bottom,"
- elseif i == 1 then
- return "left,"
- elseif i == 2 then
- return "top,"
- elseif i == 3 then
- return "right,"
- end
- end
- comps = {26, 30}
- list = {"GoldPressurePlate"
- , "Piston"
- , "GlassPane"
- , "InventoryCable"
- , "Computer"
- , "FactoryMachineBlock"
- , "BasicCapacitor"}
- for key, value in pairs(list) do
- if args[1] == value then
- rednet.send(comps[math.floor(key / 4) + 1], getSide(((key - 1) % 4))..args[2])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement