mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
buffed RTGs, fixed loot block dropping, pylon cable length fix
This commit is contained in:
parent
608023ee4c
commit
43ba0f135d
@ -2,6 +2,7 @@ package com.hbm.blocks.generic;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.util.Tuple.Quartet;
|
||||
|
||||
@ -10,6 +11,7 @@ import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.NetworkManager;
|
||||
@ -41,6 +43,11 @@ public class BlockLoot extends BlockContainer {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockAdded(World world, int x, int y, int z) {
|
||||
super.onBlockAdded(world, x, y, z);
|
||||
|
||||
@ -23,7 +23,7 @@ public class TileEntityMachineMiniRTG extends TileEntity implements IEnergyGener
|
||||
if(this.getBlockType() == ModBlocks.machine_powerrtg)
|
||||
power += 2500;
|
||||
else
|
||||
power += 70;
|
||||
power += 700;
|
||||
|
||||
if(power > getMaxPower())
|
||||
power = getMaxPower();
|
||||
|
||||
@ -24,7 +24,7 @@ public class TileEntityMachineRTG extends TileEntity implements ISidedInventory,
|
||||
public int heat;
|
||||
public final int heatMax = 150;
|
||||
public long power;
|
||||
public final long powerMax = 90000;
|
||||
public final long powerMax = 100000;
|
||||
|
||||
private static final int[] slots_top = new int[] { 0 };
|
||||
private static final int[] slots_bottom = new int[] { 0 };
|
||||
@ -238,7 +238,7 @@ public class TileEntityMachineRTG extends TileEntity implements ISidedInventory,
|
||||
if(heat > heatMax)
|
||||
heat = heatMax;
|
||||
|
||||
power += heat;
|
||||
power += heat * 10;
|
||||
if(power > powerMax)
|
||||
power = powerMax;
|
||||
|
||||
|
||||
@ -30,9 +30,13 @@ public abstract class TileEntityPylonBase extends TileEntityCableBaseNT {
|
||||
Vec3 firstPos = first.getMountPos();
|
||||
Vec3 secondPos = second.getMountPos();
|
||||
|
||||
double deltaSq = Math.pow(secondPos.xCoord - firstPos.xCoord, 2) + Math.pow(secondPos.yCoord - firstPos.yCoord, 2) + Math.pow(secondPos.zCoord - firstPos.zCoord, 2);
|
||||
Vec3 delta = Vec3.createVectorHelper(
|
||||
(second.xCoord + secondPos.xCoord) - (first.xCoord + firstPos.xCoord),
|
||||
(second.yCoord + secondPos.yCoord) - (first.yCoord + firstPos.yCoord),
|
||||
(second.zCoord + secondPos.zCoord) - (first.zCoord + firstPos.zCoord)
|
||||
);
|
||||
|
||||
return lenSq >= deltaSq;
|
||||
return Math.sqrt(lenSq) >= delta.lengthVector();
|
||||
}
|
||||
|
||||
public void addConnection(int x, int y, int z) {
|
||||
|
||||
BIN
src/main/resources/assets/hbm/textures/blocks/red_connector.png
Normal file
BIN
src/main/resources/assets/hbm/textures/blocks/red_connector.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 196 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 556 B |
Loading…
x
Reference in New Issue
Block a user