Posted 11 May 2015 - 01:53 PM
Monster 1.1.2
ComputerCraft
ReactorCraft
Hi,
I suppose this question was already asked, but I pass this weekend seeking the internet for an answer wthout finding anything.
Infact, I need to know when an inventory of a device is empty and to do that, I want to use ComputerCaft.
Let's consider a "chest". ( a pebble bed reactor core in fact )
I want to create a program that, when the inventory of the chest is empty, the program must send a redstone impulse.
But I don't know where to begin.
===
The Final goal is to monitor temp° and the inventory of the pebble bed reactor core, when it works. Once the inventory is empty, the program must impulse the redstone to give the order of sending another item (TRISO). And activate emergency cooling system in case of overheat.
Here an exemple of the kind of program I want to use:
Thank you for your help.
Have a good day.
ComputerCraft
ReactorCraft
Hi,
I suppose this question was already asked, but I pass this weekend seeking the internet for an answer wthout finding anything.
Infact, I need to know when an inventory of a device is empty and to do that, I want to use ComputerCaft.
Let's consider a "chest". ( a pebble bed reactor core in fact )
I want to create a program that, when the inventory of the chest is empty, the program must send a redstone impulse.
But I don't know where to begin.
===
The Final goal is to monitor temp° and the inventory of the pebble bed reactor core, when it works. Once the inventory is empty, the program must impulse the redstone to give the order of sending another item (TRISO). And activate emergency cooling system in case of overheat.
Here an exemple of the kind of program I want to use:
core = peripheral.wrap ('back')
while true do
if core.getTemperature() < 1500 then
redstone.setOutput('left', true)
else
redstone.setOutput('left', false)
end
os.sleep (1)
end
Thank you for your help.
Have a good day.