Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- p = peripheral.wrap("back")
- a = {}
- controlRodCommand = 100
- while true do
- --Envoi des infos
- a["active"] = p.getActive()
- a["energyStored"] = p.getEnergyStored()
- a["fuelAmount"] = p.getFuelAmount()
- a["fuelAmountMax"] = p.getFuelAmountMax()
- a["controlRodLevel"] = p.getControlRodLevel(0)
- a["energyProducedLastTick"] = p.getEnergyProducedLastTick()
- a["fuelConsumedLastTick"] = p.getFuelConsumedLastTick()
- rednet.broadcast(a)
- --Ajustement des barres de controle
- id, controlRodCommand = rednet.receive()
- p.setAllControlRodLevels(controlRodCommand)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement