depth rock pickaxe, decorative stones, gas improvements, s'mores
11
src/main/java/api/hbm/item/IDepthRockTool.java
Normal file
@ -0,0 +1,11 @@
|
||||
package api.hbm.item;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IDepthRockTool {
|
||||
|
||||
public boolean canBreakRock(World world, EntityPlayer player, ItemStack tool, Block block, int x, int y, int z);
|
||||
}
|
||||
@ -105,6 +105,10 @@ public class ModBlocks {
|
||||
public static Block ore_gneiss_schrabidium;
|
||||
public static Block ore_gneiss_rare;
|
||||
public static Block ore_gneiss_gas;
|
||||
|
||||
public static Block gneiss_brick;
|
||||
public static Block gneiss_tile;
|
||||
public static Block gneiss_chiseled;
|
||||
|
||||
public static Block stone_depth;
|
||||
public static Block ore_depth_cinnebar;
|
||||
@ -112,6 +116,12 @@ public class ModBlocks {
|
||||
public static Block cluster_depth_iron;
|
||||
public static Block cluster_depth_titanium;
|
||||
public static Block cluster_depth_tungsten;
|
||||
|
||||
public static Block stone_depth_nether;
|
||||
public static Block ore_depth_nether_neodymium;
|
||||
|
||||
public static Block depth_brick;
|
||||
public static Block depth_tiles;
|
||||
|
||||
public static Block cluster_iron;
|
||||
public static Block cluster_titanium;
|
||||
@ -203,6 +213,7 @@ public class ModBlocks {
|
||||
public static Block block_actinium;
|
||||
public static Block block_tritium;
|
||||
public static Block block_semtex;
|
||||
public static Block block_smore;
|
||||
|
||||
public static Block block_australium;
|
||||
public static Block block_weidanium;
|
||||
@ -957,6 +968,8 @@ public class ModBlocks {
|
||||
public static final int guiID_rbmk_console = 117;
|
||||
public static final int guiID_rbmk_outgasser = 119;
|
||||
public static Block rbmk_loader;
|
||||
public static Block rbmk_steam_inlet;
|
||||
public static Block rbmk_steam_outlet;
|
||||
public static Block pribris;
|
||||
public static Block pribris_burning;
|
||||
public static Block pribris_radiating;
|
||||
@ -1126,7 +1139,7 @@ public class ModBlocks {
|
||||
cluster_titanium = new BlockCluster(Material.rock).setBlockName("cluster_titanium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(15.0F).setBlockTextureName(RefStrings.MODID + ":cluster_titanium");
|
||||
cluster_aluminium = new BlockCluster(Material.rock).setBlockName("cluster_aluminium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(15.0F).setBlockTextureName(RefStrings.MODID + ":cluster_aluminium");
|
||||
|
||||
ore_nether_coal = new BlockNetherCoal(Material.rock, true, 5, true).setBlockName("ore_nether_coal").setCreativeTab(MainRegistry.blockTab).setLightLevel(10F/15F).setHardness(0.4F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_nether_coal");
|
||||
ore_nether_coal = new BlockNetherCoal(Material.rock, false, 5, true).setBlockName("ore_nether_coal").setCreativeTab(MainRegistry.blockTab).setLightLevel(10F/15F).setHardness(0.4F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_nether_coal");
|
||||
ore_nether_smoldering = new BlockSmolder(Material.rock).setBlockName("ore_nether_smoldering").setCreativeTab(MainRegistry.blockTab).setLightLevel(1F).setHardness(0.4F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_nether_smoldering");
|
||||
ore_nether_uranium = new BlockOutgas(Material.rock, true, 5, false).setBlockName("ore_nether_uranium").setCreativeTab(MainRegistry.blockTab).setHardness(0.4F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_nether_uranium");
|
||||
ore_nether_uranium_scorched = new BlockOutgas(Material.rock, true, 5, false).setBlockName("ore_nether_uranium_scorched").setCreativeTab(MainRegistry.blockTab).setHardness(0.4F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_nether_uranium_scorched");
|
||||
@ -1159,13 +1172,23 @@ public class ModBlocks {
|
||||
ore_gneiss_schrabidium = new BlockOre(Material.rock).setBlockName("ore_gneiss_schrabidium").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_gneiss_schrabidium");
|
||||
ore_gneiss_rare = new BlockOre(Material.rock).setBlockName("ore_gneiss_rare").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_gneiss_rare");
|
||||
ore_gneiss_gas = new BlockOre(Material.rock).setBlockName("ore_gneiss_gas").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_gneiss_gas");
|
||||
|
||||
gneiss_brick = new BlockGeneric(Material.rock).setBlockName("gneiss_brick").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":gneiss_brick");
|
||||
gneiss_tile = new BlockGeneric(Material.rock).setBlockName("gneiss_tile").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":gneiss_tile");
|
||||
gneiss_chiseled = new BlockPillar(Material.rock, RefStrings.MODID + ":gneiss_tile").setBlockName("gneiss_chiseled").setCreativeTab(MainRegistry.blockTab).setHardness(1.5F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":gneiss_chiseled");
|
||||
|
||||
stone_depth = new BlockGeneric(Material.rock).setBlockName("stone_depth").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":stone_depth");
|
||||
stone_depth = new BlockDepth().setBlockName("stone_depth").setCreativeTab(MainRegistry.blockTab).setBlockTextureName(RefStrings.MODID + ":stone_depth");
|
||||
ore_depth_cinnebar = new BlockOre(Material.rock).setBlockName("ore_depth_cinnebar").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_depth_cinnebar");
|
||||
ore_depth_zirconium = new BlockOre(Material.rock).setBlockName("ore_depth_zirconium").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_depth_zirconium");
|
||||
cluster_depth_iron = new BlockOre(Material.rock).setBlockName("cluster_depth_iron").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":cluster_depth_iron");
|
||||
cluster_depth_titanium = new BlockOre(Material.rock).setBlockName("cluster_depth_titanium").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":cluster_depth_titanium");
|
||||
cluster_depth_tungsten = new BlockOre(Material.rock).setBlockName("cluster_depth_tungsten").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":cluster_depth_tungsten");
|
||||
|
||||
depth_brick = new BlockGeneric(Material.rock).setBlockName("depth_brick").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":depth_brick");
|
||||
depth_tiles = new BlockGeneric(Material.rock).setBlockName("depth_tiles").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":depth_tiles");
|
||||
|
||||
stone_depth_nether = new BlockDepth().setBlockName("stone_depth_nether").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":stone_depth_nether");
|
||||
ore_depth_nether_neodymium = new BlockOre(Material.rock).setBlockName("ore_depth_nether_neodymium").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_depth_nether_neodymium");
|
||||
|
||||
ore_australium = new BlockGeneric(Material.rock).setBlockName("ore_australium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_australium");
|
||||
ore_weidanium = new BlockGeneric(Material.rock).setBlockName("ore_weidanium").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_weidanium");
|
||||
@ -1260,7 +1283,8 @@ public class ModBlocks {
|
||||
block_actinium = new BlockGeneric(Material.iron).setBlockName("block_actinium").setCreativeTab(MainRegistry.blockTab).setStepSound(Block.soundTypeMetal).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":block_actinium");
|
||||
block_tritium = new BlockRotatablePillar(Material.glass, RefStrings.MODID + ":block_tritium_top").setBlockName("block_tritium").setCreativeTab(MainRegistry.blockTab).setStepSound(Block.soundTypeGlass).setHardness(3.0F).setResistance(2.0F).setBlockTextureName(RefStrings.MODID + ":block_tritium_side");
|
||||
block_semtex = new BlockSemtex(Material.tnt).setBlockName("block_semtex").setCreativeTab(MainRegistry.blockTab).setStepSound(Block.soundTypeMetal).setHardness(2.0F).setResistance(2.0F).setBlockTextureName(RefStrings.MODID + ":block_semtex");
|
||||
|
||||
block_smore = new BlockPillar(Material.rock, RefStrings.MODID + ":block_smore_top").setBlockName("block_smore").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(900.0F).setBlockTextureName(RefStrings.MODID + ":block_smore_side");
|
||||
|
||||
block_australium = new BlockGeneric(Material.iron).setBlockName("block_australium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":block_australium");
|
||||
block_weidanium = new BlockGeneric(Material.iron).setBlockName("block_weidanium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":block_weidanium");
|
||||
block_reiium = new BlockGeneric(Material.iron).setBlockName("block_reiium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":block_reiium");
|
||||
@ -1323,7 +1347,7 @@ public class ModBlocks {
|
||||
brick_compound = new BlockGeneric(Material.rock).setBlockName("brick_compound").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(10000.0F).setBlockTextureName(RefStrings.MODID + ":brick_compound");
|
||||
cmb_brick = new BlockGeneric(Material.rock).setBlockName("cmb_brick").setCreativeTab(MainRegistry.blockTab).setHardness(25.0F).setResistance(6000.0F).setBlockTextureName(RefStrings.MODID + ":cmb_brick");
|
||||
cmb_brick_reinforced = new BlockGeneric(Material.rock).setBlockName("cmb_brick_reinforced").setCreativeTab(MainRegistry.blockTab).setHardness(25.0F).setResistance(60000.0F).setBlockTextureName(RefStrings.MODID + ":cmb_brick_reinforced");
|
||||
brick_asbestos = new BlockOutgas(Material.rock, true, 5, true).addAsbestos().toBlock().setBlockName("brick_asbestos").setCreativeTab(MainRegistry.blockTab).setResistance(1000.0F).setBlockTextureName(RefStrings.MODID + ":brick_asbestos");
|
||||
brick_asbestos = new BlockOutgas(Material.rock, true, 5, true).addAsbestos().toBlock().setBlockName("brick_asbestos").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(1000.0F).setBlockTextureName(RefStrings.MODID + ":brick_asbestos");
|
||||
|
||||
tile_lab = new BlockOutgas(Material.rock, false, 5, true).setBlockName("tile_lab").setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.blockTab).setHardness(1.0F).setResistance(20.0F).setBlockTextureName(RefStrings.MODID + ":tile_lab");
|
||||
tile_lab_cracked = new BlockOutgas(Material.rock, false, 5, true).setBlockName("tile_lab_cracked").setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.blockTab).setHardness(1.0F).setResistance(20.0F).setBlockTextureName(RefStrings.MODID + ":tile_lab_cracked");
|
||||
@ -1773,6 +1797,8 @@ public class ModBlocks {
|
||||
rbmk_outgasser = new RBMKOutgasser().setBlockName("rbmk_outgasser").setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":rbmk/rbmk_outgasser");
|
||||
rbmk_console = new RBMKConsole().setBlockName("rbmk_console").setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":rbmk/rbmk_console");
|
||||
rbmk_loader = new BlockGeneric(Material.iron).setBlockName("rbmk_loader").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(60.0F).setBlockTextureName(RefStrings.MODID + ":rbmk_loader");
|
||||
rbmk_steam_inlet = new RBMKInlet(Material.iron).setBlockName("rbmk_steam_inlet").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(60.0F).setBlockTextureName(RefStrings.MODID + ":rbmk_steam_inlet");
|
||||
rbmk_steam_outlet = new RBMKOutlet(Material.iron).setBlockName("rbmk_steam_outlet").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(60.0F).setBlockTextureName(RefStrings.MODID + ":rbmk_steam_outlet");
|
||||
pribris = new RBMKDebris().setBlockName("pribris").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(600.0F).setBlockTextureName(RefStrings.MODID + ":rbmk/rbmk_debris");
|
||||
pribris_burning = new RBMKDebrisBurning().setBlockName("pribris_burning").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(600.0F).setBlockTextureName(RefStrings.MODID + ":rbmk/rbmk_debris_burning");
|
||||
pribris_radiating = new RBMKDebrisRadiating().setBlockName("pribris_radiating").setCreativeTab(MainRegistry.machineTab).setHardness(50.0F).setResistance(600.0F).setBlockTextureName(RefStrings.MODID + ":rbmk/rbmk_debris_radiating");
|
||||
@ -2066,6 +2092,9 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(cluster_depth_titanium, ItemBlockDepth.class, cluster_depth_titanium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(cluster_depth_tungsten, ItemBlockDepth.class, cluster_depth_tungsten.getUnlocalizedName());
|
||||
|
||||
//Nether depth ores
|
||||
GameRegistry.registerBlock(ore_depth_nether_neodymium, ItemBlockDepth.class, ore_depth_nether_neodymium.getUnlocalizedName());
|
||||
|
||||
//End Ores
|
||||
GameRegistry.registerBlock(ore_tikite, ore_tikite.getUnlocalizedName());
|
||||
|
||||
@ -2077,7 +2106,13 @@ public class ModBlocks {
|
||||
|
||||
//Stone Variants
|
||||
GameRegistry.registerBlock(stone_gneiss, stone_gneiss.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(gneiss_brick, gneiss_brick.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(gneiss_tile, gneiss_tile.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(gneiss_chiseled, gneiss_chiseled.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(stone_depth, ItemBlockDepth.class, stone_depth.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(depth_brick, ItemBlockDepth.class, depth_brick.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(depth_tiles, ItemBlockDepth.class, depth_tiles.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(stone_depth_nether, ItemBlockDepth.class, stone_depth_nether.getUnlocalizedName());
|
||||
|
||||
//Blocks
|
||||
GameRegistry.registerBlock(block_uranium, ItemBlockHazard.class, block_uranium.getUnlocalizedName());
|
||||
@ -2157,6 +2192,7 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(block_actinium, block_actinium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(block_tritium, block_tritium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(block_semtex, block_semtex.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(block_smore, block_smore.getUnlocalizedName());
|
||||
|
||||
//Bottlecap Blocks
|
||||
GameRegistry.registerBlock(block_cap_nuka, block_cap_nuka.getUnlocalizedName());
|
||||
@ -2542,6 +2578,8 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(rbmk_outgasser, rbmk_outgasser.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(rbmk_console, rbmk_console.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(rbmk_loader, rbmk_loader.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(rbmk_steam_inlet, rbmk_steam_inlet.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(rbmk_steam_outlet, rbmk_steam_outlet.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(pribris, pribris.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(pribris_burning, pribris_burning.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(pribris_radiating, pribris_radiating.getUnlocalizedName());
|
||||
|
||||
@ -15,6 +15,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasAsbestos extends BlockGasBase {
|
||||
|
||||
public BlockGasAsbestos() {
|
||||
super(0.6F, 0.6F, 0.5F);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void randomDisplayTick(World world, int x, int y, int z, Random rand) {
|
||||
|
||||
@ -3,24 +3,36 @@ package com.hbm.blocks.gas;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.util.ArmorUtil;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public abstract class BlockGasBase extends Block {
|
||||
|
||||
float red;
|
||||
float green;
|
||||
float blue;
|
||||
|
||||
public BlockGasBase() {
|
||||
public BlockGasBase(float r, float g, float b) {
|
||||
super(ModBlocks.materialGas);
|
||||
this.setHardness(0.0F);
|
||||
this.setResistance(0.0F);
|
||||
this.lightOpacity = 0;
|
||||
this.red = r;
|
||||
this.green = g;
|
||||
this.blue = b;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -109,4 +121,24 @@ public abstract class BlockGasBase extends Block {
|
||||
public ForgeDirection randomHorizontal(World world) {
|
||||
return ForgeDirection.getOrientation(world.rand.nextInt(4) + 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void randomDisplayTick(World world, int x, int y, int z, Random rand) {
|
||||
super.randomDisplayTick(world, x, y, z, rand);
|
||||
|
||||
EntityPlayer p = MainRegistry.proxy.me();
|
||||
if(ArmorUtil.checkArmorPiece(p, ModItems.ashglasses, 3)) {
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
data.setString("type", "vanillaExt");
|
||||
data.setString("mode", "cloud");
|
||||
data.setDouble("posX", x + 0.5);
|
||||
data.setDouble("posY", y + 0.5);
|
||||
data.setDouble("posZ", z + 0.5);
|
||||
data.setFloat("r", red);
|
||||
data.setFloat("g", green);
|
||||
data.setFloat("b", blue);
|
||||
MainRegistry.proxy.effectNT(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package com.hbm.blocks.gas;
|
||||
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.util.ArmorUtil;
|
||||
@ -18,6 +17,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasClorine extends BlockGasBase {
|
||||
|
||||
public BlockGasClorine() {
|
||||
super(0.7F, 0.8F, 0.6F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return 0;
|
||||
|
||||
@ -11,6 +11,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasFlammable extends BlockGasBase {
|
||||
|
||||
public BlockGasFlammable() {
|
||||
super(0.8F, 0.8F, 0.2F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ForgeDirection getFirstDirection(World world, int x, int y, int z) {
|
||||
|
||||
|
||||
@ -14,6 +14,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasMonoxide extends BlockGasBase {
|
||||
|
||||
public BlockGasMonoxide() {
|
||||
super(0.1F, 0.1F, 0.1F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(World world, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity entity) {
|
||||
|
||||
|
||||
@ -15,6 +15,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasRadon extends BlockGasBase {
|
||||
|
||||
public BlockGasRadon() {
|
||||
super(0.1F, 0.8F, 0.1F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(World world, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity entity) {
|
||||
|
||||
|
||||
@ -19,6 +19,10 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class BlockGasRadonDense extends BlockGasBase {
|
||||
|
||||
public BlockGasRadonDense() {
|
||||
super(0.1F, 0.5F, 0.1F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(World world, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity entity) {
|
||||
|
||||
|
||||
@ -7,6 +7,8 @@ import com.hbm.util.ContaminationUtil;
|
||||
import com.hbm.util.ContaminationUtil.ContaminationType;
|
||||
import com.hbm.util.ContaminationUtil.HazardType;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.init.Blocks;
|
||||
@ -41,6 +43,10 @@ public class BlockGasRadonTomb extends BlockGasBase {
|
||||
* Leave this place and never come back.
|
||||
*/
|
||||
|
||||
public BlockGasRadonTomb() {
|
||||
super(0.1F, 0.3F, 0.1F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(World world, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity entity) {
|
||||
|
||||
@ -69,8 +75,17 @@ public class BlockGasRadonTomb extends BlockGasBase {
|
||||
if(!world.isRemote) {
|
||||
|
||||
if(rand.nextInt(10) == 0) {
|
||||
if(world.getBlock(x, y - 1, z) == Blocks.grass)
|
||||
world.setBlock(x, y - 1, z, ModBlocks.waste_earth);
|
||||
Block b = world.getBlock(x, y - 1, z);
|
||||
|
||||
if(b == Blocks.grass) {
|
||||
if(rand.nextInt(5) == 0)
|
||||
world.setBlock(x, y - 1, z, Blocks.dirt, 1, 3);
|
||||
else
|
||||
world.setBlock(x, y - 1, z, ModBlocks.waste_earth);
|
||||
}
|
||||
|
||||
if((b.getMaterial() == Material.grass || b.getMaterial() == Material.leaves || b.getMaterial() == Material.plants || b.getMaterial() == Material.vine) && !b.isNormalCube())
|
||||
world.setBlock(x, y - 1, z, Blocks.air);
|
||||
}
|
||||
|
||||
if(rand.nextInt(600) == 0) {
|
||||
|
||||
28
src/main/java/com/hbm/blocks/generic/BlockDepth.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.hbm.blocks.generic;
|
||||
|
||||
import api.hbm.item.IDepthRockTool;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockDepth extends Block {
|
||||
|
||||
public BlockDepth() {
|
||||
super(Material.rock);
|
||||
this.setBlockUnbreakable();
|
||||
this.setResistance(10.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getPlayerRelativeBlockHardness(EntityPlayer player, World world, int x, int y, int z) {
|
||||
|
||||
if(player.getHeldItem() != null && player.getHeldItem().getItem() instanceof IDepthRockTool) {
|
||||
|
||||
if(((IDepthRockTool)player.getHeldItem().getItem()).canBreakRock(world, player, player.getHeldItem(), this, x, y, z))
|
||||
return (float) (1D / 100D);
|
||||
}
|
||||
|
||||
return super.getPlayerRelativeBlockHardness(player, world, x, y, z);
|
||||
}
|
||||
}
|
||||
@ -219,6 +219,9 @@ public class BlockOre extends Block {
|
||||
if(this == ModBlocks.ore_cobalt || this == ModBlocks.ore_nether_cobalt) {
|
||||
return ModItems.fragment_cobalt;
|
||||
}
|
||||
if(this == ModBlocks.ore_depth_nether_neodymium) {
|
||||
return ModItems.fragment_neodymium;
|
||||
}
|
||||
|
||||
return Item.getItemFromBlock(this);
|
||||
}
|
||||
@ -255,6 +258,9 @@ public class BlockOre extends Block {
|
||||
if(this == ModBlocks.ore_nether_cobalt) {
|
||||
return 5 + rand.nextInt(8);
|
||||
}
|
||||
if(this == ModBlocks.ore_depth_nether_neodymium) {
|
||||
return 2 + rand.nextInt(2);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.packet.AuxParticlePacketNT;
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
@ -13,6 +14,7 @@ import com.hbm.util.ContaminationUtil.HazardType;
|
||||
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
@ -98,9 +100,13 @@ public class RBMKDebrisRadiating extends RBMKDebrisBurning {
|
||||
e.attackEntityFrom(DamageSource.inFire, 100);
|
||||
}
|
||||
|
||||
/*if(e instanceof EntityPlayer) {
|
||||
((EntityPlayer) e).addChatComponentMessage(new ChatComponentText("RAD/s: " + (int)eRads).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED)));
|
||||
}*/
|
||||
if(e instanceof EntityPlayer && len < 10) {
|
||||
EntityPlayer p = (EntityPlayer) e;
|
||||
|
||||
if(p.getHeldItem() != null && p.getHeldItem().getItem() == ModItems.marshmallow && p.getHeldItem().getItemDamage() != 1 && p.getRNG().nextInt(100) == 0) {
|
||||
p.getHeldItem().setItemDamage(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
20
src/main/java/com/hbm/blocks/machine/rbmk/RBMKInlet.java
Normal file
@ -0,0 +1,20 @@
|
||||
package com.hbm.blocks.machine.rbmk;
|
||||
|
||||
import com.hbm.tileentity.machine.rbmk.TileEntityRBMKInlet;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class RBMKInlet extends BlockContainer {
|
||||
|
||||
public RBMKInlet(Material mat) {
|
||||
super(mat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileEntityRBMKInlet();
|
||||
}
|
||||
}
|
||||
20
src/main/java/com/hbm/blocks/machine/rbmk/RBMKOutlet.java
Normal file
@ -0,0 +1,20 @@
|
||||
package com.hbm.blocks.machine.rbmk;
|
||||
|
||||
import com.hbm.tileentity.machine.rbmk.TileEntityRBMKOutlet;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class RBMKOutlet extends BlockContainer {
|
||||
|
||||
public RBMKOutlet(Material mat) {
|
||||
super(mat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileEntityRBMKOutlet();
|
||||
}
|
||||
}
|
||||
@ -53,6 +53,7 @@ public class ConsumableRecipes {
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.loop_stew), new Object[] { ModItems.loops, ModItems.can_smart, Items.bowl });
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.coffee), new Object[] { "dustCoal", Items.milk_bucket, Items.potionitem, Items.sugar }));
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.coffee_radium), new Object[] { ModItems.coffee, ModItems.nugget_ra226 });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.ingot_smore), new Object[] { Items.wheat, new ItemStack(ModItems.marshmallow, 1, 1), new ItemStack(Items.dye, 1, 3) });
|
||||
|
||||
//Peas
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.peas), new Object[] { " S ", "SNS", " S ", 'S', Items.wheat_seeds, 'N', Items.gold_nugget });
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
package com.hbm.inventory;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.inventory.RecipesCommon.AStack;
|
||||
import com.hbm.items.special.ItemHot;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import scala.actors.threadpool.Arrays;
|
||||
|
||||
public class AnvilSmithingHotRecipe extends AnvilSmithingRecipe {
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.inventory;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@ -7,7 +8,6 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import scala.actors.threadpool.Arrays;
|
||||
|
||||
public class RecipesCommon {
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@ import java.util.Map;
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.inventory.RecipesCommon.ComparableStack;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.main.MainRegistry;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
@ -44,7 +45,10 @@ public class ShredderRecipes {
|
||||
if(dust != null && dust.getItem() != ModItems.scrap) {
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
} else if(name.length() > 3 && name.substring(0, 3).equals("ore")) {
|
||||
@ -55,7 +59,10 @@ public class ShredderRecipes {
|
||||
dust.stackSize = 2;
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
} else if(name.length() > 5 && name.substring(0, 5).equals("block")) {
|
||||
@ -66,7 +73,10 @@ public class ShredderRecipes {
|
||||
dust.stackSize = 9;
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
} else if(name.length() > 3 && name.substring(0, 3).equals("gem")) {
|
||||
@ -75,7 +85,10 @@ public class ShredderRecipes {
|
||||
if(dust != null && dust.getItem() != ModItems.scrap) {
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
} else if(name.length() > 7 && name.substring(0, 7).equals("crystal")) {
|
||||
@ -84,13 +97,19 @@ public class ShredderRecipes {
|
||||
if(dust != null && dust.getItem() != ModItems.scrap) {
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), dust);
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
} else if(name.length() > 3 && name.substring(0, 4).equals("dust")) {
|
||||
|
||||
for(ItemStack stack : matches) {
|
||||
shredderRecipes.put(new ComparableStack(stack), new ItemStack(ModItems.dust));
|
||||
if(stack != null)
|
||||
shredderRecipes.put(new ComparableStack(stack), new ItemStack(ModItems.dust));
|
||||
else
|
||||
MainRegistry.logger.error("Ore dict entry '" + name + "' has a null stack!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,18 +50,17 @@ public class GUIRBMKConsole extends GuiScreen {
|
||||
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
Keyboard.enableRepeatEvents(true);
|
||||
|
||||
for(int i = 0; i < 4; i++) {
|
||||
this.field = new GuiTextField(this.fontRendererObj, guiLeft + 9, guiTop + 84, 35, 9);
|
||||
this.field.setTextColor(0x00ff00);
|
||||
this.field.setDisabledTextColour(0x008000);
|
||||
this.field.setEnableBackgroundDrawing(false);
|
||||
this.field.setMaxStringLength(3);
|
||||
}
|
||||
|
||||
this.guiLeft = (this.width - this.xSize) / 2;
|
||||
this.guiTop = (this.height - this.ySize) / 2;
|
||||
|
||||
Keyboard.enableRepeatEvents(true);
|
||||
|
||||
this.field = new GuiTextField(this.fontRendererObj, guiLeft + 9, guiTop + 84, 35, 9);
|
||||
this.field.setTextColor(0x00ff00);
|
||||
this.field.setDisabledTextColour(0x008000);
|
||||
this.field.setEnableBackgroundDrawing(false);
|
||||
this.field.setMaxStringLength(3);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -310,4 +309,9 @@ public class GUIRBMKConsole extends GuiScreen {
|
||||
|
||||
super.keyTyped(c, i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesGuiPauseGame() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,6 +29,7 @@ import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
||||
import net.minecraft.item.ItemFood;
|
||||
import net.minecraft.item.ItemSoup;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
@ -126,6 +127,7 @@ public class ModItems {
|
||||
public static Item ingot_semtex;
|
||||
public static Item ingot_boron;
|
||||
public static Item ingot_graphite;
|
||||
public static Item ingot_smore;
|
||||
|
||||
public static Item ingot_australium;
|
||||
public static Item ingot_weidanium;
|
||||
@ -1981,6 +1983,7 @@ public class ModItems {
|
||||
public static Item drax;
|
||||
public static Item drax_mk2;
|
||||
public static Item drax_mk3;
|
||||
public static Item bismuth_pickaxe;
|
||||
public static Item chlorophyte_pickaxe;
|
||||
public static Item mese_pickaxe;
|
||||
|
||||
@ -2427,6 +2430,7 @@ public class ModItems {
|
||||
ingot_cobalt = new Item().setUnlocalizedName("ingot_cobalt").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_cobalt");
|
||||
ingot_boron = new Item().setUnlocalizedName("ingot_boron").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_boron");
|
||||
ingot_graphite = new Item().setUnlocalizedName("ingot_graphite").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_graphite");
|
||||
ingot_smore = new ItemFood(10, 20F, false).setUnlocalizedName("ingot_smore").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_smore");
|
||||
sulfur = new Item().setUnlocalizedName("sulfur").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":sulfur");
|
||||
|
||||
ingot_uranium_fuel = new ItemHazard(ItemHazard.uf * ItemHazard.ingot).setUnlocalizedName("ingot_uranium_fuel").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_uranium_fuel");
|
||||
@ -4155,7 +4159,7 @@ public class ModItems {
|
||||
pancake = new ItemPancake(20, 20, false).setUnlocalizedName("pancake").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":pancake");
|
||||
nugget = new ItemLemon(200, 200, false).setUnlocalizedName("nugget").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":nugget");
|
||||
peas = new ItemPeas().setUnlocalizedName("peas").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":peas");
|
||||
marshmallow = new Item().setUnlocalizedName("marshmallow").setMaxStackSize(1).setFull3D().setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":marshmallow");
|
||||
marshmallow = new ItemMarshmallow().setUnlocalizedName("marshmallow").setMaxStackSize(1).setFull3D().setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":marshmallow");
|
||||
cheese = new ItemLemon(5, 10, false).setUnlocalizedName("cheese").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":cheese");
|
||||
|
||||
defuser = new Item().setUnlocalizedName("defuser").setMaxStackSize(1).setFull3D().setCreativeTab(MainRegistry.nukeTab).setTextureName(RefStrings.MODID + ":defuser");
|
||||
@ -4915,6 +4919,17 @@ public class ModItems {
|
||||
.addBreakAbility(new ToolAbility.HammerAbility(4))
|
||||
.addBreakAbility(new ToolAbility.RecursionAbility(9)).setUnlocalizedName("drax_mk3").setTextureName(RefStrings.MODID + ":drax_mk3");
|
||||
|
||||
ToolMaterial matBismuth = EnumHelper.addToolMaterial("HBM_BISMUTH", 4, 0, 50F, 0.0F, 200).setRepairItem(new ItemStack(ModItems.ingot_bismuth));
|
||||
bismuth_pickaxe = new ItemToolAbility(15F, 0, matBismuth, EnumToolType.MINER)
|
||||
.addBreakAbility(new ToolAbility.HammerAbility(2))
|
||||
.addBreakAbility(new ToolAbility.ShredderAbility())
|
||||
.addBreakAbility(new ToolAbility.LuckAbility(2))
|
||||
.addBreakAbility(new ToolAbility.SilkAbility())
|
||||
.addHitAbility(new WeaponAbility.StunAbility(5))
|
||||
.addHitAbility(new WeaponAbility.VampireAbility(2F))
|
||||
.addHitAbility(new WeaponAbility.BeheaderAbility())
|
||||
.setDepthRockBreaker().setUnlocalizedName("bismuth_pickaxe").setTextureName(RefStrings.MODID + ":bismuth_pickaxe");
|
||||
|
||||
ToolMaterial matChlorophyte = EnumHelper.addToolMaterial("HBM_CHLOROPHYTE", 4, 0, 50F, 0.0F, 200).setRepairItem(new ItemStack(ModItems.powder_chlorophyte));
|
||||
chlorophyte_pickaxe = new ItemToolAbility(20F, 0, matChlorophyte, EnumToolType.MINER)
|
||||
.addBreakAbility(new ToolAbility.HammerAbility(2))
|
||||
@ -4923,7 +4938,8 @@ public class ModItems {
|
||||
.addBreakAbility(new ToolAbility.MercuryAbility())
|
||||
.addHitAbility(new WeaponAbility.StunAbility(10))
|
||||
.addHitAbility(new WeaponAbility.VampireAbility(5F))
|
||||
.addHitAbility(new WeaponAbility.BeheaderAbility()).setUnlocalizedName("chlorophyte_pickaxe").setTextureName(RefStrings.MODID + ":chlorophyte_pickaxe");
|
||||
.addHitAbility(new WeaponAbility.BeheaderAbility())
|
||||
.setDepthRockBreaker().setUnlocalizedName("chlorophyte_pickaxe").setTextureName(RefStrings.MODID + ":chlorophyte_pickaxe");
|
||||
|
||||
ToolMaterial matMese = EnumHelper.addToolMaterial("HBM_MESE", 4, 0, 50F, 0.0F, 200).setRepairItem(new ItemStack(ModItems.plate_paa));
|
||||
mese_pickaxe = new ItemToolAbility(35F, 0, matMese, EnumToolType.MINER)
|
||||
@ -4938,7 +4954,8 @@ public class ModItems {
|
||||
.addBreakAbility(new ToolAbility.ExplosionAbility(15F))
|
||||
.addHitAbility(new WeaponAbility.StunAbility(10))
|
||||
.addHitAbility(new WeaponAbility.PhosphorusAbility(60))
|
||||
.addHitAbility(new WeaponAbility.BeheaderAbility()).setUnlocalizedName("mese_pickaxe").setTextureName(RefStrings.MODID + ":mese_pickaxe");
|
||||
.addHitAbility(new WeaponAbility.BeheaderAbility())
|
||||
.setDepthRockBreaker().setUnlocalizedName("mese_pickaxe").setTextureName(RefStrings.MODID + ":mese_pickaxe");
|
||||
|
||||
ToolMaterial matMeteorite = EnumHelper.addToolMaterial("HBM_METEORITE", 4, 0, 50F, 0.0F, 200).setRepairItem(new ItemStack(ModItems.plate_paa));
|
||||
meteorite_sword = new ItemSwordMeteorite(10F, 0, matMeteorite).setUnlocalizedName("meteorite_sword").setTextureName(RefStrings.MODID + ":meteorite_sword");
|
||||
@ -5290,6 +5307,7 @@ public class ModItems {
|
||||
GameRegistry.registerItem(ingot_euphemium, ingot_euphemium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(ingot_dineutronium, ingot_dineutronium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(ingot_electronium, ingot_electronium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(ingot_smore, ingot_smore.getUnlocalizedName());
|
||||
|
||||
//Meteorite Ingots
|
||||
GameRegistry.registerItem(ingot_steel_dusted, ingot_steel_dusted.getUnlocalizedName());
|
||||
@ -6991,6 +7009,7 @@ public class ModItems {
|
||||
GameRegistry.registerItem(drax, drax.getUnlocalizedName());
|
||||
GameRegistry.registerItem(drax_mk2, drax_mk2.getUnlocalizedName());
|
||||
GameRegistry.registerItem(drax_mk3, drax_mk3.getUnlocalizedName());
|
||||
GameRegistry.registerItem(bismuth_pickaxe, bismuth_pickaxe.getUnlocalizedName());
|
||||
GameRegistry.registerItem(chlorophyte_pickaxe, chlorophyte_pickaxe.getUnlocalizedName());
|
||||
GameRegistry.registerItem(mese_pickaxe, mese_pickaxe.getUnlocalizedName());
|
||||
GameRegistry.registerItem(matchstick, matchstick.getUnlocalizedName());
|
||||
|
||||
44
src/main/java/com/hbm/items/food/ItemMarshmallow.java
Normal file
@ -0,0 +1,44 @@
|
||||
package com.hbm.items.food;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class ItemMarshmallow extends Item {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconRoasted;
|
||||
|
||||
public ItemMarshmallow() {
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||
list.add(new ItemStack(item, 1, 0));
|
||||
list.add(new ItemStack(item, 1, 1));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister p_94581_1_) {
|
||||
super.registerIcons(p_94581_1_);
|
||||
this.iconRoasted = p_94581_1_.registerIcon(this.getIconString() + "_roasted");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
|
||||
if(damage == 1)
|
||||
return this.iconRoasted;
|
||||
|
||||
return super.getIconFromDamage(damage);
|
||||
}
|
||||
}
|
||||
@ -12,6 +12,7 @@ import com.hbm.handler.ToolAbility;
|
||||
import com.hbm.handler.ToolAbility.*;
|
||||
import com.hbm.handler.WeaponAbility;
|
||||
|
||||
import api.hbm.item.IDepthRockTool;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
@ -37,7 +38,7 @@ import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
import net.minecraftforge.event.world.BlockEvent;
|
||||
|
||||
public class ItemToolAbility extends ItemTool implements IItemAbility {
|
||||
public class ItemToolAbility extends ItemTool implements IItemAbility, IDepthRockTool {
|
||||
|
||||
private EnumToolType toolType;
|
||||
private EnumRarity rarity = EnumRarity.common;
|
||||
@ -243,42 +244,47 @@ public class ItemToolAbility extends ItemTool implements IItemAbility {
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean hasEffect(ItemStack stack) {
|
||||
|
||||
return getCurrentAbility(stack) != null ? true : super.hasEffect(stack);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
|
||||
|
||||
if(this.breakAbility.size() > 1) {
|
||||
list.add("Abilities: ");
|
||||
|
||||
for(ToolAbility ability : this.breakAbility) {
|
||||
|
||||
if(ability != null) {
|
||||
|
||||
if(getCurrentAbility(stack) == ability)
|
||||
list.add(" >" + EnumChatFormatting.GOLD + ability.getFullName());
|
||||
else
|
||||
list.add(" " + EnumChatFormatting.GOLD + ability.getFullName());
|
||||
}
|
||||
}
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean hasEffect(ItemStack stack) {
|
||||
|
||||
list.add("Right click to cycle through abilities!");
|
||||
list.add("Sneak-click to turn abilitty off!");
|
||||
}
|
||||
|
||||
if(!this.hitAbility.isEmpty()) {
|
||||
|
||||
list.add("Weapon modifiers: ");
|
||||
|
||||
for(WeaponAbility ability : this.hitAbility) {
|
||||
return getCurrentAbility(stack) != null ? true : super.hasEffect(stack);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
|
||||
|
||||
if(this.breakAbility.size() > 1) {
|
||||
list.add("Abilities: ");
|
||||
|
||||
for(ToolAbility ability : this.breakAbility) {
|
||||
|
||||
if(ability != null) {
|
||||
|
||||
if(getCurrentAbility(stack) == ability)
|
||||
list.add(" >" + EnumChatFormatting.GOLD + ability.getFullName());
|
||||
else
|
||||
list.add(" " + EnumChatFormatting.GOLD + ability.getFullName());
|
||||
}
|
||||
}
|
||||
|
||||
list.add("Right click to cycle through abilities!");
|
||||
list.add("Sneak-click to turn abilitty off!");
|
||||
}
|
||||
|
||||
if(!this.hitAbility.isEmpty()) {
|
||||
|
||||
list.add("Weapon modifiers: ");
|
||||
|
||||
for(WeaponAbility ability : this.hitAbility) {
|
||||
list.add(" " + EnumChatFormatting.RED + ability.getFullName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this.rockBreaker) {
|
||||
list.add("");
|
||||
list.add(EnumChatFormatting.RED + "Can break depth rock!");
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
|
||||
@ -335,15 +341,27 @@ public class ItemToolAbility extends ItemTool implements IItemAbility {
|
||||
return 0;
|
||||
}
|
||||
|
||||
private void setAbility(ItemStack stack, int ability) {
|
||||
private void setAbility(ItemStack stack, int ability) {
|
||||
|
||||
if(!stack.hasTagCompound())
|
||||
stack.stackTagCompound = new NBTTagCompound();
|
||||
|
||||
stack.stackTagCompound.setInteger("ability", ability);
|
||||
}
|
||||
|
||||
protected boolean canOperate(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
if(!stack.hasTagCompound())
|
||||
stack.stackTagCompound = new NBTTagCompound();
|
||||
|
||||
stack.stackTagCompound.setInteger("ability", ability);
|
||||
}
|
||||
|
||||
protected boolean canOperate(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public ItemToolAbility setDepthRockBreaker() {
|
||||
this.rockBreaker = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean rockBreaker = false;
|
||||
|
||||
@Override
|
||||
public boolean canBreakRock(World world, EntityPlayer player, ItemStack tool, Block block, int x, int y, int z) {
|
||||
return canOperate(tool) && this.rockBreaker;
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,11 +103,11 @@ public class HbmWorldGen implements IWorldGenerator {
|
||||
if(WorldConfig.gasbubbleSpawn > 0 && rand.nextInt(WorldConfig.gasbubbleSpawn) == 0)
|
||||
DungeonToolbox.generateOre(world, rand, i, j, 1, 32, 30, 10, ModBlocks.gas_flammable);
|
||||
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_iron, rand, 24);
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_titanium, rand, 32);
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_tungsten, rand, 32);
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_cinnebar, rand, 16);
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_zirconium, rand, 16);
|
||||
DepthDeposit.generateConditionOverworld(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_iron, rand, 24);
|
||||
DepthDeposit.generateConditionOverworld(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_titanium, rand, 32);
|
||||
DepthDeposit.generateConditionOverworld(world, i, 0, 3, j, 5, 0.6D, ModBlocks.cluster_depth_tungsten, rand, 32);
|
||||
DepthDeposit.generateConditionOverworld(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_cinnebar, rand, 16);
|
||||
DepthDeposit.generateConditionOverworld(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_zirconium, rand, 16);
|
||||
|
||||
Random colRand = new Random(world.getSeed() + 5);
|
||||
int colX = (int) (colRand.nextGaussian() * 1500);
|
||||
@ -606,6 +606,9 @@ public class HbmWorldGen implements IWorldGenerator {
|
||||
if(GeneralConfig.enablePlutoniumOre)
|
||||
DungeonToolbox.generateOre(world, rand, i, j, WorldConfig.netherPlutoniumSpawn, 4, 0, 127, ModBlocks.ore_nether_plutonium, Blocks.netherrack);
|
||||
|
||||
DepthDeposit.generateConditionNether(world, i, 0, 3, j, 7, 0.6D, ModBlocks.ore_depth_nether_neodymium, rand, 16);
|
||||
DepthDeposit.generateConditionNether(world, i, 125, 3, j, 7, 0.6D, ModBlocks.ore_depth_nether_neodymium, rand, 16);
|
||||
|
||||
for(int k = 0; k < 30; k++){
|
||||
int x = i + rand.nextInt(16);
|
||||
int z = j + rand.nextInt(16);
|
||||
|
||||
@ -918,6 +918,15 @@ public class ClientProxy extends ServerProxy {
|
||||
|
||||
if("cloud".equals(data.getString("mode"))) {
|
||||
fx = new net.minecraft.client.particle.EntityCloudFX(world, x, y, z, mX, mY, mZ);
|
||||
|
||||
if(data.hasKey("r")) {
|
||||
float rng = rand.nextFloat() * 0.1F;
|
||||
fx.setRBGColorF(data.getFloat("r") + rng, data.getFloat("g") + rng, data.getFloat("b") + rng);
|
||||
ReflectionHelper.setPrivateValue(net.minecraft.client.particle.EntityCloudFX.class, (EntityCloudFX)fx, 7.5F, "field_70569_a");
|
||||
fx.motionX = 0;
|
||||
fx.motionY = 0;
|
||||
fx.motionZ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if("reddust".equals(data.getString("mode"))) {
|
||||
|
||||
@ -491,6 +491,8 @@ public class MainRegistry {
|
||||
GameRegistry.registerTileEntity(TileEntityRBMKModerator.class, "tileentity_rbmk_moderator");
|
||||
GameRegistry.registerTileEntity(TileEntityRBMKOutgasser.class, "tileentity_rbmk_outgasser");
|
||||
GameRegistry.registerTileEntity(TileEntityRBMKConsole.class, "tileentity_rbmk_console");
|
||||
GameRegistry.registerTileEntity(TileEntityRBMKInlet.class, "tileentity_rbmk_inlet");
|
||||
GameRegistry.registerTileEntity(TileEntityRBMKOutlet.class, "tileentity_rbmk_outlet");
|
||||
|
||||
EntityRegistry.registerModEntity(EntityRocket.class, "entity_rocket", 0, this, 250, 1, true);
|
||||
EntityRegistry.registerModEntity(EntityNukeExplosion.class, "entity_nuke_explosion", 1, this, 250, 1, true);
|
||||
|
||||
@ -318,7 +318,7 @@ public class ModEventHandlerClient {
|
||||
}
|
||||
}
|
||||
|
||||
if(player.getCurrentArmor(2) == null && (player.getUniqueID().toString().equals(Library.SolsticeUnlimitd) || player.getDisplayName().equals("SolsticeUnlimitd")))
|
||||
if(player.getCurrentArmor(2) == null && !player.isPotionActive(Potion.invisibility) && (player.getUniqueID().toString().equals(Library.SolsticeUnlimitd) || player.getDisplayName().equals("SolsticeUnlimitd")))
|
||||
RenderAccessoryUtility.renderSol(event);
|
||||
}
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ package com.hbm.tileentity.machine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.entity.effect.EntityCloudFleijaRainbow;
|
||||
import com.hbm.entity.logic.EntityNukeExplosionMK4;
|
||||
@ -35,7 +36,6 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import scala.util.Random;
|
||||
|
||||
public class TileEntityAMSBase extends TileEntity implements ISidedInventory, ISource, IFluidContainer, IFluidAcceptor {
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ package com.hbm.tileentity.machine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.explosion.ExplosionLarge;
|
||||
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||
@ -25,7 +26,6 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import scala.util.Random;
|
||||
|
||||
public class TileEntityAMSEmitter extends TileEntity implements ISidedInventory, IConsumer, IFluidContainer, IFluidAcceptor {
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ package com.hbm.tileentity.machine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.entity.particle.EntityGasFlameFX;
|
||||
import com.hbm.explosion.ExplosionLarge;
|
||||
@ -26,7 +27,6 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import scala.util.Random;
|
||||
|
||||
public class TileEntityAMSLimiter extends TileEntity implements ISidedInventory, IConsumer, IFluidContainer, IFluidAcceptor {
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.HashBiMap;
|
||||
@ -24,7 +25,6 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.tileentity.TileEntityFurnace;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import scala.actors.threadpool.Arrays;
|
||||
|
||||
public class TileEntityMachineIGenerator extends TileEntityMachineBase implements ISource, IFluidAcceptor {
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@ public class RBMKDials {
|
||||
public static final String KEY_REASIM_RANGE = "dialReasimRange";
|
||||
public static final String KEY_REASIM_COUNT = "dialReasimCount";
|
||||
public static final String KEY_REASIM_MOD = "dialReasimOutputMod";
|
||||
public static final String KEY_REASIM_BOILERS = "dialReasimBoilers";
|
||||
|
||||
public static void createDials(World world) {
|
||||
GameRules rules = world.getGameRules();
|
||||
@ -43,6 +44,7 @@ public class RBMKDials {
|
||||
rules.setOrCreateGameRule(KEY_REASIM_RANGE, "10");
|
||||
rules.setOrCreateGameRule(KEY_REASIM_COUNT, "6");
|
||||
rules.setOrCreateGameRule(KEY_REASIM_MOD, "1.0");
|
||||
rules.setOrCreateGameRule(KEY_REASIM_BOILERS, "false");
|
||||
}
|
||||
}
|
||||
|
||||
@ -181,6 +183,15 @@ public class RBMKDials {
|
||||
return Math.max(shittyWorkaroundParseDouble(world.getGameRules().getGameRuleStringValue(KEY_REASIM_MOD), 1.0D), 0.0D);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not all components should act like boilers with dedicated in/outlet blocks
|
||||
* @param world
|
||||
* @return
|
||||
*/
|
||||
public static boolean getReasimBoilers(World world) {
|
||||
return world.getGameRules().getGameRuleBooleanValue(KEY_REASIM_BOILERS);
|
||||
}
|
||||
|
||||
//why make the double representation accessible in a game rule when you can just force me to add a second pointless parsing operation?
|
||||
public static double shittyWorkaroundParseDouble(String s, double def) {
|
||||
|
||||
|
||||
@ -0,0 +1,49 @@
|
||||
package com.hbm.tileentity.machine.rbmk;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||
import com.hbm.interfaces.IFluidAcceptor;
|
||||
import com.hbm.inventory.FluidTank;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityRBMKInlet extends TileEntity implements IFluidAcceptor {
|
||||
|
||||
@Override
|
||||
public void setFillstate(int fill, int index) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFluidFill(int fill, FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setType(FluidType type, int index) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FluidTank> getTanks() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFluidFill(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxFluidFill(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
package com.hbm.tileentity.machine.rbmk;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||
import com.hbm.interfaces.IFluidAcceptor;
|
||||
import com.hbm.interfaces.IFluidSource;
|
||||
import com.hbm.inventory.FluidTank;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityRBMKOutlet extends TileEntity implements IFluidSource {
|
||||
|
||||
@Override
|
||||
public void setFillstate(int fill, int index) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFluidFill(int fill, FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setType(FluidType type, int index) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FluidTank> getTanks() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFluidFill(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillFluidInit(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillFluid(int x, int y, int z, boolean newTact, FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getTact() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<IFluidAcceptor> getFluidList(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearFluidList(FluidType type) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -11,31 +11,43 @@ import net.minecraft.world.World;
|
||||
|
||||
public class DepthDeposit {
|
||||
|
||||
public static void generateCondition(World world, int x, int yMin, int yDev, int z, int size, double fill, Block block, Random rand, int chance) {
|
||||
public static void generateConditionOverworld(World world, int x, int yMin, int yDev, int z, int size, double fill, Block block, Random rand, int chance) {
|
||||
|
||||
if(rand.nextInt(chance) == 0)
|
||||
generate(world, x + rand.nextInt(16), yMin + rand.nextInt(yDev), z + rand.nextInt(16), size, fill, block, rand);
|
||||
generate(world, x + rand.nextInt(16), yMin + rand.nextInt(yDev), z + rand.nextInt(16), size, fill, block, rand, Blocks.stone, ModBlocks.stone_depth);
|
||||
}
|
||||
|
||||
public static void generate(World world, int x, int y, int z, int size, double fill, Block block, Random rand) {
|
||||
public static void generateConditionNether(World world, int x, int yMin, int yDev, int z, int size, double fill, Block block, Random rand, int chance) {
|
||||
|
||||
if(rand.nextInt(chance) == 0)
|
||||
generate(world, x + rand.nextInt(16), yMin + rand.nextInt(yDev), z + rand.nextInt(16), size, fill, block, rand, Blocks.netherrack, ModBlocks.stone_depth_nether);
|
||||
}
|
||||
|
||||
public static void generateCondition(World world, int x, int yMin, int yDev, int z, int size, double fill, Block block, Random rand, int chance, Block genTarget, Block filler) {
|
||||
|
||||
if(rand.nextInt(chance) == 0)
|
||||
generate(world, x + rand.nextInt(16), yMin + rand.nextInt(yDev), z + rand.nextInt(16), size, fill, block, rand, genTarget, filler);
|
||||
}
|
||||
|
||||
public static void generate(World world, int x, int y, int z, int size, double fill, Block block, Random rand, Block genTarget, Block filler) {
|
||||
|
||||
for(int i = x - size; i <= x + size; i++) {
|
||||
for(int j = y - size; j <= y + size; j++) {
|
||||
for(int k = z - size; k <= z + size; k++) {
|
||||
|
||||
if(j < 1)
|
||||
if(j < 1 || j > 126)
|
||||
continue;
|
||||
|
||||
double len = Vec3.createVectorHelper(x - i, y - j, z - k).lengthVector();
|
||||
Block target = world.getBlock(i, j, k);
|
||||
|
||||
if(target.isReplaceableOreGen(world, i, j, k, Blocks.stone) || target.isReplaceableOreGen(world, i, j, k, Blocks.bedrock)) { //yes you've heard right, bedrock
|
||||
if(target.isReplaceableOreGen(world, i, j, k, genTarget) || target.isReplaceableOreGen(world, i, j, k, Blocks.bedrock)) { //yes you've heard right, bedrock
|
||||
|
||||
if(len + rand.nextInt(2) < size * fill) {
|
||||
world.setBlock(i, j, k, block);
|
||||
|
||||
} else if(len + rand.nextInt(2) <= size) {
|
||||
world.setBlock(i, j, k, ModBlocks.stone_depth);
|
||||
world.setBlock(i, j, k, filler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -748,6 +748,7 @@ item.billet_uranium_fuel.name=Urankernbrennstoffbillet
|
||||
item.billet_yharonite.name=Yharonitbillet
|
||||
item.biomass.name=Biomasse
|
||||
item.biomass_compressed.name=Verdichtete Biomasse
|
||||
item.bismuth_pickaxe.name=Bismutspitzhacke
|
||||
item.bismuth_tool.name=Magnetischer Extraktor
|
||||
item.bj_boots.name=Lunare Beschlagene Stiefel
|
||||
item.bj_helmet.name=Augenklappe mit Infrarot-Sensor
|
||||
@ -1455,6 +1456,7 @@ item.ingot_schrabidium.name=Schrabidiumbarren
|
||||
item.ingot_schrabidium_fuel.name=Schrabidiumkernbrennstoffbarren
|
||||
item.ingot_schraranium.name=Schraraniumbarren
|
||||
item.ingot_semtex.name=Semtextafel
|
||||
item.ingot_smore.name=S'morebarren
|
||||
item.ingot_solinium.name=Soliniumbarren
|
||||
item.ingot_starmetal.name=§9Sternenmetallbarren§r
|
||||
item.ingot_steel.name=Stahlbarren
|
||||
@ -2626,6 +2628,7 @@ tile.block_schrabidium_fuel.name=Schrabidiumkernbrennstoffblock
|
||||
tile.block_schraranium.name=Schraraniumblock
|
||||
tile.block_scrap.name=Schrottblock
|
||||
tile.block_semtex.name=Semtexblock
|
||||
tile.block_smore.name=S'moreblock
|
||||
tile.block_solinium.name=Soliniumblock
|
||||
tile.block_starmetal.name=§9Sternenmetallblock§r
|
||||
tile.block_steel.name=Stahlblock
|
||||
@ -2743,6 +2746,8 @@ tile.deco_steel.name=Stahl-Dekoblock
|
||||
tile.deco_titanium.name=Titan-Dekoblock
|
||||
tile.deco_tungsten.name=Wolfram-Dekoblock
|
||||
tile.decon.name=Spieler-Dekontaminierer
|
||||
tile.depth_brick.name=Tiefenziegel
|
||||
tile.depth_tiles.name=Tiefenfliesen
|
||||
tile.det_charge.name=Sprengladung
|
||||
tile.det_cord.name=Det Cord
|
||||
tile.det_miner.name=Bergbau-Sprengladung
|
||||
@ -2809,6 +2814,9 @@ tile.glass_lead.name=Bleiglas
|
||||
tile.glass_polonium.name=Poloniumglas
|
||||
tile.glass_trinitite.name=Trinity-Glas
|
||||
tile.glass_uranium.name=Uranglas
|
||||
tile.gneiss_brick.name=Schieferziegel
|
||||
tile.gneiss_chiseled.name=Gemeißelter Schiefer
|
||||
tile.gneiss_tile.name=Schieferfliese
|
||||
tile.gravel_diamond.name=Diamantkies
|
||||
tile.gravel_obsidian.name=Gebrochener Obsidian
|
||||
tile.hadron_access.name=Teilchenbeschleuniger-Zugriffskonsole
|
||||
@ -2994,6 +3002,7 @@ tile.ore_coltan.name=Coltanerz
|
||||
tile.ore_copper.name=Kupfererz
|
||||
tile.ore_daffergon.name=Dellit
|
||||
tile.ore_depth_cinnebar.name=Tiefen-Zinnobererz
|
||||
tile.ore_depth_nether_neodymium.name=Nether-Tiefen-Neodymerz
|
||||
tile.ore_depth_zirconium.name=Tiefen-Zirkonerz
|
||||
tile.ore_fluorite.name=Fluoriterz
|
||||
tile.ore_gneiss_asbestos.name=Schiefer-Asbesterz
|
||||
@ -3132,6 +3141,7 @@ tile.steel_roof.name=Flaches Stachldach
|
||||
tile.steel_scaffold.name=Stahlgerüst
|
||||
tile.steel_wall.name=Stahlwand
|
||||
tile.stone_depth.name=Tiefenfels
|
||||
tile.stone_depth_nether.name=Nether-Tiefenfels
|
||||
tile.stone_gneiss.name=Graphitschiefer
|
||||
tile.struct_iter_core.name=Fusionsreaktor-Kernkomponente
|
||||
tile.struct_launcher.name=Startrampe-Komponentenblock
|
||||
|
||||
@ -816,6 +816,7 @@ item.billet_uranium_fuel.name=Uranium Fuel Billet
|
||||
item.billet_yharonite.name=Yharonite Billet
|
||||
item.biomass.name=Biomass
|
||||
item.biomass_compressed.name=Compressed Biomass
|
||||
item.bismuth_pickaxe.name=Bismuth Pickaxe
|
||||
item.bismuth_tool.name=Magnetic Extractor
|
||||
item.bj_boots.name=Lunar Studded Boots
|
||||
item.bj_helmet.name=Eyepatch with Thermal Sensor
|
||||
@ -1523,6 +1524,7 @@ item.ingot_schrabidium.name=Schrabidium Ingot
|
||||
item.ingot_schrabidium_fuel.name=Ingot of Schrabidium Fuel
|
||||
item.ingot_schraranium.name=Schraranium Ingot
|
||||
item.ingot_semtex.name=Bar of Semtex
|
||||
item.ingot_smore.name=S'more Ingot
|
||||
item.ingot_solinium.name=Solinium Ingot
|
||||
item.ingot_starmetal.name=§9Starmetal Ingot§r
|
||||
item.ingot_steel.name=Steel Ingot
|
||||
@ -2694,6 +2696,7 @@ tile.block_schrabidium_fuel.name=Block of Schrabidium Fuel
|
||||
tile.block_schraranium.name=Block of Schraranium
|
||||
tile.block_scrap.name=Block of Scrap
|
||||
tile.block_semtex.name=Block of Semtex
|
||||
tile.block_smore.name=Block of S'more
|
||||
tile.block_solinium.name=Block of Solinium
|
||||
tile.block_starmetal.name=§9Block of Starmetal§r
|
||||
tile.block_steel.name=Block of Steel
|
||||
@ -2827,6 +2830,8 @@ tile.deco_steel.name=Steel Deco Block
|
||||
tile.deco_titanium.name=Titanium Deco Block
|
||||
tile.deco_tungsten.name=Tungsten Deco Block
|
||||
tile.decon.name=Player Decontaminator
|
||||
tile.depth_brick.name=Depth Brick
|
||||
tile.depth_tiles.name=Depth Tiles
|
||||
tile.det_charge.name=Explosive Charge
|
||||
tile.det_cord.name=Det Cord
|
||||
tile.det_miner.name=Mining Charge
|
||||
@ -2893,6 +2898,9 @@ tile.glass_lead.name=Lead Glass
|
||||
tile.glass_polonium.name=Polonium Glass
|
||||
tile.glass_trinitite.name=Trinity Glass
|
||||
tile.glass_uranium.name=Uranium Glass
|
||||
tile.gneiss_brick.name=Schist Brick
|
||||
tile.gneiss_chiseled.name=Chiseled Schist
|
||||
tile.gneiss_tile.name=Schist Tile
|
||||
tile.gravel_diamond.name=Diamond Gravel
|
||||
tile.gravel_obsidian.name=Crushed Obsidian
|
||||
tile.hadron_access.name=Particle Accelerator Access Terminal
|
||||
@ -3078,6 +3086,7 @@ tile.ore_coltan.name=Coltan Ore
|
||||
tile.ore_copper.name=Copper Ore
|
||||
tile.ore_daffergon.name=Dellite
|
||||
tile.ore_depth_cinnebar.name=Depth Cinnabar Ore
|
||||
tile.ore_depth_nether_neodymium.name=Nether Depth Neodymium Ore
|
||||
tile.ore_depth_zirconium.name=Depth Zirconium Ore
|
||||
tile.ore_fluorite.name=Fluorite Ore
|
||||
tile.ore_gneiss_asbestos.name=Schist Asbestos Ore
|
||||
@ -3216,6 +3225,7 @@ tile.steel_roof.name=Flat Steel Roof
|
||||
tile.steel_scaffold.name=Steel Scaffold
|
||||
tile.steel_wall.name=Steel Wall
|
||||
tile.stone_depth.name=Depth Rock
|
||||
tile.stone_depth_nether.name=Nether Depth Rock
|
||||
tile.stone_gneiss.name=Graphitic Schist
|
||||
tile.struct_iter_core.name=Fusion Reactor Core Component
|
||||
tile.struct_launcher.name=Launch Pad Component Block
|
||||
|
||||
|
After Width: | Height: | Size: 219 B |
|
After Width: | Height: | Size: 205 B |
BIN
src/main/resources/assets/hbm/textures/blocks/depth_brick.png
Normal file
|
After Width: | Height: | Size: 718 B |
BIN
src/main/resources/assets/hbm/textures/blocks/depth_tiles.png
Normal file
|
After Width: | Height: | Size: 735 B |
BIN
src/main/resources/assets/hbm/textures/blocks/gneiss_brick.png
Normal file
|
After Width: | Height: | Size: 743 B |
|
After Width: | Height: | Size: 690 B |
BIN
src/main/resources/assets/hbm/textures/blocks/gneiss_tile.png
Normal file
|
After Width: | Height: | Size: 762 B |
|
After Width: | Height: | Size: 915 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 628 B |
BIN
src/main/resources/assets/hbm/textures/items/bismuth_pickaxe.png
Normal file
|
After Width: | Height: | Size: 389 B |
|
After Width: | Height: | Size: 300 B |