OC computer automated control NC cracking pile [OPEN Computers) Minecraft Game

Foreword

This tutorial is an upgraded version of the tutorial OC computer in the last time I wrote OC Computer Redstone. Since the previous version is too stupid, you need to manually enter the required parameters

This version of the code does not require any operation. The execution code is directly controlled and the stability is higher than the previous version. The computer case is directly attached to the fission controller.

Code and use tutorial

When the reactor runtime

This time the code has a stronger robustness than the previous version

 Local com = Require ("Component")

if not com.isavaible ("nc_fission_reactor") then

Print ("Please Put the Computer Beside The Reactor")

Return

end

local re = com.nc_fission_reactor

While true do

Re.ACTIVATE ()

While re.Getheatlevel ()/Re.GetmaxheatLevel () <0.9 do

End

Re.DeaCTIVATE ()

While re.GetheatLevel () ~ = 0 do

End

end

Principles and instructions

The computer does not need a redstone card this time. Use the computer to directly control the fission pile. If the fission pile is not detected,

It will be prompted to place the computer on the side of the fission pile. After the detection is completed, the crack will be turned on. When the internal heat bar is greater than 0.9, the reaction will be stopped.

It is reopened until it is cooled to 0. It is not limited to one or a few fuels that can only be eaten or some fuel.

Because the internal heat bar is detected, the difference between different fuel thermal thermal efficiency is not concerned, and it is directly operated on the reactor.

There is no need to consider the error caused by the additional delay, so the problem of the melting dumps is also solved well. Of course, you don’t take that kind of booting for 1 second.

Nitch can't save your reactor when you are here

Code can be customized part

While re.Getheatlevel ()/Re.GetmaxheatLevel () <0.9 do

0.9 here can be raised appropriately, which means to detect the percentage of the heat bars. If it is adjusted to 0.95, the heat bar of the reactor will be stopped and cooling.