Advertisement
Uranium_49

Untitled

Mar 1st, 2025 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.87 KB | None | 0 0
  1.  
  2. --sulfur tryoxide
  3. local chemicalInfuser0 = peripheral.wrap("chemicalInfuser_0")
  4. local chemicalInfuser1 = peripheral.wrap("chemicalInfuser_1")
  5. --tank
  6. local tank4 = peripheral.wrap("dynamicValve_4")
  7.  
  8. --sulfuric acid
  9. local chemicalInfuser2 = peripheral.wrap("chemicalInfuser_2")
  10. --tank
  11. local tank5 = peripheral.wrap("dynamicValve_5")
  12.  
  13. --hydrofluoric acid
  14. local chemicalDissolutionChamber0 = peripheral.wrap("chemicalDissolutionChamber_0")
  15. --tank
  16. local tank6 = peripheral.wrap("dynamicValve_6")
  17.  
  18. --uranium hexafluoride
  19. local chemicalInfuser3 = peripheral.wrap("chemicalInfuser_3")
  20. --tank
  21. local tank7 = peripheral.wrap("dynamicValve_7")
  22.  
  23. --fossile fuel
  24. local isotopicCentrifuge0 = peripheral.wrap("isotopicCentrifuge_0")
  25. --tank
  26. local tank8 = peripheral.wrap("dynamicValve_8")
  27.  
  28. rednet.open("modem_0")
  29. local reciverID = 20
  30.  
  31. while true do
  32. message = {
  33.     tryoxide = {
  34.         machine0 = {
  35.             leftCapacity = 10000,
  36.             leftInput = chemicalInfuser0.getLeftInput(),
  37.             rightCapacity = 10000,
  38.             rightInput = chemicalInfuser0.getRightInput(),
  39.             outputCapacity = 10000,
  40.             output = chemicalInfuser0.getOutput(),
  41.             energyUsage = chemicalInfuser0.getEnergyUsage(),
  42.         },
  43.         machine1 = {
  44.             leftCapacity = 10000,
  45.             leftInput = chemicalInfuser1.getLeftInput(),
  46.             rightCapacity = 10000,
  47.             rightInput = chemicalInfuser1.getRightInput(),
  48.             outputCapacity = 10000,
  49.             output = chemicalInfuser1.getOutput(),
  50.             energyUsage = chemicalInfuser1.getEnergyUsage(),
  51.         },
  52.         tank = {
  53.             maxCapacity = tank4.getChemicalTankCapacity(),
  54.             stored = tank4.getStored(),
  55.         },
  56.     },
  57.  
  58.     solfuricAcide = {
  59.         machine0 = {
  60.             leftCapacity = 10000,
  61.             leftInput = chemicalInfuser2.getLeftInput(),
  62.             rightCapacity = 10000,
  63.             rightInput = chemicalInfuser2.getRightInput(),
  64.             outputCapacity = 10000,
  65.             output = chemicalInfuser2.getOutput(),
  66.             energyUsage = chemicalInfuser2.getEnergyUsage(),
  67.         },
  68.         tank = {
  69.             maxCapacity = tank5.getChemicalTankCapacity(),
  70.             stored = tank5.getStored(),
  71.         },
  72.  
  73.     },
  74.  
  75.     hydrofluoricAcid = {
  76.         machine0 = {
  77.             gazInputCapacity = 10000,
  78.             gazInput = chemicalDissolutionChamber0.getGasInput(),
  79.             itemInput = chemicalDissolutionChamber0.getInputItem(),
  80.             outputCapacity = 10000,
  81.             output = chemicalDissolutionChamber0.getOutput(),
  82.             energyUsage = chemicalDissolutionChamber0.getEnergyUsage(),
  83.         },
  84.         tank = {
  85.             maxCapacity = tank6.getChemicalTankCapacity(),
  86.             stored = tank6.getStored(),
  87.         },
  88.     },
  89.  
  90.     uraniumHexafluoride = {
  91.         machine0 = {
  92.             leftCapacity = 10000,
  93.             leftInput = chemicalInfuser3.getLeftInput(),
  94.             rightCapacity = 10000,
  95.             rightInput = chemicalInfuser3.getRightInput(),
  96.             outputCapacity = 10000,
  97.             output = chemicalInfuser3.getOutput(),
  98.             energyUsage = chemicalInfuser3.getEnergyUsage(),
  99.         },
  100.         tank = {
  101.             maxCapacity = tank7.getChemicalTankCapacity(),
  102.             stored = tank7.getStored(),
  103.         },
  104.     },
  105.  
  106.     fossilFuel = {
  107.         machine0 = {
  108.             inputCapacity = 10000,
  109.             input = isotopicCentrifuge0.getInput(),
  110.             outputCapacity = 10000,
  111.             output = isotopicCentrifuge0.getOutput(),
  112.             energyUsage = isotopicCentrifuge0.getEnergyUsage(),
  113.         },
  114.         tank = {
  115.             maxCapacity = tank8.getChemicalTankCapacity(),
  116.             stored = tank8.getStored(),
  117.         },
  118.     },
  119. }
  120.  
  121.  
  122. print(textutils.serialize(message))
  123.  
  124. rednet.send(reciverID,message,"all")
  125.  
  126. sleep(0.1)
  127.  
  128. end
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement