2013-07-26 21:18:53 -07:00
|
|
|
package tconstruct.common;
|
|
|
|
|
|
2014-02-05 10:28:54 -05:00
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
2014-02-01 06:00:54 -05:00
|
|
|
import mantle.blocks.BlockUtils;
|
2013-12-19 10:05:01 -05:00
|
|
|
import mantle.items.abstracts.CraftingItem;
|
2014-02-05 10:28:54 -05:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
import net.minecraft.block.material.MapColor;
|
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.block.material.MaterialLiquid;
|
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
2014-01-01 08:47:10 -05:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
|
import net.minecraft.init.Items;
|
2013-11-23 19:07:27 -08:00
|
|
|
import net.minecraft.item.Item;
|
2013-11-17 19:59:56 +11:00
|
|
|
import net.minecraft.item.ItemStack;
|
2013-08-27 01:09:03 +10:00
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
|
import net.minecraft.potion.Potion;
|
2013-11-17 19:59:56 +11:00
|
|
|
import net.minecraft.stats.Achievement;
|
2013-08-27 01:09:03 +10:00
|
|
|
import net.minecraft.util.WeightedRandomChestContent;
|
2014-02-05 10:28:54 -05:00
|
|
|
import net.minecraftforge.common.ChestGenHooks;
|
2014-02-02 11:35:00 -05:00
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
2014-02-05 10:28:54 -05:00
|
|
|
import net.minecraftforge.fluids.Fluid;
|
|
|
|
|
import net.minecraftforge.fluids.FluidContainerRegistry;
|
|
|
|
|
import net.minecraftforge.fluids.FluidContainerRegistry.FluidContainerData;
|
|
|
|
|
import net.minecraftforge.fluids.FluidRegistry;
|
|
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
2013-08-05 13:36:19 -07:00
|
|
|
import tconstruct.TConstruct;
|
2013-11-17 19:59:56 +11:00
|
|
|
import tconstruct.achievements.TAchievements;
|
2014-02-05 10:28:54 -05:00
|
|
|
import tconstruct.blocks.BlockLandmine;
|
|
|
|
|
import tconstruct.blocks.BloodBlock;
|
|
|
|
|
import tconstruct.blocks.CastingChannelBlock;
|
|
|
|
|
import tconstruct.blocks.ConveyorBase;
|
|
|
|
|
import tconstruct.blocks.CraftingSlab;
|
|
|
|
|
import tconstruct.blocks.CraftingStationBlock;
|
|
|
|
|
import tconstruct.blocks.DryingRack;
|
|
|
|
|
import tconstruct.blocks.EquipBlock;
|
|
|
|
|
import tconstruct.blocks.FurnaceSlab;
|
|
|
|
|
import tconstruct.blocks.GlassBlockConnected;
|
|
|
|
|
import tconstruct.blocks.GlassBlockConnectedMeta;
|
|
|
|
|
import tconstruct.blocks.GlassPaneConnected;
|
|
|
|
|
import tconstruct.blocks.GlassPaneStained;
|
|
|
|
|
import tconstruct.blocks.GlueBlock;
|
|
|
|
|
import tconstruct.blocks.GlueFluid;
|
|
|
|
|
import tconstruct.blocks.GravelOre;
|
|
|
|
|
import tconstruct.blocks.LavaTankBlock;
|
|
|
|
|
import tconstruct.blocks.MeatBlock;
|
|
|
|
|
import tconstruct.blocks.MetalOre;
|
|
|
|
|
import tconstruct.blocks.MultiBrick;
|
|
|
|
|
import tconstruct.blocks.MultiBrickFancy;
|
|
|
|
|
import tconstruct.blocks.OreberryBush;
|
|
|
|
|
import tconstruct.blocks.OreberryBushEssence;
|
|
|
|
|
import tconstruct.blocks.SearedBlock;
|
|
|
|
|
import tconstruct.blocks.SearedSlab;
|
|
|
|
|
import tconstruct.blocks.SlabBase;
|
|
|
|
|
import tconstruct.blocks.SlimeExplosive;
|
|
|
|
|
import tconstruct.blocks.SlimePad;
|
|
|
|
|
import tconstruct.blocks.SmelteryBlock;
|
|
|
|
|
import tconstruct.blocks.SoilBlock;
|
|
|
|
|
import tconstruct.blocks.SpeedBlock;
|
|
|
|
|
import tconstruct.blocks.SpeedSlab;
|
|
|
|
|
import tconstruct.blocks.StoneLadder;
|
|
|
|
|
import tconstruct.blocks.StoneTorch;
|
|
|
|
|
import tconstruct.blocks.TConstructFluid;
|
|
|
|
|
import tconstruct.blocks.TMetalBlock;
|
|
|
|
|
import tconstruct.blocks.TankAirBlock;
|
|
|
|
|
import tconstruct.blocks.ToolForgeBlock;
|
|
|
|
|
import tconstruct.blocks.ToolStationBlock;
|
|
|
|
|
import tconstruct.blocks.WoodRail;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeFluid;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeGel;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeGrass;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeLeaves;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeSapling;
|
|
|
|
|
import tconstruct.blocks.slime.SlimeTallGrass;
|
|
|
|
|
import tconstruct.blocks.traps.BarricadeBlock;
|
|
|
|
|
import tconstruct.blocks.traps.Punji;
|
2013-08-05 13:36:19 -07:00
|
|
|
import tconstruct.client.StepSoundSlime;
|
2014-02-05 10:28:54 -05:00
|
|
|
import tconstruct.entity.BlueSlime;
|
|
|
|
|
import tconstruct.entity.Crystal;
|
|
|
|
|
import tconstruct.entity.FancyEntityItem;
|
|
|
|
|
import tconstruct.entity.item.EntityLandmineFirework;
|
|
|
|
|
import tconstruct.entity.item.ExplosivePrimed;
|
|
|
|
|
import tconstruct.entity.projectile.ArrowEntity;
|
|
|
|
|
import tconstruct.entity.projectile.DaggerEntity;
|
|
|
|
|
import tconstruct.entity.projectile.LaunchedPotion;
|
|
|
|
|
import tconstruct.items.Bowstring;
|
|
|
|
|
import tconstruct.items.DiamondApple;
|
|
|
|
|
import tconstruct.items.FilledBucket;
|
|
|
|
|
import tconstruct.items.Fletching;
|
|
|
|
|
import tconstruct.items.GoldenHead;
|
|
|
|
|
import tconstruct.items.Jerky;
|
|
|
|
|
import tconstruct.items.Manual;
|
|
|
|
|
import tconstruct.items.MaterialItem;
|
|
|
|
|
import tconstruct.items.MetalPattern;
|
|
|
|
|
import tconstruct.items.OreBerries;
|
|
|
|
|
import tconstruct.items.Pattern;
|
|
|
|
|
import tconstruct.items.StrangeFood;
|
|
|
|
|
import tconstruct.items.TitleIcon;
|
|
|
|
|
import tconstruct.items.ToolPart;
|
|
|
|
|
import tconstruct.items.ToolPartHidden;
|
|
|
|
|
import tconstruct.items.ToolShard;
|
|
|
|
|
import tconstruct.items.armor.ArmorBasic;
|
|
|
|
|
import tconstruct.items.armor.ExoArmor;
|
|
|
|
|
import tconstruct.items.armor.HeartCanister;
|
|
|
|
|
import tconstruct.items.armor.Knapsack;
|
|
|
|
|
import tconstruct.items.tools.Arrow;
|
|
|
|
|
import tconstruct.items.tools.BattleSign;
|
|
|
|
|
import tconstruct.items.tools.Battleaxe;
|
|
|
|
|
import tconstruct.items.tools.Broadsword;
|
|
|
|
|
import tconstruct.items.tools.Chisel;
|
|
|
|
|
import tconstruct.items.tools.Cleaver;
|
|
|
|
|
import tconstruct.items.tools.Cutlass;
|
|
|
|
|
import tconstruct.items.tools.Dagger;
|
|
|
|
|
import tconstruct.items.tools.Excavator;
|
|
|
|
|
import tconstruct.items.tools.FryingPan;
|
|
|
|
|
import tconstruct.items.tools.Hammer;
|
|
|
|
|
import tconstruct.items.tools.Hatchet;
|
|
|
|
|
import tconstruct.items.tools.Longsword;
|
|
|
|
|
import tconstruct.items.tools.LumberAxe;
|
|
|
|
|
import tconstruct.items.tools.Mattock;
|
|
|
|
|
import tconstruct.items.tools.Pickaxe;
|
|
|
|
|
import tconstruct.items.tools.PotionLauncher;
|
|
|
|
|
import tconstruct.items.tools.Rapier;
|
|
|
|
|
import tconstruct.items.tools.Scythe;
|
|
|
|
|
import tconstruct.items.tools.Shortbow;
|
|
|
|
|
import tconstruct.items.tools.Shovel;
|
2013-08-05 13:36:19 -07:00
|
|
|
import tconstruct.library.TConstructRegistry;
|
2014-02-05 10:28:54 -05:00
|
|
|
import tconstruct.library.armor.EnumArmorPart;
|
|
|
|
|
import tconstruct.library.crafting.LiquidCasting;
|
|
|
|
|
import tconstruct.library.crafting.PatternBuilder;
|
2013-08-05 13:36:19 -07:00
|
|
|
import tconstruct.library.util.IPattern;
|
2014-02-05 10:28:54 -05:00
|
|
|
import tconstruct.util.config.PHConstruct;
|
|
|
|
|
import cpw.mods.fml.common.IFuelHandler;
|
|
|
|
|
import cpw.mods.fml.common.Loader;
|
|
|
|
|
import cpw.mods.fml.common.registry.EntityRegistry;
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
public class TContent implements IFuelHandler
|
|
|
|
|
{
|
2013-10-08 21:08:46 +11:00
|
|
|
//Temporary items
|
2014-02-05 08:28:53 -05:00
|
|
|
//public static Item armorTest = new ArmorStandard(2445, 4, EnumArmorPart.HELMET).setCreativeTab(CreativeTabs.tabAllSearch);
|
2013-10-19 07:45:16 -07:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
public TContent()
|
|
|
|
|
{
|
|
|
|
|
registerItems();
|
2013-11-29 23:16:32 -05:00
|
|
|
TRecipes.registerItemRecipes();
|
2013-07-26 21:18:53 -07:00
|
|
|
registerBlocks();
|
2013-11-29 23:16:32 -05:00
|
|
|
TRecipes.registerBlockRecipes();
|
2013-07-26 21:18:53 -07:00
|
|
|
registerMaterials();
|
|
|
|
|
addCraftingRecipes();
|
|
|
|
|
setupToolTabs();
|
|
|
|
|
addLoot();
|
2013-11-19 20:57:52 -08:00
|
|
|
if (PHConstruct.achievementsEnabled)
|
|
|
|
|
{
|
|
|
|
|
addAchievements();
|
2013-11-17 19:59:56 +11:00
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
public void createEntities ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
EntityRegistry.registerModEntity(FancyEntityItem.class, "Fancy Item", 0, TConstruct.instance, 32, 5, true);
|
|
|
|
|
EntityRegistry.registerModEntity(DaggerEntity.class, "Dagger", 1, TConstruct.instance, 32, 5, true);
|
|
|
|
|
EntityRegistry.registerModEntity(Crystal.class, "Crystal", 2, TConstruct.instance, 32, 3, true);
|
|
|
|
|
EntityRegistry.registerModEntity(LaunchedPotion.class, "Launched Potion", 3, TConstruct.instance, 32, 3, true);
|
|
|
|
|
EntityRegistry.registerModEntity(ArrowEntity.class, "Arrow", 4, TConstruct.instance, 32, 5, true);
|
2013-10-28 23:12:41 +11:00
|
|
|
EntityRegistry.registerModEntity(EntityLandmineFirework.class, "LandmineFirework", 5, TConstruct.instance, 32, 5, true);
|
2013-11-02 22:24:47 -07:00
|
|
|
EntityRegistry.registerModEntity(ExplosivePrimed.class, "SlimeExplosive", 6, TConstruct.instance, 32, 5, true);
|
2013-07-26 21:18:53 -07:00
|
|
|
//EntityRegistry.registerModEntity(CartEntity.class, "Small Wagon", 1, TConstruct.instance, 32, 5, true);
|
|
|
|
|
|
|
|
|
|
EntityRegistry.registerModEntity(BlueSlime.class, "EdibleSlime", 12, TConstruct.instance, 64, 5, true);
|
|
|
|
|
//EntityRegistry.registerModEntity(MetalSlime.class, "MetalSlime", 13, TConstruct.instance, 64, 5, true);
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
void registerBlocks ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
//Tool Station
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.toolStationWood = new ToolStationBlock(Material.wood).setBlockName("ToolStation");
|
|
|
|
|
TRepo.toolForge = new ToolForgeBlock(Material.iron).setBlockName("ToolForge");
|
|
|
|
|
TRepo.craftingStationWood = new CraftingStationBlock(Material.wood).setBlockName("CraftingStation");
|
|
|
|
|
TRepo.craftingSlabWood = new CraftingSlab(Material.wood).setBlockName("CraftingSlab");
|
|
|
|
|
TRepo.furnaceSlab = new FurnaceSlab(Material.rock).setBlockName("FurnaceSlab");
|
2013-08-16 13:51:33 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.heldItemBlock = new EquipBlock(Material.wood).setBlockName("Frypan");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.craftedSoil = new SoilBlock().setLightOpacity(0).setBlockName("TConstruct.Soil");
|
|
|
|
|
TRepo.craftedSoil.stepSound = Block.soundTypeGravel;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.searedSlab = new SearedSlab().setBlockName("SearedSlab");
|
|
|
|
|
TRepo.searedSlab.stepSound = Block.soundTypeStone;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.speedSlab = new SpeedSlab().setBlockName("SpeedSlab");
|
|
|
|
|
TRepo.speedSlab.stepSound = Block.soundTypeStone;
|
2013-10-06 09:53:48 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.metalBlock = new TMetalBlock(Material.iron, 10.0F).setBlockName("tconstruct.metalblock");
|
|
|
|
|
TRepo.metalBlock.stepSound = Block.soundTypeMetal;
|
2013-08-16 09:30:56 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.meatBlock = new MeatBlock().setBlockName("tconstruct.meatblock");
|
|
|
|
|
TRepo.glueBlock = new GlueBlock().setBlockName("GlueBlock").setCreativeTab(TConstructRegistry.blockTab);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.woolSlab1 = new SlabBase(Material.cloth, Blocks.wool, 0, 8).setBlockName("cloth");
|
|
|
|
|
TRepo.woolSlab1.setStepSound(Block.soundTypeCloth).setCreativeTab(CreativeTabs.tabDecorations);
|
|
|
|
|
TRepo.woolSlab2 = new SlabBase(Material.cloth, Blocks.wool, 8, 8).setBlockName("cloth");
|
|
|
|
|
TRepo.woolSlab2.setStepSound(Block.soundTypeCloth).setCreativeTab(CreativeTabs.tabDecorations);
|
2013-08-07 19:06:26 -07:00
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
//Smeltery
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.smeltery = new SmelteryBlock().setBlockName("Smeltery");
|
|
|
|
|
TRepo.smelteryNether = new SmelteryBlock("nether").setBlockName("Smeltery");
|
|
|
|
|
TRepo.lavaTank = new LavaTankBlock().setBlockName("LavaTank");
|
|
|
|
|
TRepo.lavaTank.setStepSound(Block.soundTypeGlass);
|
|
|
|
|
TRepo.lavaTankNether = new LavaTankBlock("nether").setStepSound(Block.soundTypeGlass).setBlockName("LavaTank");
|
2013-08-07 19:06:26 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.searedBlock = new SearedBlock().setBlockName("SearedBlock");
|
|
|
|
|
TRepo.searedBlockNether = new SearedBlock("nether").setBlockName("SearedBlock");
|
2013-08-07 19:06:26 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.castingChannel = (new CastingChannelBlock()).setBlockName("CastingChannel");
|
2013-08-07 19:06:26 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.tankAir = new TankAirBlock(Material.leaves).setBlockUnbreakable().setBlockName("tconstruct.tank.air");
|
2013-11-04 00:33:39 +01:00
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
//Traps
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.landmine = new BlockLandmine().setHardness(0.5F).setResistance(0F).setStepSound(Block.soundTypeMetal).setCreativeTab(CreativeTabs.tabRedstone).setBlockName("landmine");
|
|
|
|
|
TRepo.punji = new Punji().setBlockName("trap.punji");
|
|
|
|
|
TRepo.barricadeOak = new BarricadeBlock(Blocks.log, 0).setBlockName("trap.barricade.oak");
|
|
|
|
|
TRepo.barricadeSpruce = new BarricadeBlock(Blocks.log, 1).setBlockName("trap.barricade.spruce");
|
|
|
|
|
TRepo.barricadeBirch = new BarricadeBlock(Blocks.log, 2).setBlockName("trap.barricade.birch");
|
|
|
|
|
TRepo.barricadeJungle = new BarricadeBlock(Blocks.log, 3).setBlockName("trap.barricade.jungle");
|
|
|
|
|
TRepo.slimeExplosive = new SlimeExplosive().setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("explosive.slime");
|
2013-08-07 19:06:26 -07:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.dryingRack = new DryingRack().setBlockName("Armor.DryingRack");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
//Liquids
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.liquidMetal = new MaterialLiquid(MapColor.tntColor);
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenIronFluid = new Fluid("iron.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenIronFluid))
|
|
|
|
|
TRepo.moltenIronFluid = FluidRegistry.getFluid("iron.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenIron = new TConstructFluid(TRepo.moltenIronFluid, Material.lava, "liquid_iron").setBlockName("fluid.molten.iron");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenIron, "fluid.molten.iron");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenIronFluid.setBlock(TRepo.moltenIron).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-01 08:47:10 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenIronFluid, 1000), new ItemStack(TRepo.buckets, 1, 0), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenGoldFluid = new Fluid("gold.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenGoldFluid))
|
|
|
|
|
TRepo.moltenGoldFluid = FluidRegistry.getFluid("gold.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenGold = new TConstructFluid(TRepo.moltenGoldFluid, Material.lava, "liquid_gold").setBlockName("fluid.molten.gold");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenGold, "fluid.molten.gold");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenGoldFluid.setBlock(TRepo.moltenGold).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-01 08:47:10 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenGoldFluid, 1000), new ItemStack(TRepo.buckets, 1, 1), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenCopperFluid = new Fluid("copper.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenCopperFluid))
|
|
|
|
|
TRepo.moltenCopperFluid = FluidRegistry.getFluid("copper.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenCopper = new TConstructFluid(TRepo.moltenCopperFluid, Material.lava, "liquid_copper").setBlockName("fluid.molten.copper");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenCopper, "fluid.molten.copper");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenCopperFluid.setBlock(TRepo.moltenCopper).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-01 08:47:10 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenCopperFluid, 1000), new ItemStack(TRepo.buckets, 1, 2), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenTinFluid = new Fluid("tin.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenTinFluid))
|
|
|
|
|
TRepo.moltenTinFluid = FluidRegistry.getFluid("tin.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenTin = new TConstructFluid(TRepo.moltenTinFluid, Material.lava, "liquid_tin").setBlockName("fluid.molten.tin");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenTin, "fluid.molten.tin");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenTinFluid.setBlock(TRepo.moltenTin).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenTinFluid, 1000), new ItemStack(TRepo.buckets, 1, 3), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenAluminumFluid = new Fluid("aluminum.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenAluminumFluid))
|
|
|
|
|
TRepo.moltenAluminumFluid = FluidRegistry.getFluid("aluminum.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenAluminum = new TConstructFluid(TRepo.moltenAluminumFluid, Material.lava, "liquid_aluminum").setBlockName("fluid.molten.aluminum");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenAluminum, "fluid.molten.aluminum");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenAluminumFluid.setBlock(TRepo.moltenAluminum).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenAluminumFluid, 1000), new ItemStack(TRepo.buckets, 1, 4), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenCobaltFluid = new Fluid("cobalt.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenCobaltFluid))
|
|
|
|
|
TRepo.moltenCobaltFluid = FluidRegistry.getFluid("cobalt.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenCobalt = new TConstructFluid(TRepo.moltenCobaltFluid, Material.lava, "liquid_cobalt").setBlockName("fluid.molten.cobalt");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenCobalt, "fluid.molten.cobalt");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenCobaltFluid.setBlock(TRepo.moltenCobalt).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenCobaltFluid, 1000), new ItemStack(TRepo.buckets, 1, 5), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenArditeFluid = new Fluid("ardite.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenArditeFluid))
|
|
|
|
|
TRepo.moltenArditeFluid = FluidRegistry.getFluid("ardite.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenArdite = new TConstructFluid(TRepo.moltenArditeFluid, Material.lava, "liquid_ardite").setBlockName("fluid.molten.ardite");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenArdite, "fluid.molten.ardite");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenArditeFluid.setBlock(TRepo.moltenArdite).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenArditeFluid, 1000), new ItemStack(TRepo.buckets, 1, 6), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenBronzeFluid = new Fluid("bronze.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenBronzeFluid))
|
|
|
|
|
TRepo.moltenBronzeFluid = FluidRegistry.getFluid("bronze.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenBronze = new TConstructFluid(TRepo.moltenBronzeFluid, Material.lava, "liquid_bronze").setBlockName("fluid.molten.bronze");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenBronze, "fluid.molten.bronze");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenBronzeFluid.setBlock(TRepo.moltenBronze).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenBronzeFluid, 1000), new ItemStack(TRepo.buckets, 1, 7), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenAlubrassFluid = new Fluid("aluminumbrass.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenAlubrassFluid))
|
|
|
|
|
TRepo.moltenAlubrassFluid = FluidRegistry.getFluid("aluminumbrass.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenAlubrass = new TConstructFluid(TRepo.moltenAlubrassFluid, Material.lava, "liquid_alubrass").setBlockName("fluid.molten.alubrass");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenAlubrass, "fluid.molten.alubrass");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenAlubrassFluid.setBlock(TRepo.moltenAlubrass).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenAlubrassFluid, 1000), new ItemStack(TRepo.buckets, 1, 8), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenManyullynFluid = new Fluid("manyullyn.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenManyullynFluid))
|
|
|
|
|
TRepo.moltenManyullynFluid = FluidRegistry.getFluid("manyullyn.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenManyullyn = new TConstructFluid(TRepo.moltenManyullynFluid, Material.lava, "liquid_manyullyn").setBlockName("fluid.molten.manyullyn");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenManyullyn, "fluid.molten.manyullyn");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenManyullynFluid.setBlock(TRepo.moltenManyullyn).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenManyullynFluid, 1000), new ItemStack(TRepo.buckets, 1, 9), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenAlumiteFluid = new Fluid("alumite.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenAlumiteFluid))
|
|
|
|
|
TRepo.moltenAlumiteFluid = FluidRegistry.getFluid("alumite.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenAlumite = new TConstructFluid(TRepo.moltenAlumiteFluid, Material.lava, "liquid_alumite").setBlockName("fluid.molten.alumite");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenAlumite, "fluid.molten.alumite");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenAlumiteFluid.setBlock(TRepo.moltenAlumite).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenAlumiteFluid, 1000), new ItemStack(TRepo.buckets, 1, 10), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenObsidianFluid = new Fluid("obsidian.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenObsidianFluid))
|
|
|
|
|
TRepo.moltenObsidianFluid = FluidRegistry.getFluid("obsidian.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenObsidian = new TConstructFluid(TRepo.moltenObsidianFluid, Material.lava, "liquid_obsidian").setBlockName("fluid.molten.obsidian");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenObsidian, "fluid.molten.obsidian");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenObsidianFluid.setBlock(TRepo.moltenObsidian).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenObsidianFluid, 1000), new ItemStack(TRepo.buckets, 1, 11), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenSteelFluid = new Fluid("steel.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenSteelFluid))
|
|
|
|
|
TRepo.moltenSteelFluid = FluidRegistry.getFluid("steel.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenSteel = new TConstructFluid(TRepo.moltenSteelFluid, Material.lava, "liquid_steel").setBlockName("fluid.molten.steel");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenSteel, "fluid.molten.steel");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenSteelFluid.setBlock(TRepo.moltenSteel).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenSteelFluid, 1000), new ItemStack(TRepo.buckets, 1, 12), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenGlassFluid = new Fluid("glass.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenGlassFluid))
|
|
|
|
|
TRepo.moltenGlassFluid = FluidRegistry.getFluid("glass.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenGlass = new TConstructFluid(TRepo.moltenGlassFluid, Material.lava, "liquid_glass", true).setBlockName("fluid.molten.glass");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenGlass, "fluid.molten.glass");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenGlassFluid.setBlock(TRepo.moltenGlass).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenGlassFluid, 1000), new ItemStack(TRepo.buckets, 1, 13), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenStoneFluid = new Fluid("stone.seared");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenStoneFluid))
|
|
|
|
|
TRepo.moltenStoneFluid = FluidRegistry.getFluid("stone.seared");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenStone = new TConstructFluid(TRepo.moltenStoneFluid, Material.lava, "liquid_stone").setBlockName("molten.stone");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenStone, "molten.stone");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenStoneFluid.setBlock(TRepo.moltenStone).setLuminosity(12).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenStoneFluid, 1000), new ItemStack(TRepo.buckets, 1, 14), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenEmeraldFluid = new Fluid("emerald.liquid");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenEmeraldFluid))
|
|
|
|
|
TRepo.moltenEmeraldFluid = FluidRegistry.getFluid("emerald.liquid");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenEmerald = new TConstructFluid(TRepo.moltenEmeraldFluid, Material.water, "liquid_villager").setBlockName("molten.emerald");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenEmerald, "molten.emerald");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenEmeraldFluid.setBlock(TRepo.moltenEmerald).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenEmeraldFluid, 1000), new ItemStack(TRepo.buckets, 1, 15), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.bloodFluid = new Fluid("blood");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.bloodFluid))
|
|
|
|
|
TRepo.bloodFluid = FluidRegistry.getFluid("blood");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.blood = new BloodBlock(TRepo.bloodFluid, Material.water, "liquid_cow").setBlockName("liquid.blood");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.blood, "liquid.blood");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.bloodFluid.setBlock(TRepo.blood).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.bloodFluid, 1000), new ItemStack(TRepo.buckets, 1, 16), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenNickelFluid = new Fluid("nickel.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenNickelFluid))
|
|
|
|
|
TRepo.moltenNickelFluid = FluidRegistry.getFluid("nickel.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenNickel = new TConstructFluid(TRepo.moltenNickelFluid, Material.lava, "liquid_ferrous").setBlockName("fluid.molten.nickel");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenNickel, "fluid.molten.nickel");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenNickelFluid.setBlock(TRepo.moltenNickel).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenNickelFluid, 1000), new ItemStack(TRepo.buckets, 1, 17), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenLeadFluid = new Fluid("lead.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenLeadFluid))
|
|
|
|
|
TRepo.moltenLeadFluid = FluidRegistry.getFluid("lead.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenLead = new TConstructFluid(TRepo.moltenLeadFluid, Material.lava, "liquid_lead").setBlockName("fluid.molten.lead");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenLead, "fluid.molten.lead");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenLeadFluid.setBlock(TRepo.moltenLead).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenLeadFluid, 1000), new ItemStack(TRepo.buckets, 1, 18), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenSilverFluid = new Fluid("silver.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenSilverFluid))
|
|
|
|
|
TRepo.moltenSilverFluid = FluidRegistry.getFluid("silver.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenSilver = new TConstructFluid(TRepo.moltenSilverFluid, Material.lava, "liquid_silver").setBlockName("fluid.molten.silver");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenSilver, "fluid.molten.silver");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenSilverFluid.setBlock(TRepo.moltenSilver).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenSilverFluid, 1000), new ItemStack(TRepo.buckets, 1, 19), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenShinyFluid = new Fluid("platinum.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenShinyFluid))
|
|
|
|
|
TRepo.moltenShinyFluid = FluidRegistry.getFluid("platinum.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenShiny = new TConstructFluid(TRepo.moltenShinyFluid, Material.lava, "liquid_shiny").setBlockName("fluid.molten.shiny");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenShiny, "fluid.molten.shiny");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenShinyFluid.setBlock(TRepo.moltenShiny).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenShinyFluid, 1000), new ItemStack(TRepo.buckets, 1, 20), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenInvarFluid = new Fluid("invar.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenInvarFluid))
|
|
|
|
|
TRepo.moltenInvarFluid = FluidRegistry.getFluid("invar.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenInvar = new TConstructFluid(TRepo.moltenInvarFluid, Material.lava, "liquid_invar").setBlockName("fluid.molten.invar");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenInvar, "fluid.molten.invar");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenInvarFluid.setBlock(TRepo.moltenInvar).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenInvarFluid, 1000), new ItemStack(TRepo.buckets, 1, 21), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenElectrumFluid = new Fluid("electrum.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenElectrumFluid))
|
|
|
|
|
TRepo.moltenElectrumFluid = FluidRegistry.getFluid("electrum.molten");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenElectrum = new TConstructFluid(TRepo.moltenElectrumFluid, Material.lava, "liquid_electrum").setBlockName("fluid.molten.electrum");
|
2013-12-04 15:37:40 +00:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenElectrum, "fluid.molten.electrum");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenElectrumFluid.setBlock(TRepo.moltenElectrum).setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenElectrumFluid, 1000), new ItemStack(TRepo.buckets, 1, 22), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.moltenEnderFluid = new Fluid("ender");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.moltenEnderFluid))
|
|
|
|
|
{
|
|
|
|
|
TRepo.moltenEnderFluid = FluidRegistry.getFluid("ender");
|
2014-01-10 21:14:54 -05:00
|
|
|
TRepo.moltenEnder = TRepo.moltenEnderFluid.getBlock();
|
2013-11-29 23:16:32 -05:00
|
|
|
if (TRepo.moltenEnder == null)
|
2013-11-08 01:00:37 -08:00
|
|
|
TConstruct.logger.info("Molten ender block missing!");
|
2013-11-08 00:49:44 -08:00
|
|
|
}
|
|
|
|
|
else
|
2013-10-30 13:22:00 -04:00
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.moltenEnder = new TConstructFluid(TRepo.moltenEnderFluid, Material.water, "liquid_ender").setBlockName("fluid.ender");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.moltenEnder, "fluid.ender");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.moltenEnderFluid.setBlock(TRepo.moltenEnder).setDensity(3000).setViscosity(6000);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.moltenEnderFluid, 1000), new ItemStack(TRepo.buckets, 1, 23), new ItemStack(Items.bucket)));
|
2013-10-30 13:22:00 -04:00
|
|
|
}
|
2013-07-18 12:58:08 -07:00
|
|
|
|
2013-08-12 05:58:15 -07:00
|
|
|
//Slime
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.slimeStep = new StepSoundSlime("mob.slime", 1.0f, 1.0f);
|
|
|
|
|
|
|
|
|
|
TRepo.blueSlimeFluid = new Fluid("slime.blue");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.blueSlimeFluid))
|
|
|
|
|
TRepo.blueSlimeFluid = FluidRegistry.getFluid("slime.blue");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.slimePool = new SlimeFluid(TRepo.blueSlimeFluid, Material.water).setCreativeTab(TConstructRegistry.blockTab).setStepSound(TRepo.slimeStep).setBlockName("liquid.slime");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.slimePool, "liquid.slime");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.blueSlimeFluid.setBlock(TRepo.slimePool);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.blueSlimeFluid, 1000), new ItemStack(TRepo.buckets, 1, 24), new ItemStack(Items.bucket)));
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-11-23 15:48:19 +00:00
|
|
|
//Glue
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.glueFluid = new Fluid("glue").setDensity(6000).setViscosity(6000).setTemperature(200);
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.glueFluid))
|
|
|
|
|
TRepo.glueFluid = FluidRegistry.getFluid("glue");
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.glueFluidBlock = new GlueFluid(TRepo.glueFluid, Material.water).setCreativeTab(TConstructRegistry.blockTab).setStepSound(TRepo.slimeStep).setBlockName("liquid.glue");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerBlock(TRepo.glueFluidBlock, "liquid.glue");
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.glueFluid.setBlock(TRepo.glueFluidBlock);
|
2014-01-09 04:08:38 -05:00
|
|
|
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(TRepo.glueFluid, 1000), new ItemStack(TRepo.buckets, 1, 26), new ItemStack(Items.bucket)));
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
TRepo.pigIronFluid = new Fluid("pigiron.molten");
|
|
|
|
|
if (!FluidRegistry.registerFluid(TRepo.pigIronFluid))
|
|
|
|
|
TRepo.pigIronFluid = FluidRegistry.getFluid("pigiron.molten");
|
2013-11-19 20:57:52 -08:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.pigIronFluid.setDensity(3000).setViscosity(6000).setTemperature(1300);
|
2013-12-19 10:05:01 -05:00
|
|
|
TRepo.fluids = new Fluid[] { TRepo.moltenIronFluid, TRepo.moltenGoldFluid, TRepo.moltenCopperFluid, TRepo.moltenTinFluid, TRepo.moltenAluminumFluid, TRepo.moltenCobaltFluid,
|
|
|
|
|
TRepo.moltenArditeFluid, TRepo.moltenBronzeFluid, TRepo.moltenAlubrassFluid, TRepo.moltenManyullynFluid, TRepo.moltenAlumiteFluid, TRepo.moltenObsidianFluid, TRepo.moltenSteelFluid,
|
|
|
|
|
TRepo.moltenGlassFluid, TRepo.moltenStoneFluid, TRepo.moltenEmeraldFluid, TRepo.bloodFluid, TRepo.moltenNickelFluid, TRepo.moltenLeadFluid, TRepo.moltenSilverFluid,
|
|
|
|
|
TRepo.moltenShinyFluid, TRepo.moltenInvarFluid, TRepo.moltenElectrumFluid, TRepo.moltenEnderFluid, TRepo.blueSlimeFluid, TRepo.glueFluid, TRepo.pigIronFluid };
|
|
|
|
|
TRepo.fluidBlocks = new Block[] { TRepo.moltenIron, TRepo.moltenGold, TRepo.moltenCopper, TRepo.moltenTin, TRepo.moltenAluminum, TRepo.moltenCobalt, TRepo.moltenArdite, TRepo.moltenBronze,
|
|
|
|
|
TRepo.moltenAlubrass, TRepo.moltenManyullyn, TRepo.moltenAlumite, TRepo.moltenObsidian, TRepo.moltenSteel, TRepo.moltenGlass, TRepo.moltenStone, TRepo.moltenEmerald, TRepo.blood,
|
|
|
|
|
TRepo.moltenNickel, TRepo.moltenLead, TRepo.moltenSilver, TRepo.moltenShiny, TRepo.moltenInvar, TRepo.moltenElectrum, TRepo.moltenEnder, TRepo.slimePool, TRepo.glueFluidBlock };
|
2013-11-29 23:16:32 -05:00
|
|
|
//Slime Islands
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.slimeGel = new SlimeGel().setStepSound(TRepo.slimeStep).setLightOpacity(0).setBlockName("slime.gel");
|
|
|
|
|
TRepo.slimeGrass = new SlimeGrass().setStepSound(Block.soundTypeGrass).setLightOpacity(0).setBlockName("slime.grass");
|
|
|
|
|
TRepo.slimeTallGrass = new SlimeTallGrass().setStepSound(Block.soundTypeGrass).setBlockName("slime.grass.tall");
|
|
|
|
|
TRepo.slimeLeaves = (SlimeLeaves) new SlimeLeaves().setStepSound(TRepo.slimeStep).setLightOpacity(0).setBlockName("slime.leaves");
|
|
|
|
|
TRepo.slimeSapling = (SlimeSapling) new SlimeSapling().setStepSound(TRepo.slimeStep).setBlockName("slime.sapling");
|
|
|
|
|
TRepo.slimeChannel = new ConveyorBase(Material.water, "greencurrent").setHardness(0.3f).setStepSound(TRepo.slimeStep).setBlockName("slime.channel");
|
|
|
|
|
TRepo.bloodChannel = new ConveyorBase(Material.water, "liquid_cow").setHardness(0.3f).setStepSound(TRepo.slimeStep).setBlockName("blood.channel");
|
|
|
|
|
TRepo.slimePad = new SlimePad(Material.cloth).setStepSound(TRepo.slimeStep).setHardness(0.3f).setBlockName("slime.pad");
|
2013-09-04 20:26:43 -07:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
//Decoration
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.stoneTorch = new StoneTorch().setBlockName("decoration.stonetorch");
|
|
|
|
|
TRepo.stoneLadder = new StoneLadder().setBlockName("decoration.stoneladder");
|
|
|
|
|
TRepo.multiBrick = new MultiBrick().setBlockName("Decoration.Brick");
|
|
|
|
|
TRepo.multiBrickFancy = new MultiBrickFancy().setBlockName("Decoration.BrickFancy");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
//Ores
|
|
|
|
|
String[] berryOres = new String[] { "berry_iron", "berry_gold", "berry_copper", "berry_tin", "berry_iron_ripe", "berry_gold_ripe", "berry_copper_ripe", "berry_tin_ripe" };
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.oreBerry = (OreberryBush) new OreberryBush(berryOres, 0, 4, new String[] { "oreIron", "oreGold", "oreCopper", "oreTin" }).setBlockName("ore.berries.one");
|
2013-07-26 21:18:53 -07:00
|
|
|
String[] berryOresTwo = new String[] { "berry_aluminum", "berry_essence", "", "", "berry_aluminum_ripe", "berry_essence_ripe", "", "" };
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.oreBerrySecond = (OreberryBush) new OreberryBushEssence(berryOresTwo, 4, 2, new String[] { "oreAluminum", "oreSilver" }).setBlockName("ore.berries.two");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
String[] oreTypes = new String[] { "nether_slag", "nether_cobalt", "nether_ardite", "ore_copper", "ore_tin", "ore_aluminum", "ore_slag" };
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.oreSlag = new MetalOre(Material.rock, 10.0F, oreTypes).setBlockName("tconstruct.stoneore");
|
2014-01-16 01:36:18 -05:00
|
|
|
TRepo.oreSlag.setHarvestLevel("pickaxe", 4, 1);
|
|
|
|
|
TRepo.oreSlag.setHarvestLevel("pickaxe", 4, 2);
|
|
|
|
|
TRepo.oreSlag.setHarvestLevel("pickaxe", 1, 3);
|
|
|
|
|
TRepo.oreSlag.setHarvestLevel("pickaxe", 1, 4);
|
|
|
|
|
TRepo.oreSlag.setHarvestLevel("pickaxe", 1, 5);
|
2013-11-29 23:16:32 -05:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.oreGravel = new GravelOre().setBlockName("GravelOre").setBlockName("tconstruct.gravelore");
|
2014-01-16 01:36:18 -05:00
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 1, 0);
|
|
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 2, 1);
|
|
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 1, 2);
|
|
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 1, 3);
|
|
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 1, 4);
|
|
|
|
|
TRepo.oreGravel.setHarvestLevel("shovel", 4, 5);
|
2013-11-29 23:16:32 -05:00
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.speedBlock = new SpeedBlock().setBlockName("SpeedBlock");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
//Glass
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.clearGlass = new GlassBlockConnected("clear", false).setBlockName("GlassBlock");
|
|
|
|
|
TRepo.clearGlass.stepSound = Block.soundTypeGlass;
|
2014-01-11 05:29:27 -05:00
|
|
|
TRepo.glassPane = new GlassPaneConnected("clear", false);
|
2014-01-30 20:34:22 -05:00
|
|
|
TRepo.stainedGlassClear = new GlassBlockConnectedMeta("stained", true, "white", "orange", "magenta", "light_blue", "yellow", "lime", "pink", "gray", "light_gray", "cyan", "purple", "blue",
|
2014-02-05 08:28:53 -05:00
|
|
|
"brown", "green", "red", "black").setBlockName("GlassBlock.StainedClear");
|
|
|
|
|
TRepo.stainedGlassClear.stepSound = Block.soundTypeGlass;
|
2014-01-29 00:58:13 -05:00
|
|
|
TRepo.stainedGlassClearPane = new GlassPaneStained();
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-10-24 18:59:04 +01:00
|
|
|
//Rail
|
2014-02-05 08:28:53 -05:00
|
|
|
TRepo.woodenRail = new WoodRail().setStepSound(Block.soundTypeWood).setCreativeTab(TConstructRegistry.blockTab).setBlockName("rail.wood");
|
2013-11-07 23:13:44 -08:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
void registerItems ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.titleIcon = new TitleIcon().setUnlocalizedName("tconstruct.titleicon");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.titleIcon, "titleIcon");
|
2013-07-26 21:18:53 -07:00
|
|
|
String[] blanks = new String[] { "blank_pattern", "blank_cast", "blank_cast" };
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.blankPattern = new CraftingItem(blanks, blanks, "materials/", "tinker", TConstructRegistry.materialTab).setUnlocalizedName("tconstruct.Pattern");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.blankPattern, "blankPattern");
|
|
|
|
|
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.materials = new MaterialItem().setUnlocalizedName("tconstruct.Materials");
|
|
|
|
|
TRepo.toolRod = new ToolPart("_rod", "ToolRod").setUnlocalizedName("tconstruct.ToolRod");
|
|
|
|
|
TRepo.toolShard = new ToolShard("_chunk").setUnlocalizedName("tconstruct.ToolShard");
|
|
|
|
|
TRepo.woodPattern = new Pattern("pattern_", "materials/").setUnlocalizedName("tconstruct.Pattern");
|
|
|
|
|
TRepo.metalPattern = new MetalPattern("cast_", "materials/").setUnlocalizedName("tconstruct.MetalPattern");
|
|
|
|
|
//armorPattern = new ArmorPattern(PHConstruct.armorPattern, "armorcast_", "materials/").setUnlocalizedName("tconstruct.ArmorPattern");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.materials, "materials");
|
|
|
|
|
GameRegistry.registerItem(TRepo.woodPattern, "woodPattern");
|
|
|
|
|
GameRegistry.registerItem(TRepo.metalPattern, "metalPattern");
|
|
|
|
|
//GameRegistry.registerItem(TRepo.armorPattern, "armorPattern");
|
|
|
|
|
|
|
|
|
|
TConstructRegistry.addItemToDirectory("blankPattern", TRepo.blankPattern);
|
|
|
|
|
TConstructRegistry.addItemToDirectory("woodPattern", TRepo.woodPattern);
|
|
|
|
|
TConstructRegistry.addItemToDirectory("metalPattern", TRepo.metalPattern);
|
2013-11-23 19:07:27 -08:00
|
|
|
//TConstructRegistry.addItemToDirectory("armorPattern", armorPattern);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
String[] patternTypes = { "ingot", "toolRod", "pickaxeHead", "shovelHead", "hatchetHead", "swordBlade", "wideGuard", "handGuard", "crossbar", "binding", "frypanHead", "signHead",
|
|
|
|
|
"knifeBlade", "chiselHead", "toughRod", "toughBinding", "largePlate", "broadAxeHead", "scytheHead", "excavatorHead", "largeBlade", "hammerHead", "fullGuard" };
|
|
|
|
|
|
|
|
|
|
for (int i = 1; i < patternTypes.length; i++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory(patternTypes[i] + "Pattern", new ItemStack(TRepo.woodPattern, 1, i));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
for (int i = 0; i < patternTypes.length; i++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory(patternTypes[i] + "Cast", new ItemStack(TRepo.metalPattern, 1, i));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
2013-11-23 19:07:27 -08:00
|
|
|
/*String[] armorPartTypes = { "helmet", "chestplate", "leggings", "boots" };
|
2013-10-19 07:45:16 -07:00
|
|
|
for (int i = 1; i < armorPartTypes.length; i++)
|
|
|
|
|
{
|
|
|
|
|
TConstructRegistry.addItemStackToDirectory(armorPartTypes[i] + "Cast", new ItemStack(armorPattern, 1, i));
|
2013-11-23 19:07:27 -08:00
|
|
|
}*/
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-01-15 23:19:27 -05:00
|
|
|
TRepo.manualBook = new Manual();
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.manualBook, "manualBook");
|
2014-02-01 06:00:54 -05:00
|
|
|
TRepo.buckets = new FilledBucket(BlockUtils.getBlockFromItem(TRepo.buckets));
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.buckets, "buckets");
|
|
|
|
|
|
2014-01-15 23:19:27 -05:00
|
|
|
TRepo.pickaxe = new Pickaxe();
|
|
|
|
|
TRepo.shovel = new Shovel();
|
|
|
|
|
TRepo.hatchet = new Hatchet();
|
|
|
|
|
TRepo.broadsword = new Broadsword();
|
|
|
|
|
TRepo.longsword = new Longsword();
|
|
|
|
|
TRepo.rapier = new Rapier();
|
|
|
|
|
TRepo.dagger = new Dagger();
|
|
|
|
|
TRepo.cutlass = new Cutlass();
|
|
|
|
|
|
|
|
|
|
TRepo.frypan = new FryingPan();
|
|
|
|
|
TRepo.battlesign = new BattleSign();
|
|
|
|
|
TRepo.mattock = new Mattock();
|
|
|
|
|
TRepo.chisel = new Chisel();
|
|
|
|
|
|
|
|
|
|
TRepo.lumberaxe = new LumberAxe();
|
|
|
|
|
TRepo.cleaver = new Cleaver();
|
|
|
|
|
TRepo.scythe = new Scythe();
|
|
|
|
|
TRepo.excavator = new Excavator();
|
|
|
|
|
TRepo.hammer = new Hammer();
|
|
|
|
|
TRepo.battleaxe = new Battleaxe();
|
|
|
|
|
|
|
|
|
|
TRepo.shortbow = new Shortbow();
|
|
|
|
|
TRepo.arrow = new Arrow();
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
Item[] tools = { TRepo.pickaxe, TRepo.shovel, TRepo.hatchet, TRepo.broadsword, TRepo.longsword, TRepo.rapier, TRepo.dagger, TRepo.cutlass, TRepo.frypan, TRepo.battlesign, TRepo.mattock,
|
|
|
|
|
TRepo.chisel, TRepo.lumberaxe, TRepo.cleaver, TRepo.scythe, TRepo.excavator, TRepo.hammer, TRepo.battleaxe, TRepo.shortbow, TRepo.arrow };
|
2013-11-25 04:12:29 -08:00
|
|
|
String[] toolStrings = { "pickaxe", "shovel", "hatchet", "broadsword", "longsword", "rapier", "dagger", "cutlass", "frypan", "battlesign", "mattock", "chisel", "lumberaxe", "cleaver",
|
|
|
|
|
"scythe", "excavator", "hammer", "battleaxe", "shortbow", "arrow" };
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
for (int i = 0; i < tools.length; i++)
|
|
|
|
|
{
|
2013-11-23 12:53:57 +00:00
|
|
|
GameRegistry.registerItem(tools[i], toolStrings[i]); // 1.7 compat
|
2013-07-26 21:18:53 -07:00
|
|
|
TConstructRegistry.addItemToDirectory(toolStrings[i], tools[i]);
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.potionLauncher = new PotionLauncher().setUnlocalizedName("tconstruct.PotionLauncher");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.potionLauncher, "potionLauncher");
|
|
|
|
|
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.pickaxeHead = new ToolPart("_pickaxe_head", "PickHead").setUnlocalizedName("tconstruct.PickaxeHead");
|
|
|
|
|
TRepo.shovelHead = new ToolPart("_shovel_head", "ShovelHead").setUnlocalizedName("tconstruct.ShovelHead");
|
|
|
|
|
TRepo.hatchetHead = new ToolPart("_axe_head", "AxeHead").setUnlocalizedName("tconstruct.AxeHead");
|
|
|
|
|
TRepo.binding = new ToolPart("_binding", "Binding").setUnlocalizedName("tconstruct.Binding");
|
|
|
|
|
TRepo.toughBinding = new ToolPart("_toughbind", "ToughBind").setUnlocalizedName("tconstruct.ThickBinding");
|
|
|
|
|
TRepo.toughRod = new ToolPart("_toughrod", "ToughRod").setUnlocalizedName("tconstruct.ThickRod");
|
|
|
|
|
TRepo.largePlate = new ToolPart("_largeplate", "LargePlate").setUnlocalizedName("tconstruct.LargePlate");
|
|
|
|
|
|
|
|
|
|
TRepo.swordBlade = new ToolPart("_sword_blade", "SwordBlade").setUnlocalizedName("tconstruct.SwordBlade");
|
|
|
|
|
TRepo.wideGuard = new ToolPart("_large_guard", "LargeGuard").setUnlocalizedName("tconstruct.LargeGuard");
|
|
|
|
|
TRepo.handGuard = new ToolPart("_medium_guard", "MediumGuard").setUnlocalizedName("tconstruct.MediumGuard");
|
|
|
|
|
TRepo.crossbar = new ToolPart("_crossbar", "Crossbar").setUnlocalizedName("tconstruct.Crossbar");
|
|
|
|
|
TRepo.knifeBlade = new ToolPart("_knife_blade", "KnifeBlade").setUnlocalizedName("tconstruct.KnifeBlade");
|
|
|
|
|
TRepo.fullGuard = new ToolPartHidden("_full_guard", "FullGuard").setUnlocalizedName("tconstruct.FullGuard");
|
|
|
|
|
|
|
|
|
|
TRepo.frypanHead = new ToolPart("_frypan_head", "FrypanHead").setUnlocalizedName("tconstruct.FrypanHead");
|
|
|
|
|
TRepo.signHead = new ToolPart("_battlesign_head", "SignHead").setUnlocalizedName("tconstruct.SignHead");
|
|
|
|
|
TRepo.chiselHead = new ToolPart("_chisel_head", "ChiselHead").setUnlocalizedName("tconstruct.ChiselHead");
|
|
|
|
|
|
|
|
|
|
TRepo.scytheBlade = new ToolPart("_scythe_head", "ScytheHead").setUnlocalizedName("tconstruct.ScytheBlade");
|
|
|
|
|
TRepo.broadAxeHead = new ToolPart("_lumberaxe_head", "LumberHead").setUnlocalizedName("tconstruct.LumberHead");
|
|
|
|
|
TRepo.excavatorHead = new ToolPart("_excavator_head", "ExcavatorHead").setUnlocalizedName("tconstruct.ExcavatorHead");
|
|
|
|
|
TRepo.largeSwordBlade = new ToolPart("_large_sword_blade", "LargeSwordBlade").setUnlocalizedName("tconstruct.LargeSwordBlade");
|
|
|
|
|
TRepo.hammerHead = new ToolPart("_hammer_head", "HammerHead").setUnlocalizedName("tconstruct.HammerHead");
|
|
|
|
|
|
|
|
|
|
TRepo.bowstring = new Bowstring().setUnlocalizedName("tconstruct.Bowstring");
|
|
|
|
|
TRepo.arrowhead = new ToolPart("_arrowhead", "ArrowHead").setUnlocalizedName("tconstruct.Arrowhead");
|
|
|
|
|
TRepo.fletching = new Fletching().setUnlocalizedName("tconstruct.Fletching");
|
2013-11-29 23:16:32 -05:00
|
|
|
|
|
|
|
|
Item[] toolParts = { TRepo.toolRod, TRepo.toolShard, TRepo.pickaxeHead, TRepo.shovelHead, TRepo.hatchetHead, TRepo.binding, TRepo.toughBinding, TRepo.toughRod, TRepo.largePlate,
|
|
|
|
|
TRepo.swordBlade, TRepo.wideGuard, TRepo.handGuard, TRepo.crossbar, TRepo.knifeBlade, TRepo.fullGuard, TRepo.frypanHead, TRepo.signHead, TRepo.chiselHead, TRepo.scytheBlade,
|
|
|
|
|
TRepo.broadAxeHead, TRepo.excavatorHead, TRepo.largeSwordBlade, TRepo.hammerHead, TRepo.bowstring, TRepo.fletching, TRepo.arrowhead };
|
2013-07-26 21:18:53 -07:00
|
|
|
String[] toolPartStrings = { "toolRod", "toolShard", "pickaxeHead", "shovelHead", "hatchetHead", "binding", "toughBinding", "toughRod", "heavyPlate", "swordBlade", "wideGuard", "handGuard",
|
|
|
|
|
"crossbar", "knifeBlade", "fullGuard", "frypanHead", "signHead", "chiselHead", "scytheBlade", "broadAxeHead", "excavatorHead", "largeSwordBlade", "hammerHead", "bowstring",
|
|
|
|
|
"fletching", "arrowhead" };
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < toolParts.length; i++)
|
|
|
|
|
{
|
2013-11-23 12:53:57 +00:00
|
|
|
GameRegistry.registerItem(toolParts[i], toolPartStrings[i]); // 1.7 compat
|
2013-07-26 21:18:53 -07:00
|
|
|
TConstructRegistry.addItemToDirectory(toolPartStrings[i], toolParts[i]);
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.diamondApple = new DiamondApple().setUnlocalizedName("tconstruct.apple.diamond");
|
|
|
|
|
TRepo.strangeFood = new StrangeFood().setUnlocalizedName("tconstruct.strangefood");
|
|
|
|
|
TRepo.oreBerries = new OreBerries().setUnlocalizedName("oreberry");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.diamondApple, "diamondApple");
|
|
|
|
|
GameRegistry.registerItem(TRepo.strangeFood, "strangeFood");
|
|
|
|
|
GameRegistry.registerItem(TRepo.oreBerries, "oreBerries");
|
2014-02-07 17:11:03 -05:00
|
|
|
|
2014-02-07 16:50:54 -05:00
|
|
|
boolean foodOverhaul = false;
|
2014-02-07 17:11:03 -05:00
|
|
|
if (Loader.isModLoaded("HungerOverhaul") || Loader.isModLoaded("fc_food"))
|
|
|
|
|
{
|
|
|
|
|
foodOverhaul = true;
|
2014-02-07 19:27:00 +00:00
|
|
|
}
|
2014-02-07 17:11:03 -05:00
|
|
|
|
2014-02-07 19:27:00 +00:00
|
|
|
TRepo.jerky = new Jerky(foodOverhaul).setUnlocalizedName("tconstruct.jerky");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.jerky, "jerky");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
//Wearables
|
2014-01-18 02:52:49 -05:00
|
|
|
//heavyHelmet = new TArmorBase(PHConstruct.heavyHelmet, 0).setUnlocalizedName("tconstruct.HeavyHelmet");
|
|
|
|
|
TRepo.heartCanister = new HeartCanister().setUnlocalizedName("tconstruct.canister");
|
|
|
|
|
//heavyBoots = new TArmorBase(PHConstruct.heavyBoots, 3).setUnlocalizedName("tconstruct.HeavyBoots");
|
|
|
|
|
//glove = new Glove(PHConstruct.glove).setUnlocalizedName("tconstruct.Glove");
|
|
|
|
|
TRepo.knapsack = new Knapsack().setUnlocalizedName("tconstruct.storage");
|
|
|
|
|
TRepo.goldHead = new GoldenHead(4, 1.2F, false).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 10, 0, 1.0F).setUnlocalizedName("goldenhead");
|
2013-11-29 23:16:32 -05:00
|
|
|
//GameRegistry.registerItem(TRepo.heavyHelmet, "heavyHelmet");
|
|
|
|
|
GameRegistry.registerItem(TRepo.heartCanister, "heartCanister");
|
|
|
|
|
//GameRegistry.registerItem(TRepo.heavyBoots, "heavyBoots");
|
|
|
|
|
//GameRegistry.registerItem(TRepo.glove, "glove");
|
|
|
|
|
GameRegistry.registerItem(TRepo.knapsack, "knapsack");
|
|
|
|
|
GameRegistry.registerItem(TRepo.goldHead, "goldHead");
|
2013-10-19 07:45:16 -07:00
|
|
|
|
2013-10-10 20:03:45 +11:00
|
|
|
LiquidCasting basinCasting = TConstruct.getBasinCasting();
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.materialWood = EnumHelper.addArmorMaterial("WOOD", 2, new int[] { 1, 2, 2, 1 }, 3);
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.helmetWood = new ArmorBasic(TRepo.materialWood, 0, "wood").setUnlocalizedName("tconstruct.helmetWood");
|
|
|
|
|
TRepo.chestplateWood = new ArmorBasic(TRepo.materialWood, 1, "wood").setUnlocalizedName("tconstruct.chestplateWood");
|
|
|
|
|
TRepo.leggingsWood = new ArmorBasic(TRepo.materialWood, 2, "wood").setUnlocalizedName("tconstruct.leggingsWood");
|
|
|
|
|
TRepo.bootsWood = new ArmorBasic(TRepo.materialWood, 3, "wood").setUnlocalizedName("tconstruct.bootsWood");
|
2013-11-29 23:16:32 -05:00
|
|
|
GameRegistry.registerItem(TRepo.helmetWood, "helmetWood");
|
|
|
|
|
GameRegistry.registerItem(TRepo.chestplateWood, "chestplateWood");
|
|
|
|
|
GameRegistry.registerItem(TRepo.leggingsWood, "leggingsWood");
|
|
|
|
|
GameRegistry.registerItem(TRepo.bootsWood, "bootsWood");
|
2013-10-19 07:45:16 -07:00
|
|
|
|
2014-01-18 02:52:49 -05:00
|
|
|
TRepo.exoGoggles = new ExoArmor(EnumArmorPart.HELMET, "exosuit").setUnlocalizedName("tconstruct.exoGoggles");
|
|
|
|
|
TRepo.exoChest = new ExoArmor(EnumArmorPart.CHEST, "exosuit").setUnlocalizedName("tconstruct.exoChest");
|
|
|
|
|
TRepo.exoPants = new ExoArmor(EnumArmorPart.PANTS, "exosuit").setUnlocalizedName("tconstruct.exoPants");
|
|
|
|
|
TRepo.exoShoes = new ExoArmor(EnumArmorPart.SHOES, "exosuit").setUnlocalizedName("tconstruct.exoShoes");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
String[] materialStrings = { "paperStack", "greenSlimeCrystal", "searedBrick", "ingotCobalt", "ingotArdite", "ingotManyullyn", "mossBall", "lavaCrystal", "necroticBone", "ingotCopper",
|
|
|
|
|
"ingotTin", "ingotAluminum", "rawAluminum", "ingotBronze", "ingotAluminumBrass", "ingotAlumite", "ingotSteel", "blueSlimeCrystal", "ingotObsidian", "nuggetIron", "nuggetCopper",
|
|
|
|
|
"nuggetTin", "nuggetAluminum", "nuggetSilver", "nuggetAluminumBrass", "silkyCloth", "silkyJewel", "nuggetObsidian", "nuggetCobalt", "nuggetArdite", "nuggetManyullyn", "nuggetBronze",
|
2013-11-24 23:40:51 -08:00
|
|
|
"nuggetAlumite", "nuggetSteel", "ingotPigIron", "nuggetPigIron", "glueball" };
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
for (int i = 0; i < materialStrings.length; i++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory(materialStrings[i], new ItemStack(TRepo.materials, 1, i));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String[] oreberries = { "Iron", "Gold", "Copper", "Tin", "Aluminum", "Essence" };
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < oreberries.length; i++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory("oreberry" + oreberries[i], new ItemStack(TRepo.oreBerries, 1, i));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory("diamondApple", new ItemStack(TRepo.diamondApple, 1, 0));
|
|
|
|
|
TConstructRegistry.addItemStackToDirectory("blueSlimeFood", new ItemStack(TRepo.strangeFood, 1, 0));
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addItemStackToDirectory("canisterEmpty", new ItemStack(TRepo.heartCanister, 1, 0));
|
|
|
|
|
TConstructRegistry.addItemStackToDirectory("miniRedHeart", new ItemStack(TRepo.heartCanister, 1, 1));
|
|
|
|
|
TConstructRegistry.addItemStackToDirectory("canisterRedHeart", new ItemStack(TRepo.heartCanister, 1, 2));
|
2013-11-07 23:13:44 -08:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
//Vanilla stack sizes
|
2014-01-21 18:01:00 -05:00
|
|
|
Items.wooden_door.setMaxStackSize(16);
|
|
|
|
|
Items.iron_door.setMaxStackSize(16);
|
|
|
|
|
Items.snowball.setMaxStackSize(64);
|
|
|
|
|
Items.boat.setMaxStackSize(16);
|
2014-01-29 22:58:29 -05:00
|
|
|
Items.minecart.setMaxStackSize(3);
|
|
|
|
|
//Items.minecartEmpty.setMaxStackSize(3);
|
|
|
|
|
//Items.minecartCrate.setMaxStackSize(3);
|
|
|
|
|
//Items.minecartPowered.setMaxStackSize(3);
|
2014-01-28 22:43:08 -05:00
|
|
|
Items.cake.setMaxStackSize(16);
|
2013-07-26 21:18:53 -07:00
|
|
|
//Block.torchWood.setTickRandomly(false);
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
void registerMaterials ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2013-08-19 09:11:30 -07:00
|
|
|
TConstructRegistry.addToolMaterial(0, "Wood", "Wooden ", 0, 59, 200, 0, 1.0F, 0, 0f, "\u00A7e", "");
|
2013-07-26 21:18:53 -07:00
|
|
|
TConstructRegistry.addToolMaterial(1, "Stone", 1, 131, 400, 1, 0.5F, 0, 1f, "", "Stonebound");
|
|
|
|
|
TConstructRegistry.addToolMaterial(2, "Iron", 2, 250, 600, 2, 1.3F, 1, 0f, "\u00A7f", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(3, "Flint", 1, 171, 525, 2, 0.7F, 0, 0f, "\u00A78", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(4, "Cactus", 1, 150, 500, 2, 1.0F, 0, -1f, "\u00A72", "Jagged");
|
|
|
|
|
TConstructRegistry.addToolMaterial(5, "Bone", 1, 200, 400, 1, 1.0F, 0, 0f, "\u00A7e", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(6, "Obsidian", 3, 89, 700, 2, 0.8F, 3, 0f, "\u00A7d", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(7, "Netherrack", 2, 131, 400, 1, 1.2F, 0, 1f, "\u00A74", "Stonebound");
|
2013-09-05 12:39:18 -07:00
|
|
|
TConstructRegistry.addToolMaterial(8, "Slime", 0, 500, 150, 0, 1.5F, 0, 0f, "\u00A7a", "");
|
2013-07-26 21:18:53 -07:00
|
|
|
TConstructRegistry.addToolMaterial(9, "Paper", 0, 30, 200, 0, 0.3F, 0, 0f, "\u00A7f", "Writable");
|
|
|
|
|
TConstructRegistry.addToolMaterial(10, "Cobalt", 4, 800, 1100, 3, 1.75F, 2, 0f, "\u00A73", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(11, "Ardite", 4, 600, 800, 3, 2.0F, 0, 2f, "\u00A74", "Stonebound");
|
|
|
|
|
TConstructRegistry.addToolMaterial(12, "Manyullyn", 5, 1200, 900, 4, 2.5F, 0, 0f, "\u00A75", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(13, "Copper", 1, 180, 500, 2, 1.15F, 0, 0f, "\u00A7c", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(14, "Bronze", 2, 350, 700, 2, 1.3F, 1, 0f, "\u00A76", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(15, "Alumite", 4, 550, 800, 3, 1.3F, 2, 0f, "\u00A7d", "");
|
|
|
|
|
TConstructRegistry.addToolMaterial(16, "Steel", 4, 750, 800, 3, 1.3F, 2, 0f, "", "");
|
2013-09-05 12:39:18 -07:00
|
|
|
TConstructRegistry.addToolMaterial(17, "BlueSlime", "Slime ", 0, 1200, 150, 0, 2.0F, 0, 0f, "\u00A7b", "");
|
2013-11-21 22:34:47 -08:00
|
|
|
TConstructRegistry.addToolMaterial(18, "PigIron", "Pig Iron ", 3, 250, 600, 2, 1.3F, 1, 0f, "\u00A7c", "Tasty");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
TConstructRegistry.addBowMaterial(0, 384, 20, 1.0f); //Wood
|
|
|
|
|
TConstructRegistry.addBowMaterial(1, 10, 80, 0.2f); //Stone
|
|
|
|
|
TConstructRegistry.addBowMaterial(2, 576, 40, 1.2f); //Iron
|
|
|
|
|
TConstructRegistry.addBowMaterial(3, 10, 80, 0.2f); //Flint
|
|
|
|
|
TConstructRegistry.addBowMaterial(4, 384, 20, 1.0f); //Cactus
|
|
|
|
|
TConstructRegistry.addBowMaterial(5, 192, 30, 1.0f); //Bone
|
|
|
|
|
TConstructRegistry.addBowMaterial(6, 10, 80, 0.2f); //Obsidian
|
|
|
|
|
TConstructRegistry.addBowMaterial(7, 10, 80, 0.2f); //Netherrack
|
|
|
|
|
TConstructRegistry.addBowMaterial(8, 1536, 20, 1.2f); //Slime
|
|
|
|
|
TConstructRegistry.addBowMaterial(9, 48, 25, 0.5f); //Paper
|
|
|
|
|
TConstructRegistry.addBowMaterial(10, 1152, 40, 1.2f); //Cobalt
|
|
|
|
|
TConstructRegistry.addBowMaterial(11, 960, 40, 1.2f); //Ardite
|
|
|
|
|
TConstructRegistry.addBowMaterial(12, 1536, 40, 1.2f); //Manyullyn
|
|
|
|
|
TConstructRegistry.addBowMaterial(13, 384, 40, 1.2f); //Copper
|
|
|
|
|
TConstructRegistry.addBowMaterial(14, 576, 40, 1.2f); //Bronze
|
|
|
|
|
TConstructRegistry.addBowMaterial(15, 768, 40, 1.2f); //Alumite
|
|
|
|
|
TConstructRegistry.addBowMaterial(16, 768, 40, 1.2f); //Steel
|
|
|
|
|
TConstructRegistry.addBowMaterial(17, 576, 20, 1.2f); //Blue Slime
|
2013-11-19 20:57:52 -08:00
|
|
|
TConstructRegistry.addBowMaterial(18, 384, 20, 1.2f); //Slime
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
//Material ID, mass, fragility
|
|
|
|
|
TConstructRegistry.addArrowMaterial(0, 0.69F, 1.0F, 100F); //Wood
|
|
|
|
|
TConstructRegistry.addArrowMaterial(1, 2.5F, 5.0F, 100F); //Stone
|
|
|
|
|
TConstructRegistry.addArrowMaterial(2, 7.2F, 0.5F, 100F); //Iron
|
|
|
|
|
TConstructRegistry.addArrowMaterial(3, 2.65F, 1.0F, 100F); //Flint
|
|
|
|
|
TConstructRegistry.addArrowMaterial(4, 0.76F, 1.0F, 100F); //Cactus
|
|
|
|
|
TConstructRegistry.addArrowMaterial(5, 0.69F, 1.0F, 100); //Bone
|
|
|
|
|
TConstructRegistry.addArrowMaterial(6, 2.4F, 1.0F, 100F); //Obsidian
|
|
|
|
|
TConstructRegistry.addArrowMaterial(7, 3.5F, 1.0F, 100F); //Netherrack
|
|
|
|
|
TConstructRegistry.addArrowMaterial(8, 0.42F, 0.0F, 100F); //Slime
|
|
|
|
|
TConstructRegistry.addArrowMaterial(9, 1.1F, 3.0F, 90F); //Paper
|
|
|
|
|
TConstructRegistry.addArrowMaterial(10, 8.9F, 0.25F, 100F); //Cobalt
|
|
|
|
|
TConstructRegistry.addArrowMaterial(11, 7.2F, 0.25F, 100F); //Ardite
|
|
|
|
|
TConstructRegistry.addArrowMaterial(12, 10.6F, 0.1F, 100F); //Manyullyn
|
|
|
|
|
TConstructRegistry.addArrowMaterial(13, 8.96F, 0.5F, 100F); //Copper
|
|
|
|
|
TConstructRegistry.addArrowMaterial(14, 7.9F, 0.25F, 100F); //Bronze
|
|
|
|
|
TConstructRegistry.addArrowMaterial(15, 4.7F, 0.25F, 100F); //Alumite
|
|
|
|
|
TConstructRegistry.addArrowMaterial(16, 7.6F, 0.25F, 100F); //Steel
|
|
|
|
|
TConstructRegistry.addArrowMaterial(17, 0.42F, 0.0F, 100F); //Blue Slime
|
2013-11-19 20:57:52 -08:00
|
|
|
TConstructRegistry.addArrowMaterial(18, 6.8F, 0.5F, 100F); //Iron
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-01-09 04:08:38 -05:00
|
|
|
TConstructRegistry.addBowstringMaterial(0, 2, new ItemStack(Items.string), new ItemStack(TRepo.bowstring, 1, 0), 1F, 1F, 1f); //String
|
|
|
|
|
TConstructRegistry.addFletchingMaterial(0, 2, new ItemStack(Items.feather), new ItemStack(TRepo.fletching, 1, 0), 100F, 0F, 0.05F); //Feather
|
2013-10-06 09:53:48 -07:00
|
|
|
for (int i = 0; i < 4; i++)
|
2014-01-09 04:08:38 -05:00
|
|
|
TConstructRegistry.addFletchingMaterial(1, 2, new ItemStack(Blocks.leaves, 1, i), new ItemStack(TRepo.fletching, 1, 1), 75F, 0F, 0.2F); //All four vanialla Leaves
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.addFletchingMaterial(2, 2, new ItemStack(TRepo.materials, 1, 1), new ItemStack(TRepo.fletching, 1, 2), 100F, 0F, 0.12F); //Slime
|
|
|
|
|
TConstructRegistry.addFletchingMaterial(3, 2, new ItemStack(TRepo.materials, 1, 17), new ItemStack(TRepo.fletching, 1, 3), 100F, 0F, 0.12F); //BlueSlime
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
PatternBuilder pb = PatternBuilder.instance;
|
|
|
|
|
if (PHConstruct.enableTWood)
|
2014-01-09 04:08:38 -05:00
|
|
|
pb.registerFullMaterial(Blocks.planks, 2, "Wood", new ItemStack(Items.stick), new ItemStack(Items.stick), 0);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2014-01-09 04:08:38 -05:00
|
|
|
pb.registerMaterialSet("Wood", new ItemStack(Items.stick, 2), new ItemStack(Items.stick), 0);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTStone)
|
|
|
|
|
{
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Blocks.stone, 2, "Stone", new ItemStack(TRepo.toolShard, 1, 1), new ItemStack(TRepo.toolRod, 1, 1), 1);
|
|
|
|
|
pb.registerMaterial(Blocks.cobblestone, 2, "Stone");
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Stone", new ItemStack(TRepo.toolShard, 1, 1), new ItemStack(TRepo.toolRod, 1, 1), 0);
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Items.iron_ingot, 2, "Iron", new ItemStack(TRepo.toolShard, 1, 2), new ItemStack(TRepo.toolRod, 1, 2), 2);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTFlint)
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Items.flint, 2, "Flint", new ItemStack(TRepo.toolShard, 1, 3), new ItemStack(TRepo.toolRod, 1, 3), 3);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Flint", new ItemStack(TRepo.toolShard, 1, 3), new ItemStack(TRepo.toolRod, 1, 3), 3);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTCactus)
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Blocks.cactus, 2, "Cactus", new ItemStack(TRepo.toolShard, 1, 4), new ItemStack(TRepo.toolRod, 1, 4), 4);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Cactus", new ItemStack(TRepo.toolShard, 1, 4), new ItemStack(TRepo.toolRod, 1, 4), 4);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTBone)
|
2014-01-11 05:29:27 -05:00
|
|
|
pb.registerFullMaterial(Items.bone, 2, "Bone", new ItemStack(Items.dye, 1, 15), new ItemStack(Items.bone), 5);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2014-01-11 05:29:27 -05:00
|
|
|
pb.registerMaterialSet("Bone", new ItemStack(Items.dye, 1, 15), new ItemStack(Items.bone), 5);
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Blocks.obsidian, 2, "Obsidian", new ItemStack(TRepo.toolShard, 1, 6), new ItemStack(TRepo.toolRod, 1, 6), 6);
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterial(new ItemStack(TRepo.materials, 1, 18), 2, "Obsidian");
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTNetherrack)
|
2014-01-10 17:03:06 -05:00
|
|
|
pb.registerFullMaterial(Blocks.netherrack, 2, "Netherrack", new ItemStack(TRepo.toolShard, 1, 7), new ItemStack(TRepo.toolRod, 1, 7), 7);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Netherrack", new ItemStack(TRepo.toolShard, 1, 7), new ItemStack(TRepo.toolRod, 1, 7), 7);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTSlime)
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerFullMaterial(new ItemStack(TRepo.materials, 1, 1), 2, "Slime", new ItemStack(TRepo.toolShard, 1, 8), new ItemStack(TRepo.toolRod, 1, 8), 8);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Slime", new ItemStack(TRepo.toolShard, 1, 8), new ItemStack(TRepo.toolRod, 1, 17), 8);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTPaper)
|
2014-01-11 05:29:27 -05:00
|
|
|
pb.registerFullMaterial(new ItemStack(TRepo.materials, 1, 0), 2, "Paper", new ItemStack(Items.paper, 2), new ItemStack(TRepo.toolRod, 1, 9), 9);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2014-01-11 05:29:27 -05:00
|
|
|
pb.registerMaterialSet("BlueSlime", new ItemStack(Items.paper, 2), new ItemStack(TRepo.toolRod, 1, 9), 9);
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("Cobalt", new ItemStack(TRepo.toolShard, 1, 10), new ItemStack(TRepo.toolRod, 1, 10), 10);
|
|
|
|
|
pb.registerMaterialSet("Ardite", new ItemStack(TRepo.toolShard, 1, 11), new ItemStack(TRepo.toolRod, 1, 11), 11);
|
|
|
|
|
pb.registerMaterialSet("Manyullyn", new ItemStack(TRepo.toolShard, 1, 12), new ItemStack(TRepo.toolRod, 1, 12), 12);
|
|
|
|
|
pb.registerMaterialSet("Copper", new ItemStack(TRepo.toolShard, 1, 13), new ItemStack(TRepo.toolRod, 1, 13), 13);
|
|
|
|
|
pb.registerMaterialSet("Bronze", new ItemStack(TRepo.toolShard, 1, 14), new ItemStack(TRepo.toolRod, 1, 14), 14);
|
|
|
|
|
pb.registerMaterialSet("Alumite", new ItemStack(TRepo.toolShard, 1, 15), new ItemStack(TRepo.toolRod, 1, 15), 15);
|
|
|
|
|
pb.registerMaterialSet("Steel", new ItemStack(TRepo.toolShard, 1, 16), new ItemStack(TRepo.toolRod, 1, 16), 16);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (PHConstruct.enableTBlueSlime)
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerFullMaterial(new ItemStack(TRepo.materials, 1, 17), 2, "BlueSlime", new ItemStack(TRepo.toolShard, 1, 17), new ItemStack(TRepo.toolRod, 1, 17), 17);
|
2013-07-26 21:18:53 -07:00
|
|
|
else
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.registerMaterialSet("BlueSlime", new ItemStack(TRepo.toolShard, 1, 17), new ItemStack(TRepo.toolRod, 1, 17), 17);
|
|
|
|
|
pb.registerFullMaterial(new ItemStack(TRepo.materials, 1, 34), 2, "PigIron", new ItemStack(TRepo.toolShard, 1, 18), new ItemStack(TRepo.toolRod, 1, 18), 18);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
pb.addToolPattern((IPattern) TRepo.woodPattern);
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
void addCraftingRecipes ()
|
2013-11-04 00:33:39 +01:00
|
|
|
{
|
2013-11-29 23:46:55 -05:00
|
|
|
TRecipes.addPartMapping();
|
|
|
|
|
TRecipes.addRecipesForToolBuilder();
|
|
|
|
|
TRecipes.addRecipesForTableCasting();
|
|
|
|
|
TRecipes.addRecipesForBasinCasting();
|
|
|
|
|
TRecipes.addRecipesForSmeltery();
|
|
|
|
|
TRecipes.addRecipesForChisel();
|
|
|
|
|
TRecipes.addRecipesForFurnace();
|
|
|
|
|
TRecipes.addRecipesForCraftingTable();
|
|
|
|
|
TRecipes.addRecipesForDryingRack();
|
2013-11-04 00:33:39 +01:00
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
void setupToolTabs ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TConstructRegistry.materialTab.init(new ItemStack(TRepo.titleIcon, 1, 255));
|
|
|
|
|
TConstructRegistry.blockTab.init(new ItemStack(TRepo.toolStationWood));
|
|
|
|
|
ItemStack tool = new ItemStack(TRepo.longsword, 1, 0);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
NBTTagCompound compound = new NBTTagCompound();
|
2014-01-05 00:12:56 -05:00
|
|
|
compound.setTag("InfiTool", new NBTTagCompound());
|
2013-07-26 21:18:53 -07:00
|
|
|
compound.getCompoundTag("InfiTool").setInteger("RenderHead", 2);
|
|
|
|
|
compound.getCompoundTag("InfiTool").setInteger("RenderHandle", 0);
|
|
|
|
|
compound.getCompoundTag("InfiTool").setInteger("RenderAccessory", 10);
|
|
|
|
|
tool.setTagCompound(compound);
|
|
|
|
|
|
|
|
|
|
//TConstruct.
|
|
|
|
|
TConstructRegistry.toolTab.init(tool);
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-06 09:53:48 -07:00
|
|
|
public void addLoot ()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
//Item, min, max, weight
|
2013-11-29 23:16:32 -05:00
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(TRepo.heartCanister, 1, 1), 1, 1, 5));
|
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(TRepo.heartCanister, 1, 1), 1, 1, 10));
|
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(TRepo.heartCanister, 1, 1), 1, 1, 10));
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.tinkerHouseChest = new ChestGenHooks("TinkerHouse", new WeightedRandomChestContent[0], 3, 27);
|
|
|
|
|
TRepo.tinkerHouseChest.addItem(new WeightedRandomChestContent(new ItemStack(TRepo.heartCanister, 1, 1), 1, 1, 1));
|
2013-07-26 21:18:53 -07:00
|
|
|
int[] validTypes = { 0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 17 };
|
2013-11-29 23:16:32 -05:00
|
|
|
Item[] partTypes = { TRepo.pickaxeHead, TRepo.shovelHead, TRepo.hatchetHead, TRepo.binding, TRepo.swordBlade, TRepo.wideGuard, TRepo.handGuard, TRepo.crossbar, TRepo.knifeBlade,
|
|
|
|
|
TRepo.frypanHead, TRepo.signHead, TRepo.chiselHead };
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
for (int partIter = 0; partIter < partTypes.length; partIter++)
|
|
|
|
|
{
|
|
|
|
|
for (int typeIter = 0; typeIter < validTypes.length; typeIter++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.tinkerHouseChest.addItem(new WeightedRandomChestContent(new ItemStack(partTypes[partIter], 1, validTypes[typeIter]), 1, 1, 15));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.tinkerHousePatterns = new ChestGenHooks("TinkerPatterns", new WeightedRandomChestContent[0], 5, 30);
|
2013-07-26 21:18:53 -07:00
|
|
|
for (int i = 0; i < 13; i++)
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.tinkerHousePatterns.addItem(new WeightedRandomChestContent(new ItemStack(TRepo.woodPattern, 1, i + 1), 1, 3, 20));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
2013-11-29 23:16:32 -05:00
|
|
|
TRepo.tinkerHousePatterns.addItem(new WeightedRandomChestContent(new ItemStack(TRepo.woodPattern, 1, 22), 1, 3, 40));
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2013-11-29 23:50:14 -05:00
|
|
|
public static String[] liquidNames;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
@Override
|
2013-10-06 09:53:48 -07:00
|
|
|
public int getBurnTime (ItemStack fuel)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2014-01-07 13:50:35 -05:00
|
|
|
if (fuel.getItem() == TRepo.materials && fuel.getItemDamage() == 7)
|
2013-07-26 21:18:53 -07:00
|
|
|
return 26400;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2013-11-04 00:33:39 +01:00
|
|
|
|
2013-11-19 20:57:52 -08:00
|
|
|
public void addAchievements ()
|
|
|
|
|
{
|
|
|
|
|
HashMap<String, Achievement> achievements = TAchievements.achievements;
|
|
|
|
|
|
2014-02-02 11:35:00 -05:00
|
|
|
achievements.put("tconstruct.beginner", new Achievement("" + 2741, "tconstruct.beginner", 0, 0, TRepo.manualBook, null));//.setIndependent());
|
2014-01-30 20:34:22 -05:00
|
|
|
achievements.put("tconstruct.pattern", new Achievement("" + 2742, "tconstruct.pattern", 2, 1, TRepo.blankPattern, achievements.get("tconstruct.beginner")));
|
|
|
|
|
achievements.put("tconstruct.tinkerer", new Achievement("" + 2743, "tconstruct.tinkerer", 2, 2, new ItemStack(TRepo.titleIcon, 1, 4096), achievements.get("tconstruct.pattern")));
|
|
|
|
|
achievements.put("tconstruct.preparedFight", new Achievement("" + 2744, "tconstruct.preparedFight", 1, 3, new ItemStack(TRepo.titleIcon, 1, 4097), achievements.get("tconstruct.tinkerer")));
|
|
|
|
|
achievements.put("tconstruct.proTinkerer",
|
|
|
|
|
new Achievement("" + 2745, "tconstruct.proTinkerer", 4, 4, new ItemStack(TRepo.titleIcon, 1, 4098), achievements.get("tconstruct.tinkerer")).setSpecial());
|
|
|
|
|
achievements.put("tconstruct.smelteryMaker", new Achievement("" + 2746, "tconstruct.smelteryMaker", -2, -1, TRepo.smeltery, achievements.get("tconstruct.beginner")));
|
|
|
|
|
achievements.put("tconstruct.enemySlayer", new Achievement("" + 2747, "tconstruct.enemySlayer", 0, 5, new ItemStack(TRepo.titleIcon, 1, 4099), achievements.get("tconstruct.preparedFight")));
|
|
|
|
|
achievements.put("tconstruct.dualConvenience",
|
|
|
|
|
new Achievement("" + 2748, "tconstruct.dualConvenience", 0, 7, new ItemStack(TRepo.titleIcon, 1, 4100), achievements.get("tconstruct.enemySlayer")).setSpecial());
|
|
|
|
|
achievements.put("tconstruct.doingItWrong", new Achievement("" + 2749, "tconstruct.doingItWrong", -2, -3, new ItemStack(TRepo.manualBook, 1, 2), achievements.get("tconstruct.smelteryMaker")));
|
|
|
|
|
achievements.put("tconstruct.betterCrafting", new Achievement("" + 2750, "tconstruct.betterCrafting", -2, 2, TRepo.craftingStationWood, achievements.get("tconstruct.beginner")));
|
2013-11-17 19:59:56 +11:00
|
|
|
}
|
2013-09-10 22:52:28 -04:00
|
|
|
}
|