Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- barrelCoordinate = {
- [1] = {["x"] = -5296, ["z"] = 1129},
- [2] = {["x"] = -5296, ["z"] = 1135},
- [3] = {["x"] = -5294, ["z"] = 1129},
- [4] = {["x"] = -5294, ["z"] = 1135},
- [5] = {["x"] = -5292, ["z"] = 1129},
- [6] = {["x"] = -5292, ["z"] = 1135},
- [7] = {["x"] = -5290, ["z"] = 1129},
- [8] = {["x"] = -5290, ["z"] = 1135}
- }
- print(barrel[1]["x"])
- function PeripheralInit ()
- local allNames = peripheral.getNames()
- for i, name in ipairs(allNames) do
- type = peripheral.getType(name)
- if type == "monitor" then
- monitor = peripheral.wrap(name)
- elseif type == "fissionReactorLogicAdapter" then
- fissionReactor = peripheral.wrap(name)
- elseif type == "boilerValve" then
- boiler = peripheral.wrap(name)
- elseif type == "turbineValve" then
- turbine = peripheral.wrap(name)
- elseif type == "inductionPort" then
- energy = peripheral.wrap(name)
- elseif type == "ultimateChemicalTank" then
- fuel = peripheral.wrap(name)
- elseif type == "dynamicValve" then
- water = peripheral.wrap(name)
- elseif type == "blockReader" then
- barrels = {}
- barrel = peripheral.wrap(name)
- blockData = barrel.getBlockData()
- if blockData.x == barrelCoordinate[1].x && blockData.z == barrelCoo
- table.insert(barrels, barrel)
- elseif type == "redstoneIntegrator" then
- redIntegrators = {}
- redIntegrator = peripheral.wrap(name)
- table.insert(redIntegrators, redIntegrator)
- end
- end
- end
- PeripheralInit()
Add Comment
Please, Sign In to add comment