m
no edit summary
(Added more explainations onto the code itself (Also Title-Cased Titles and bolder warnings)) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1:
<br />'''''Warning:
''It is recommended to use delay wire auto reactors''
Line 12:
Delay wire reactors are easiest and cheapest
For first you need make temperature control, put 2 temperature sensors on reactor and put polysilicon on them both. After config left one to 0:1000 and its polysilicon be deactivate, and on right one put 1000:inf and dont change
[[File:Scheme of delay wire autoreactor.png|thumb|Scheme of delay wire autoreactor red is transformer black is delay wire gray is dispencer orange is trigger wire green is flip flop poly and yellow is reactor]]
Line 55:
for i=1, #fuel do
if fuel[i] <= eject_treshold then
-- Don't eject when there's no fuel in there
TriggerPort(3) -- Eject fuel▼
if fuel[i] ~= 0 then
▲ TriggerPort(3) -- Eject fuel
end
dispenser:Dispense() -- Dispense fresh fuel
wait(1)
|