mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
radiolysis buff
This commit is contained in:
parent
db93e52b6c
commit
e69f403f15
@ -33,7 +33,6 @@ import net.minecraft.util.AxisAlignedBB;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
public class TileEntityMachineRadiolysis extends TileEntityMachineBase implements IEnergyGenerator, IFluidAcceptor, IFluidSource, IFluidContainer {
|
public class TileEntityMachineRadiolysis extends TileEntityMachineBase implements IEnergyGenerator, IFluidAcceptor, IFluidSource, IFluidContainer {
|
||||||
//TODO: Render file + resource locations + itemrenderlibrary + clientproxy, gui texture, further recipes
|
|
||||||
|
|
||||||
public long power;
|
public long power;
|
||||||
public static final int maxPower = 1000000;
|
public static final int maxPower = 1000000;
|
||||||
@ -127,8 +126,10 @@ public class TileEntityMachineRadiolysis extends TileEntityMachineBase implement
|
|||||||
tanks[0].setType(10, 11, slots);
|
tanks[0].setType(10, 11, slots);
|
||||||
setupTanks();
|
setupTanks();
|
||||||
|
|
||||||
if(heat > 0) {
|
if(heat > 100) {
|
||||||
if(heat >= 100 && worldObj.getTotalWorldTime() % 30 == 0)
|
int crackTime = (int) Math.min(-0.1 * (heat - 100) + 30, 5);
|
||||||
|
|
||||||
|
if(worldObj.getTotalWorldTime() % crackTime == 0)
|
||||||
crack();
|
crack();
|
||||||
|
|
||||||
if(heat >= 200 && worldObj.getTotalWorldTime() % 100 == 0)
|
if(heat >= 200 && worldObj.getTotalWorldTime() % 100 == 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user