Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valve, monitor
- local serverID = nil
- local clients = {}
- local args = {...}
- --local redlimit, redside, on
- local sides = {"left", "right", "top", "bottom", "front", "back"};
- local liquidColors = {{"Water", colors.blue },
- {"tile.oilStill", colors.gray, "Oil"},
- {"Creosote Oil", colors.brown},
- {"Essence", colors.lime},
- {"Steam", colors.lightGray},
- {"Honey", colors.yellow},
- {"Ethanol", colors.orange},
- {"Lava", colors.red},
- {"item.fuel", colors.yellow, "Fuel"},
- {"Biomass", colors.green},
- {"Fortron", colors.lightBlue},
- {"Sludge", colors.black},
- {"Liquid DNA", colors.magenta},
- {"Fruit Juice", colors.green},
- {"Seed Oil", colors.yellow},
- {"Liquid Force", colors.yellow},
- {"Oil", colors.gray, "Oil"},
- {"Fuel", colors.yellow, "Fuel"},
- {"uumatter", colors.purple, "UUMatter"},
- {"vegetable", colors.magenta, "Veg"},
- {"deuterium", colors.lightBlue, "Deuterium"}
- }
- local function getLiquidColor(liquid)
- for c, color in pairs (liquidColors) do
- if (liquid == color[1]) then
- return color[2],color[3] or liquid
- end
- end
- return colors.white, liquid;
- end
- local function getDeviceSide(deviceType)
- for i,side in pairs(sides) do
- if (peripheral.isPresent(side)) then
- if (peripheral.getType(side)) == string.lower(deviceType) then
- return side;
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement