mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
manual update of all master commits up to ca86fa8
This commit is contained in:
1 parent
14d357ccf6
commit
983c91c2c9
48 files changed
+680
-158
No files matched your search
@@ -20,8 +20,8 @@ public class BloodBlock extends TConstructFluid
|
||||
{
|
||||
if (entity instanceof EntityLivingBase)
|
||||
{
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 200, 0));
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.poison.id, 20*10, 4));
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 20*15, 0));
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.poison.id, 20*5, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package tconstruct.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fluids.BlockFluidFinite;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
public class GlueFluid extends BlockFluidFinite {
|
||||
|
||||
Icon stillIcon;
|
||||
Icon flowIcon;
|
||||
|
||||
public GlueFluid(int id, Fluid fluid, Material material)
|
||||
{
|
||||
super(id, fluid, material);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:liquid_glue");
|
||||
flowIcon = iconRegister.registerIcon("tinker:liquid_glue_flow");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIcon (int side, int meta)
|
||||
{
|
||||
if (side == 0 || side == 1)
|
||||
return stillIcon;
|
||||
return flowIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {
|
||||
entity.motionX *= 0.1;
|
||||
entity.motionZ *= 0.1;
|
||||
|
||||
if (entity instanceof EntityLivingBase) {
|
||||
EntityLivingBase lvb = (EntityLivingBase)entity;
|
||||
// Well you'd feel ill too standing in glue...
|
||||
if (lvb.isPotionActive(Potion.hunger)) {
|
||||
lvb.getActivePotionEffect(Potion.hunger).duration = 20;
|
||||
} else {
|
||||
lvb.addPotionEffect(new PotionEffect(Potion.hunger.getId(), 20, 4));
|
||||
}
|
||||
|
||||
// Glue is sticky stuff
|
||||
if (lvb.isPotionActive(Potion.moveSlowdown)) {
|
||||
lvb.getActivePotionEffect(Potion.moveSlowdown).duration = 30;
|
||||
} else {
|
||||
lvb.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 30, 4));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
|
||||
public DryingRackLogic()
|
||||
{
|
||||
super(1);
|
||||
super(1, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.monster.EntityEnderman;
|
||||
import net.minecraft.entity.monster.EntityIronGolem;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
@@ -345,6 +346,17 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (o instanceof EntityHorse)
|
||||
{
|
||||
EntityHorse horse = (EntityHorse) o;
|
||||
if (PHConstruct.meltableHorses && horse.attackEntityFrom(new SmelteryDamageSource(), 5))
|
||||
{
|
||||
if (currentLiquid + 108 < maxLiquid)
|
||||
{
|
||||
this.fill(new FluidStack(TContent.glueFluid, 108), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (o instanceof EntityLivingBase)
|
||||
{
|
||||
EntityLivingBase living = (EntityLivingBase) o;
|
||||
@@ -661,6 +673,12 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
//worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
//worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public void setInventorySlotContents (int slot, ItemStack itemstack)
|
||||
{
|
||||
inventory[slot] = itemstack != null ? itemstack.splitStack(1) : null; //May include unintended side effects. Possible fix for max stack size of 1?
|
||||
}*/
|
||||
|
||||
/* Multiblock */
|
||||
@Override
|
||||
|
||||
@@ -58,8 +58,8 @@ public class TClientEvents
|
||||
|
||||
/* Liquids */
|
||||
|
||||
Icon[] stillIcons = new Icon[1];
|
||||
Icon[] flowIcons = new Icon[1];
|
||||
Icon[] stillIcons = new Icon[2];
|
||||
Icon[] flowIcons = new Icon[2];
|
||||
|
||||
@ForgeSubscribe
|
||||
public void preStitch (TextureStitchEvent.Pre event)
|
||||
|
||||
@@ -950,7 +950,7 @@ public class TProxyClient extends TProxyCommon
|
||||
@Override
|
||||
public void postInit ()
|
||||
{
|
||||
MinecraftForgeClient.registerItemRenderer(TContent.armorPattern.itemID, new RenderArmorCast());
|
||||
//MinecraftForgeClient.registerItemRenderer(TContent.armorPattern.itemID, new RenderArmorCast());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public class StencilTableGui extends GuiContainer
|
||||
if (button.id == 0)
|
||||
{
|
||||
patternIndex++;
|
||||
if (patternIndex == 21)
|
||||
if (patternIndex == 21 || patternIndex == 26)
|
||||
patternIndex++;
|
||||
if (patternIndex >= TContent.patternOutputs.length)
|
||||
patternIndex = 0;
|
||||
@@ -101,10 +101,10 @@ public class StencilTableGui extends GuiContainer
|
||||
else if (button.id == 1)
|
||||
{
|
||||
patternIndex--;
|
||||
if (patternIndex == 21)
|
||||
patternIndex--;
|
||||
if (patternIndex < 0)
|
||||
patternIndex = TContent.patternOutputs.length - 1;
|
||||
if (patternIndex == 21 || patternIndex == 26)
|
||||
patternIndex--;
|
||||
}
|
||||
ItemStack stack = new ItemStack(TContent.woodPattern, 1, patternIndex + 1);
|
||||
logic.setInventorySlotContents(1, stack);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package tconstruct.common;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
|
||||
@@ -57,7 +58,7 @@ public class TContent implements IFuelHandler
|
||||
public static Item toolShard;
|
||||
public static Item woodPattern;
|
||||
public static Item metalPattern;
|
||||
public static Item armorPattern;
|
||||
//public static Item armorPattern;
|
||||
|
||||
public static Item manualBook;
|
||||
public static Item buckets;
|
||||
@@ -248,6 +249,10 @@ public class TContent implements IFuelHandler
|
||||
public static Block slimeChannel;
|
||||
public static Block slimePad;
|
||||
|
||||
//Glue
|
||||
public static Fluid glueFluid;
|
||||
public static Block glueFluidBlock;
|
||||
|
||||
//Ores
|
||||
public static Block oreSlag;
|
||||
public static Block oreGravel;
|
||||
@@ -324,8 +329,8 @@ public class TContent implements IFuelHandler
|
||||
//EntityRegistry.registerModEntity(MetalSlime.class, "MetalSlime", 13, TConstruct.instance, 64, 5, true);
|
||||
}
|
||||
|
||||
public static Fluid[] fluids = new Fluid[26];
|
||||
public static Block[] fluidBlocks = new Block[25];
|
||||
public static Fluid[] fluids = new Fluid[27];
|
||||
public static Block[] fluidBlocks = new Block[26];
|
||||
|
||||
void registerBlocks ()
|
||||
{
|
||||
@@ -716,12 +721,23 @@ public class TContent implements IFuelHandler
|
||||
blueSlimeFluid.setBlockID(slimePool);
|
||||
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(blueSlimeFluid, 1000), new ItemStack(buckets, 1, 24), new ItemStack(Item.bucketEmpty)));
|
||||
|
||||
//Glue
|
||||
glueFluid = new Fluid("glue").setDensity(6000).setViscosity(6000).setTemperature(200);
|
||||
if (!FluidRegistry.registerFluid(glueFluid))
|
||||
glueFluid = FluidRegistry.getFluid("glue");
|
||||
glueFluidBlock = new GlueFluid(PHConstruct.glueFluidBlock, glueFluid, Material.water).setCreativeTab(TConstructRegistry.blockTab).setStepSound(slimeStep).setUnlocalizedName("liquid.glue");
|
||||
GameRegistry.registerBlock(glueFluidBlock, "liquid.glue");
|
||||
fluids[25] = glueFluid;
|
||||
fluidBlocks[25] = glueFluidBlock;
|
||||
glueFluid.setBlockID(glueFluidBlock);
|
||||
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(glueFluid, 1000), new ItemStack(buckets, 1, 26), new ItemStack(Item.bucketEmpty)));
|
||||
|
||||
pigIronFluid = new Fluid("pigiron.molten");
|
||||
if (!FluidRegistry.registerFluid(pigIronFluid))
|
||||
pigIronFluid = FluidRegistry.getFluid("pigiron.molten");
|
||||
else
|
||||
pigIronFluid.setDensity(3000).setViscosity(6000).setTemperature(1300);
|
||||
fluids[25] = pigIronFluid;
|
||||
fluids[26] = pigIronFluid;
|
||||
|
||||
slimeGel = new SlimeGel(PHConstruct.slimeGel).setStepSound(slimeStep).setLightOpacity(0).setUnlocalizedName("slime.gel");
|
||||
GameRegistry.registerBlock(slimeGel, SlimeGelItemBlock.class, "slime.gel");
|
||||
@@ -822,16 +838,16 @@ public class TContent implements IFuelHandler
|
||||
toolShard = new ToolShard(PHConstruct.toolShard, "_chunk").setUnlocalizedName("tconstruct.ToolShard");
|
||||
woodPattern = new Pattern(PHConstruct.woodPattern, "pattern_", "materials/").setUnlocalizedName("tconstruct.Pattern");
|
||||
metalPattern = new MetalPattern(PHConstruct.metalPattern, "cast_", "materials/").setUnlocalizedName("tconstruct.MetalPattern");
|
||||
armorPattern = new ArmorPattern(PHConstruct.armorPattern, "armorcast_", "materials/").setUnlocalizedName("tconstruct.ArmorPattern");
|
||||
//armorPattern = new ArmorPattern(PHConstruct.armorPattern, "armorcast_", "materials/").setUnlocalizedName("tconstruct.ArmorPattern");
|
||||
GameRegistry.registerItem(materials, "materials");
|
||||
GameRegistry.registerItem(woodPattern, "woodPattern");
|
||||
GameRegistry.registerItem(metalPattern, "metalPattern");
|
||||
GameRegistry.registerItem(armorPattern, "armorPattern");
|
||||
//GameRegistry.registerItem(armorPattern, "armorPattern");
|
||||
|
||||
TConstructRegistry.addItemToDirectory("blankPattern", blankPattern);
|
||||
TConstructRegistry.addItemToDirectory("woodPattern", woodPattern);
|
||||
TConstructRegistry.addItemToDirectory("metalPattern", metalPattern);
|
||||
TConstructRegistry.addItemToDirectory("armorPattern", armorPattern);
|
||||
//TConstructRegistry.addItemToDirectory("armorPattern", armorPattern);
|
||||
|
||||
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" };
|
||||
@@ -844,11 +860,11 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
TConstructRegistry.addItemStackToDirectory(patternTypes[i] + "Cast", new ItemStack(metalPattern, 1, i));
|
||||
}
|
||||
String[] armorPartTypes = { "helmet", "chestplate", "leggings", "boots" };
|
||||
/*String[] armorPartTypes = { "helmet", "chestplate", "leggings", "boots" };
|
||||
for (int i = 1; i < armorPartTypes.length; i++)
|
||||
{
|
||||
TConstructRegistry.addItemStackToDirectory(armorPartTypes[i] + "Cast", new ItemStack(armorPattern, 1, i));
|
||||
}
|
||||
}*/
|
||||
|
||||
manualBook = new Manual(PHConstruct.manual);
|
||||
GameRegistry.registerItem(manualBook, "manualBook");
|
||||
@@ -879,9 +895,10 @@ public class TContent implements IFuelHandler
|
||||
shortbow = new Shortbow(PHConstruct.shortbow);
|
||||
arrow = new Arrow(PHConstruct.arrow);
|
||||
|
||||
Item[] tools = { pickaxe, shovel, hatchet, broadsword, longsword, rapier, dagger, cutlass, frypan, battlesign, mattock, chisel, lumberaxe, cleaver, scythe, excavator, hammer, battleaxe, shortbow, arrow };
|
||||
String[] toolStrings = { "pickaxe", "shovel", "hatchet", "broadsword", "longsword", "rapier", "dagger", "cutlass", "frypan", "battlesign", "mattock", "chisel", "lumberaxe", "cleaver", "scythe",
|
||||
"excavator", "hammer", "battleaxe", "shortbow", "arrow" };
|
||||
Item[] tools = { pickaxe, shovel, hatchet, broadsword, longsword, rapier, dagger, cutlass, frypan, battlesign, mattock, chisel, lumberaxe, cleaver, scythe, excavator, hammer, battleaxe,
|
||||
shortbow, arrow };
|
||||
String[] toolStrings = { "pickaxe", "shovel", "hatchet", "broadsword", "longsword", "rapier", "dagger", "cutlass", "frypan", "battlesign", "mattock", "chisel", "lumberaxe", "cleaver",
|
||||
"scythe", "excavator", "hammer", "battleaxe", "shortbow", "arrow" };
|
||||
|
||||
for (int i = 0; i < tools.length; i++)
|
||||
{
|
||||
@@ -973,7 +990,7 @@ public class TContent implements IFuelHandler
|
||||
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",
|
||||
"nuggetAlumite", "nuggetSteel", "ingotPigIron", "nuggetPigIron" };
|
||||
"nuggetAlumite", "nuggetSteel", "ingotPigIron", "nuggetPigIron", "glueball" };
|
||||
|
||||
for (int i = 0; i < materialStrings.length; i++)
|
||||
{
|
||||
@@ -1126,6 +1143,7 @@ public class TContent implements IFuelHandler
|
||||
pb.registerFullMaterial(new ItemStack(materials, 1, 17), 2, "BlueSlime", new ItemStack(toolShard, 1, 17), new ItemStack(toolRod, 1, 17), 17);
|
||||
else
|
||||
pb.registerMaterialSet("BlueSlime", new ItemStack(TContent.toolShard, 1, 17), new ItemStack(TContent.toolRod, 1, 17), 17);
|
||||
pb.registerFullMaterial(new ItemStack(materials, 1, 34), 2, "PigIron", new ItemStack(toolShard, 1, 18), new ItemStack(toolRod, 1, 18), 18);
|
||||
|
||||
pb.addToolPattern((IPattern) woodPattern);
|
||||
}
|
||||
@@ -1581,10 +1599,11 @@ public class TContent implements IFuelHandler
|
||||
tableCasting.addCastingRecipe(gemcast, new FluidStack(moltenGoldFluid, TConstruct.ingotLiquidValue * 2), new ItemStack(Item.emerald), 80);
|
||||
|
||||
//Ingots
|
||||
tableCasting.addCastingRecipe(new ItemStack(materials, 1, 2), new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue), ingotcast, 80); //stone
|
||||
|
||||
//Gems
|
||||
tableCasting.addCastingRecipe(new ItemStack(materials, 1, 2), new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue / 4), ingotcast, 80); //stone
|
||||
|
||||
//Misc
|
||||
tableCasting.addCastingRecipe(new ItemStack(Item.emerald), new FluidStack(moltenEmeraldFluid, 640), gemcast, 80);
|
||||
tableCasting.addCastingRecipe(new ItemStack(materials, 1, 36), new FluidStack(glueFluid, TConstruct.ingotLiquidValue), null, 50);
|
||||
|
||||
//Buckets
|
||||
ItemStack bucket = new ItemStack(Item.bucketEmpty);
|
||||
@@ -1593,7 +1612,7 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
tableCasting.addCastingRecipe(new ItemStack(buckets, 1, sc), new FluidStack(fluids[sc], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
|
||||
}
|
||||
tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 25), new FluidStack(fluids[25], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
|
||||
tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 26), new FluidStack(fluids[26], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
|
||||
|
||||
// Clear glass pane casting
|
||||
tableCasting.addCastingRecipe(new ItemStack(glassPane), new FluidStack(moltenGlassFluid, 250), null, 80);
|
||||
@@ -1673,15 +1692,16 @@ public class TContent implements IFuelHandler
|
||||
basinCasting.addCastingRecipe(new ItemStack(clearGlass, 1, 0), new FluidStack(moltenGlassFluid, FluidContainerRegistry.BUCKET_VOLUME), null, true, 100); //glass
|
||||
basinCasting.addCastingRecipe(new ItemStack(smeltery, 1, 4), new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue), null, true, 100); //seared stone
|
||||
basinCasting.addCastingRecipe(new ItemStack(smeltery, 1, 5), new FluidStack(moltenStoneFluid, TConstruct.chunkLiquidValue), new ItemStack(Block.cobblestone), true, 100);
|
||||
basinCasting.addCastingRecipe(new ItemStack(Block.blockEmerald), new FluidStack(moltenEmeraldFluid, 640*9), null, true, 100); //emerald
|
||||
basinCasting.addCastingRecipe(new ItemStack(Block.blockEmerald), new FluidStack(moltenEmeraldFluid, 640 * 9), null, true, 100); //emerald
|
||||
basinCasting.addCastingRecipe(new ItemStack(speedBlock, 1, 0), new FluidStack(moltenTinFluid, TConstruct.nuggetLiquidValue), new ItemStack(Block.gravel), true, 100); //brownstone
|
||||
basinCasting.addCastingRecipe(new ItemStack(Block.whiteStone), new FluidStack(moltenEnderFluid, TConstruct.chunkLiquidValue), new ItemStack(Block.obsidian), true, 100); //endstone
|
||||
basinCasting.addCastingRecipe(new ItemStack(metalBlock.blockID, 1, 10), new FluidStack(moltenEnderFluid, 1000), null, true, 100); //ender
|
||||
basinCasting.addCastingRecipe(new ItemStack(glueBlock), new FluidStack(glueFluid, TConstruct.blockLiquidValue), null, true, 100); //glue
|
||||
|
||||
// basinCasting.addCastingRecipe(new ItemStack(slimeGel, 1, 0), new FluidStack(blueSlimeFluid, FluidContainerRegistry.BUCKET_VOLUME), null, true, 100);
|
||||
|
||||
//Armor casts
|
||||
FluidRenderProperties frp = new FluidRenderProperties(Applications.BASIN.minHeight, 0.65F, Applications.BASIN);
|
||||
/*FluidRenderProperties frp = new FluidRenderProperties(Applications.BASIN.minHeight, 0.65F, Applications.BASIN);
|
||||
FluidStack aluFlu = new FluidStack(moltenAlubrassFluid, TConstruct.ingotLiquidValue * 10);
|
||||
FluidStack gloFlu = new FluidStack(moltenGoldFluid, TConstruct.ingotLiquidValue * 10);
|
||||
ItemStack[] armor = { new ItemStack(helmetWood), new ItemStack(chestplateWood), new ItemStack(leggingsWood), new ItemStack(bootsWood) };
|
||||
@@ -1689,7 +1709,7 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
basinCasting.addCastingRecipe(new ItemStack(armorPattern, 1, sc), aluFlu, armor[sc], 50, frp);
|
||||
basinCasting.addCastingRecipe(new ItemStack(armorPattern, 1, sc), gloFlu, armor[sc], 50, frp);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
private void addRecipesForSmeltery ()
|
||||
@@ -1730,7 +1750,8 @@ public class TContent implements IFuelHandler
|
||||
// Items
|
||||
|
||||
Smeltery.addMelting(FluidType.AluminumBrass, new ItemStack(blankPattern, 4, 1), -50, TConstruct.ingotLiquidValue);
|
||||
Smeltery.addMelting(FluidType.Gold, new ItemStack(blankPattern, 4, 2), -50, TConstruct.ingotLiquidValue);
|
||||
Smeltery.addMelting(FluidType.Gold, new ItemStack(blankPattern, 4, 2), -50, TConstruct.ingotLiquidValue * 2);
|
||||
Smeltery.addMelting(FluidType.Glue, new ItemStack(materials, 1, 36), 0, TConstruct.ingotLiquidValue);
|
||||
|
||||
Smeltery.addMelting(FluidType.Ender, new ItemStack(Item.enderPearl, 4), 0, 250);
|
||||
Smeltery.addMelting(metalBlock, 10, 50, new FluidStack(moltenEnderFluid, 1000));
|
||||
@@ -1766,7 +1787,9 @@ public class TContent implements IFuelHandler
|
||||
Smeltery.addMelting(Block.thinGlass, 0, 625, new FluidStack(moltenGlassFluid, 250));
|
||||
Smeltery.addMelting(Block.stone, 0, 800, new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue / 18));
|
||||
Smeltery.addMelting(Block.cobblestone, 0, 800, new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue / 18));
|
||||
Smeltery.addMelting(Block.blockEmerald, 0, 800, new FluidStack(moltenEmeraldFluid, 640*9));
|
||||
Smeltery.addMelting(Block.blockEmerald, 0, 800, new FluidStack(moltenEmeraldFluid, 640 * 9));
|
||||
Smeltery.addMelting(glueBlock, 0, 250, new FluidStack(glueFluid, TConstruct.blockLiquidValue));
|
||||
Smeltery.addMelting(craftedSoil, 1, 600, new FluidStack(moltenStoneFluid, TConstruct.ingotLiquidValue / 4));
|
||||
|
||||
Smeltery.addMelting(clearGlass, 0, 500, new FluidStack(moltenGlassFluid, 1000));
|
||||
Smeltery.addMelting(glassPane, 0, 350, new FluidStack(moltenGlassFluid, 250));
|
||||
@@ -1971,6 +1994,7 @@ public class TContent implements IFuelHandler
|
||||
ensureOreIsRegistered("ingotGold", new ItemStack(Item.ingotGold));
|
||||
OreDictionary.registerOre("ingotObsidian", new ItemStack(materials, 1, 18));
|
||||
OreDictionary.registerOre("ingotPigIron", new ItemStack(materials, 1, 34));
|
||||
OreDictionary.registerOre("itemRawRubber", new ItemStack(materials, 1, 36));
|
||||
|
||||
OreDictionary.registerOre("blockCobalt", new ItemStack(metalBlock, 1, 0));
|
||||
OreDictionary.registerOre("blockArdite", new ItemStack(metalBlock, 1, 1));
|
||||
@@ -2013,7 +2037,7 @@ public class TContent implements IFuelHandler
|
||||
|
||||
ensureOreIsRegistered("crafterWood", new ItemStack(Block.workbench, 1));
|
||||
|
||||
OreDictionary.registerOre("torchStone", new ItemStack(stoneTorch));
|
||||
OreDictionary.registerOre("torchStone", new ItemStack(stoneTorch));
|
||||
|
||||
String[] matNames = { "wood", "stone", "iron", "flint", "cactus", "bone", "obsidian", "netherrack", "slime", "paper", "cobalt", "ardite", "manyullyn", "copper", "bronze", "alumite", "steel",
|
||||
"blueslime" };
|
||||
@@ -2035,6 +2059,7 @@ public class TContent implements IFuelHandler
|
||||
//Vanilla stuff
|
||||
OreDictionary.registerOre("slimeball", new ItemStack(Item.slimeBall));
|
||||
OreDictionary.registerOre("slimeball", new ItemStack(strangeFood, 1, 0));
|
||||
OreDictionary.registerOre("slimeball", new ItemStack(materials, 1, 36));
|
||||
OreDictionary.registerOre("glass", new ItemStack(clearGlass));
|
||||
OreDictionary.registerOre("glass", new ItemStack(Block.glass));
|
||||
RecipeRemover.removeShapedRecipe(new ItemStack(Block.pistonStickyBase));
|
||||
@@ -2359,6 +2384,14 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
basinCasting.addCastingRecipe(new ItemStack(speedBlock, 81), new FluidStack(moltenElectrumFluid, TConstruct.blockLiquidValue * 9), ores.get(0), 100);
|
||||
}
|
||||
|
||||
/* Rubber */
|
||||
ores = OreDictionary.getOres("itemRubber");
|
||||
if (ores.size() > 0)
|
||||
{
|
||||
FurnaceRecipes.smelting().addSmelting(materials.itemID, 36, ores.get(0), 0.2f);
|
||||
}
|
||||
//new ItemStack(materials, 1, 36)
|
||||
}
|
||||
|
||||
public static Object getStaticItem (String name, String classPackage)
|
||||
@@ -2384,8 +2417,6 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
if (fuel.itemID == materials.itemID && fuel.getItemDamage() == 7)
|
||||
return 26400;
|
||||
if (fuel.itemID == woodPattern.itemID)
|
||||
return 800;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,10 +50,10 @@ public class ArmorPattern extends CraftingItem implements ItemBlocklike
|
||||
|
||||
public void getSubItems (int id, CreativeTabs tab, List list)
|
||||
{
|
||||
/*for (int i = 0; i < patternName.length; i++)
|
||||
for (int i = 0; i < patternName.length; i++)
|
||||
{
|
||||
list.add(new ItemStack(id, 1, i));
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,8 @@ package tconstruct.items;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraftforge.fluids.BlockFluidFinite;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.blocks.logic.LiquidTextureLogic;
|
||||
import tconstruct.common.TContent;
|
||||
|
||||
@@ -137,11 +139,16 @@ public class FilledBucket extends ItemBucket
|
||||
}
|
||||
else
|
||||
{
|
||||
int id = 0;
|
||||
int metadata = 0;
|
||||
if (type == 25)
|
||||
metadata = 0;
|
||||
world.setBlock(clickX, clickY, clickZ, TContent.fluidBlocks[type].blockID, metadata, 3); //TODO: Merge liquids
|
||||
try {
|
||||
int metadata = 0;
|
||||
if (TContent.fluidBlocks[type] instanceof BlockFluidFinite)
|
||||
metadata = 7;
|
||||
|
||||
world.setBlock(clickX, clickY, clickZ, TContent.fluidBlocks[type].blockID, metadata, 3); //TODO: Merge liquids
|
||||
} catch (ArrayIndexOutOfBoundsException ex) {
|
||||
TConstruct.logger.warning("AIOBE occured when placing bucket into world; " + ex);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -180,8 +187,8 @@ public class FilledBucket extends ItemBucket
|
||||
}
|
||||
|
||||
public static final String[] materialNames = new String[] { "Iron", "Gold", "Copper", "Tin", "Aluminum", "Cobalt", "Ardite", "Bronze", "AluBrass", "Manyullyn", "Alumite", "Obsidian", "Steel",
|
||||
"Glass", "Stone", "Villager", "Cow", "Nickel", "Lead", "Silver", "Shiny", "Invar", "Electrum", "Ender", "Slime", "PigIron" };
|
||||
"Glass", "Stone", "Villager", "Cow", "Nickel", "Lead", "Silver", "Shiny", "Invar", "Electrum", "Ender", "Slime", "Glue", "PigIron" };
|
||||
|
||||
public static final String[] textureNames = new String[] { "iron", "gold", "copper", "tin", "aluminum", "cobalt", "ardite", "bronze", "alubrass", "manyullyn", "alumite", "obsidian", "steel",
|
||||
"glass", "stone", "emerald", "blood", "nickel", "lead", "silver", "shiny", "invar", "electrum", "ender", "slime", "pigiron" };
|
||||
"glass", "stone", "emerald", "blood", "nickel", "lead", "silver", "shiny", "invar", "electrum", "ender", "slime", "glue", "pigiron" };
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -74,7 +75,7 @@ public class GoldenHead extends ItemFood
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("\u00a75\u00a7oSome say consuming the head of a");
|
||||
list.add("\u00a75\u00a7ofallen foe strengthens the blood");
|
||||
list.add(StatCollector.translateToLocal("goldenhead1.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("goldenhead2.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import tconstruct.TConstruct;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -40,13 +41,13 @@ public class Manual extends CraftingItem
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 0:
|
||||
list.add("\u00a7oBy: Skyla");
|
||||
list.add(StatCollector.translateToLocal("manual1.tooltip"));
|
||||
break;
|
||||
case 1:
|
||||
list.add("\u00a7oBy: Skyla");
|
||||
list.add(StatCollector.translateToLocal("manual2.tooltip"));
|
||||
break;
|
||||
case 2:
|
||||
list.add("\u00a7oBy: Thruul M'gon");
|
||||
list.add(StatCollector.translateToLocal("manual3.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,28 +24,10 @@ public class MaterialItem extends CraftingItem
|
||||
static String[] materialNames = new String[] { "PaperStack", "SlimeCrystal", "SearedBrick", "CobaltIngot", "ArditeIngot", "ManyullynIngot", "Mossball", "LavaCrystal", "NecroticBone",
|
||||
"CopperIngot", "TinIngot", "", "RawAluminum", "BronzeIngot", "AluBrassIngot", "AlumiteIngot", "SteelIngot", "BlueSlimeCrystal", "ObsidianIngot", "IronNugget", "CopperNugget", "TinNugget",
|
||||
"AluminumNugget", "EssenceCrystal", "AluBrassNugget", "SilkyCloth", "SilkyJewel", "ObsidianNugget", "CobaltNugget", "ArditeNugget", "ManyullynNugget", "BronzeNugget", "AlumiteNugget",
|
||||
"SteelNugget", "PigIronIngot", "PigIronNugget" };
|
||||
"SteelNugget", "PigIronIngot", "PigIronNugget", "GlueBall" };
|
||||
|
||||
static String[] craftingTextures = new String[] { "paperstack", "slimecrystal", "searedbrick", "cobaltingot", "arditeingot", "manyullyningot", "mossball", "lavacrystal", "necroticbone",
|
||||
"copperingot", "tiningot", "aluminumingot", "aluminumraw", "bronzeingot", "alubrassingot", "alumiteingot", "steelingot", "blueslimecrystal", "obsidianingot", "nugget_iron",
|
||||
"nugget_copper", "nugget_tin", "nugget_aluminum", "", "nugget_alubrass", "silkycloth", "silkyjewel", "nugget_obsidian", "nugget_cobalt", "nugget_ardite", "nugget_manyullyn",
|
||||
"nugget_bronze", "nugget_alumite", "nugget_steel", "pigironingot", "nugget_pigiron" };
|
||||
|
||||
/*@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
if (stack.getItemDamage() == 23)
|
||||
{
|
||||
if (stack.hasTagCompound())
|
||||
{
|
||||
int amount = stack.getTagCompound().getInteger("Essence");
|
||||
list.add("Stored Levels: " + EssenceExtractorLogic.getEssencelevels(amount));
|
||||
}
|
||||
else
|
||||
{
|
||||
list.add("Stored Levels: 0");
|
||||
}
|
||||
}
|
||||
}*/
|
||||
"nugget_bronze", "nugget_alumite", "nugget_steel", "pigironingot", "nugget_pigiron", "glueball" };
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.entity.item.EntityXPOrb;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -27,22 +28,22 @@ public class OreBerries extends CraftingItem
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 0:
|
||||
list.add("Sweet Irony");
|
||||
list.add(StatCollector.translateToLocal("oreberries1.tooltip"));
|
||||
break;
|
||||
case 1:
|
||||
list.add("Pure Luster");
|
||||
list.add(StatCollector.translateToLocal("oreberries2.tooltip"));
|
||||
break;
|
||||
case 2:
|
||||
list.add("Tastes like metal");
|
||||
list.add(StatCollector.translateToLocal("oreberries3.tooltip"));
|
||||
break;
|
||||
case 3:
|
||||
list.add("Tin Man");
|
||||
list.add(StatCollector.translateToLocal("oreberries4.tooltip"));
|
||||
break;
|
||||
case 4:
|
||||
list.add("White Chocolate");
|
||||
list.add(StatCollector.translateToLocal("oreberries5.tooltip"));
|
||||
break;
|
||||
case 5:
|
||||
list.add("Tastes like Creeper");
|
||||
list.add(StatCollector.translateToLocal("oreberries6.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.PatternBuilder.MaterialSet;
|
||||
import tconstruct.library.util.IPattern;
|
||||
@@ -69,9 +70,9 @@ public class Pattern extends CraftingItem implements IPattern
|
||||
if (cost > 0)
|
||||
{
|
||||
if (cost - (int) cost < 0.1)
|
||||
list.add("Material Cost: " + (int) cost);
|
||||
list.add(StatCollector.translateToLocal("pattern1.tooltip") + (int) cost);
|
||||
else
|
||||
list.add("Material Cost: " + cost);
|
||||
list.add(StatCollector.translateToLocal("pattern2.tooltip") + cost);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package tconstruct.items;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -18,7 +19,7 @@ public class StrangeFood extends SpecialFood
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("\u00a7b\u00a7oIt smells terrible, but if you");
|
||||
list.add("\u00a7b\u00a7ohave nothing else to eat...");
|
||||
list.add(StatCollector.translateToLocal("strangefood1.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("strangefood2.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import tconstruct.util.player.TPlayerStats;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -55,15 +56,15 @@ public class HeartCanister extends CraftingItem
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 0:
|
||||
list.add("Crafting Item");
|
||||
list.add(StatCollector.translateToLocal("hearthcanister1.tooltip"));
|
||||
break;
|
||||
case 1:
|
||||
list.add("Crafting Item");
|
||||
list.add("Part of low-level Heart Canisters");
|
||||
list.add(StatCollector.translateToLocal("hearthcanister2.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("hearthcanister3.tooltip"));
|
||||
break;
|
||||
case 2:
|
||||
list.add("Accessory");
|
||||
list.add("Permanent health increase");
|
||||
list.add(StatCollector.translateToLocal("hearthcanister4.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("hearthcanister5.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package tconstruct.items.armor;
|
||||
import java.util.List;
|
||||
|
||||
import tconstruct.items.CraftingItem;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -25,7 +25,7 @@ public class Knapsack extends CraftingItem
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 0:
|
||||
list.add("A Knapsack to hold your things.");
|
||||
list.add(StatCollector.translateToLocal("knapsack.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class BarricadeItem extends ItemBlock
|
||||
{
|
||||
@@ -25,7 +26,7 @@ public class BarricadeItem extends ItemBlock
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("Stacks up to 4 times");
|
||||
list.add(StatCollector.translateToLocal("barricade.tooltip"));
|
||||
}
|
||||
|
||||
public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
|
||||
|
||||
@@ -8,6 +8,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class CraftedSoilItemBlock extends ItemBlock
|
||||
{
|
||||
@@ -40,10 +41,10 @@ public class CraftedSoilItemBlock extends ItemBlock
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 3:
|
||||
list.add("Heals Undead");
|
||||
list.add(StatCollector.translateToLocal("craftedsoil1.tooltip"));
|
||||
break;
|
||||
case 4:
|
||||
list.add("Harmful to Undead");
|
||||
list.add(StatCollector.translateToLocal("craftedsoil2.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -38,8 +39,8 @@ public class HamboneItemBlock extends ItemBlock
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("\u00A74Hambone!");
|
||||
list.add("Usable for Beacon bases");
|
||||
list.add(StatCollector.translateToLocal("hambone1.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("hambone2.tooltip"));
|
||||
}
|
||||
|
||||
/** Number of ticks to run while 'EnumAction'ing until result. */
|
||||
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import tconstruct.blocks.logic.TileEntityLandmine;
|
||||
import tconstruct.common.TContent;
|
||||
|
||||
@@ -32,16 +33,16 @@ public class ItemBlockLandmine extends ItemBlock
|
||||
switch (par1ItemStack.getItemDamage())
|
||||
{
|
||||
case 0:
|
||||
interaction = "everything";
|
||||
interaction = StatCollector.translateToLocal("landmine1.tooltip");
|
||||
break;
|
||||
case 1:
|
||||
interaction = "mobs, players and redstone";
|
||||
interaction = StatCollector.translateToLocal("landmine2.tooltip");
|
||||
break;
|
||||
case 2:
|
||||
interaction = "players and redstone";
|
||||
interaction = StatCollector.translateToLocal("landmine3.tooltip");
|
||||
break;
|
||||
default:
|
||||
interaction = "redstone only";
|
||||
interaction = StatCollector.translateToLocal("landmine4.tooltip");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,13 +38,13 @@ public class LavaTankItemBlock extends ItemBlock
|
||||
NBTTagCompound liquidTag = stack.getTagCompound().getCompoundTag("Fluid");
|
||||
if (liquidTag != null)
|
||||
{
|
||||
list.add("Contains " + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
|
||||
list.add(StatCollector.translateToLocal("searedtank1.tooltip") + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
|
||||
list.add(liquidTag.getInteger("Amount") + " mB");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
list.add(StatCollector.translateToLocal("searedtank.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("searedtank2.tooltip"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class MetalItemBlock extends ItemBlock
|
||||
{
|
||||
@@ -32,6 +33,6 @@ public class MetalItemBlock extends ItemBlock
|
||||
@Override
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("Usable for Beacon bases");
|
||||
list.add(StatCollector.translateToLocal("metalblock.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -40,18 +41,18 @@ public class MultiBrickFancyItem extends ItemBlock
|
||||
{
|
||||
case 5:
|
||||
case 6:
|
||||
list.add("Somewhat expensive");
|
||||
list.add(StatCollector.translateToLocal("fancybrick1.tooltip"));
|
||||
break;
|
||||
case 7:
|
||||
list.add("Quite expensive");
|
||||
list.add(StatCollector.translateToLocal("fancybrick2.tooltip"));
|
||||
break;
|
||||
case 8:
|
||||
list.add("Emits Redstone signal up to");
|
||||
list.add("4 blocks away");
|
||||
list.add(StatCollector.translateToLocal("fancybrick3.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("fancybrick4.tooltip"));
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
list.add("Bouncy!");
|
||||
list.add(StatCollector.translateToLocal("fancybrick5.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -40,18 +41,18 @@ public class MultiBrickItem extends ItemBlock
|
||||
{
|
||||
case 5:
|
||||
case 6:
|
||||
list.add("Somewhat expensive");
|
||||
list.add(StatCollector.translateToLocal("brick1.tooltip"));
|
||||
break;
|
||||
case 7:
|
||||
list.add("Quite expensive");
|
||||
list.add(StatCollector.translateToLocal("brick2.tooltip"));
|
||||
break;
|
||||
case 8:
|
||||
list.add("Emits Redstone signal up to");
|
||||
list.add("4 blocks away");
|
||||
list.add(StatCollector.translateToLocal("brick3.tooltip"));
|
||||
list.add(StatCollector.translateToLocal("brick4.tooltip"));
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
list.add("Bouncy!");
|
||||
list.add(StatCollector.translateToLocal("brick5.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import net.minecraftforge.common.IPlantable;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -76,16 +77,16 @@ public class OreberryBushItem extends ItemBlock
|
||||
switch (stack.getItemDamage() % 4)
|
||||
{
|
||||
case 0:
|
||||
list.add("Sweet Irony");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush1.tooltip"));
|
||||
break;
|
||||
case 1:
|
||||
list.add("Pure Luster");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush2.tooltip"));
|
||||
break;
|
||||
case 2:
|
||||
list.add("Tastes like metal");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush3.tooltip"));
|
||||
break;
|
||||
case 3:
|
||||
list.add("Tin Man");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush4.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import net.minecraftforge.common.IPlantable;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -80,10 +81,10 @@ public class OreberryBushSecondItem extends ItemBlock
|
||||
switch (stack.getItemDamage() % 4)
|
||||
{
|
||||
case 0:
|
||||
list.add("White Chocolate");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush5.tooltip"));
|
||||
break;
|
||||
case 1:
|
||||
list.add("Tastes like Creeper");
|
||||
list.add(StatCollector.translateToLocal("oreberrybush6.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -37,11 +38,11 @@ public class SoilSlabItem extends ItemBlock
|
||||
{
|
||||
switch (stack.getItemDamage())
|
||||
{
|
||||
case 3:
|
||||
list.add("Heals Undead");
|
||||
case 3:
|
||||
list.add(StatCollector.translateToLocal("craftedsoil.slab1.tooltip"));
|
||||
break;
|
||||
case 4:
|
||||
list.add("Harmful to Undead");
|
||||
list.add(StatCollector.translateToLocal("craftedsoil.slab2.tooltip"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class SpeedBlockItem extends ItemBlock
|
||||
{
|
||||
@@ -34,8 +35,8 @@ public class SpeedBlockItem extends ItemBlock
|
||||
{
|
||||
int metadata = stack.getItemDamage();
|
||||
if (metadata == 1 || metadata == 4)
|
||||
list.add("You run pretty fast on it");
|
||||
list.add(StatCollector.translateToLocal("speedblock1.tooltip"));
|
||||
else
|
||||
list.add("You run a bit faster on it");
|
||||
list.add(StatCollector.translateToLocal("speedblock2.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class SpeedSlabItem extends ItemBlock
|
||||
{
|
||||
@@ -34,8 +35,8 @@ public class SpeedSlabItem extends ItemBlock
|
||||
{
|
||||
int metadata = stack.getItemDamage() % 8;
|
||||
if (metadata == 1 || metadata == 4)
|
||||
list.add("You run pretty fast on it");
|
||||
list.add(StatCollector.translateToLocal("speedblock.slab1.tooltip"));
|
||||
else
|
||||
list.add("You run a bit faster on it");
|
||||
list.add(StatCollector.translateToLocal("speedblock.slab2.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,18 @@
|
||||
package tconstruct.items.tools;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.library.ActiveToolMod;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.tools.AbilityHelper;
|
||||
import tconstruct.library.tools.HarvestTool;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -203,6 +206,26 @@ public class Hammer extends HarvestTool
|
||||
return emptyIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubItems (int id, CreativeTabs tab, List list)
|
||||
{
|
||||
super.getSubItems(id, tab, list);
|
||||
|
||||
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, 10), new ItemStack(getHandleItem(), 1, 8), new ItemStack(getAccessoryItem(), 1, 11), new ItemStack(
|
||||
getExtraItem(), 1, 11), "InfiMiner");
|
||||
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
tags.setInteger("Modifiers", 0);
|
||||
tags.setInteger("Attack", Integer.MAX_VALUE / 100);
|
||||
tags.setInteger("TotalDurability", Integer.MAX_VALUE / 100);
|
||||
tags.setInteger("BaseDurability", Integer.MAX_VALUE / 100);
|
||||
tags.setInteger("MiningSpeed", Integer.MAX_VALUE / 100);
|
||||
tags.setInteger("Unbreaking", 10);
|
||||
|
||||
tags.setBoolean("Built", true);
|
||||
list.add(tool);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
|
||||
{
|
||||
@@ -234,7 +257,7 @@ public class Hammer extends HarvestTool
|
||||
if (block == Block.silverfish)
|
||||
validStart = true;
|
||||
|
||||
MovingObjectPosition mop = AbilityHelper.raytraceFromEntity(world, player, true, 5.0D);
|
||||
MovingObjectPosition mop = AbilityHelper.raytraceFromEntity(world, player, true, 4.5D);
|
||||
if (mop == null || !validStart)
|
||||
return super.onBlockStartBreak(stack, x, y, z, player);
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -179,6 +180,6 @@ public class PotionLauncher extends Item
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
{
|
||||
list.add("Test Item");
|
||||
list.add(StatCollector.translateToLocal("potionlauncher.tooltip"));
|
||||
}
|
||||
}
|
||||
@@ -20,10 +20,17 @@ public abstract class InventoryLogic extends TileEntity implements IInventory
|
||||
{
|
||||
protected ItemStack[] inventory;
|
||||
protected String invName;
|
||||
protected int stackSizeLimit;
|
||||
|
||||
public InventoryLogic(int invSize)
|
||||
{
|
||||
this(invSize, 64);
|
||||
}
|
||||
|
||||
public InventoryLogic(int invSize, int maxStackSize)
|
||||
{
|
||||
inventory = new ItemStack[invSize];
|
||||
stackSizeLimit = maxStackSize;
|
||||
}
|
||||
|
||||
/* Inventory management */
|
||||
@@ -48,7 +55,7 @@ public abstract class InventoryLogic extends TileEntity implements IInventory
|
||||
@Override
|
||||
public int getInventoryStackLimit ()
|
||||
{
|
||||
return 64;
|
||||
return stackSizeLimit;
|
||||
}
|
||||
|
||||
public boolean canDropInventorySlot (int slot)
|
||||
|
||||
@@ -59,7 +59,9 @@ public enum FluidType
|
||||
/** Slime Smelting **/
|
||||
Slime(TContent.slimeGel.blockID, 0, 250, TContent.blueSlimeFluid, false),
|
||||
/** Pigiron Smelting **/
|
||||
PigIron(TContent.meatBlock.blockID, 0, 610, TContent.pigIronFluid, true);
|
||||
PigIron(TContent.meatBlock.blockID, 0, 610, TContent.pigIronFluid, true),
|
||||
/** Glue Smelting **/
|
||||
Glue(TContent.glueBlock.blockID, 0, 125, TContent.glueFluid, false);
|
||||
|
||||
public final int renderBlockID;
|
||||
public final int renderMeta;
|
||||
|
||||
@@ -730,7 +730,9 @@ public class AbilityHelper
|
||||
float f1 = player.prevRotationPitch + (player.rotationPitch - player.prevRotationPitch) * f;
|
||||
float f2 = player.prevRotationYaw + (player.rotationYaw - player.prevRotationYaw) * f;
|
||||
double d0 = player.prevPosX + (player.posX - player.prevPosX) * (double) f;
|
||||
double d1 = player.prevPosY + (player.posY - player.prevPosY) * (double) f + 1.62D - (double) player.yOffset;
|
||||
double d1 = player.prevPosY + (player.posY - player.prevPosY) * (double) f;
|
||||
if (!world.isRemote && player instanceof EntityPlayer)
|
||||
d1 += 1.62D;
|
||||
double d2 = player.prevPosZ + (player.posZ - player.prevPosZ) * (double) f;
|
||||
Vec3 vec3 = world.getWorldVec3Pool().getVecFromPool(d0, d1, d2);
|
||||
float f3 = MathHelper.cos(-f2 * 0.017453292F - (float) Math.PI);
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package tconstruct.plugins.minefactoryreloaded.harvestables;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import powercrystals.minefactoryreloaded.api.IFactoryGrindable;
|
||||
import powercrystals.minefactoryreloaded.api.MobDrop;
|
||||
import tconstruct.common.TContent;
|
||||
|
||||
public class GrindableHorse implements IFactoryGrindable
|
||||
{
|
||||
@Override
|
||||
public Class<?> getGrindableEntity ()
|
||||
{
|
||||
return EntityHorse.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MobDrop> grind (World world, EntityLivingBase entity, Random random)
|
||||
{
|
||||
List<MobDrop> drops = new ArrayList<MobDrop>();
|
||||
|
||||
drops.add(new MobDrop(10, new ItemStack(TContent.materials, random.nextInt(4) + 1, 36)));
|
||||
|
||||
return drops;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean processEntity (EntityLivingBase entity)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package tconstruct.plugins.minefactoryreloaded;
|
||||
|
||||
import powercrystals.minefactoryreloaded.api.FactoryRegistry;
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.plugins.minefactoryreloaded.harvestables.GrindableHorse;
|
||||
import tconstruct.plugins.minefactoryreloaded.harvestables.HarvestableOreBerry;
|
||||
|
||||
public class mfrRegistering
|
||||
@@ -10,6 +11,6 @@ public class mfrRegistering
|
||||
{
|
||||
FactoryRegistry.registerHarvestable(new HarvestableOreBerry(TContent.oreBerry.blockID, TContent.oreBerries.itemID, 0));
|
||||
FactoryRegistry.registerHarvestable(new HarvestableOreBerry(TContent.oreBerrySecond.blockID, TContent.oreBerries.itemID, 4));
|
||||
|
||||
FactoryRegistry.registerGrindable(new GrindableHorse());
|
||||
}
|
||||
}
|
||||
@@ -133,7 +133,9 @@ public class PHConstruct
|
||||
moltenEmerald = config.getBlock("Molten Emerald", 3216).getInt(3216);
|
||||
blood = config.getBlock("Liquid Cow", 3217).getInt(3217);
|
||||
moltenEnder = config.getBlock("Molten Ender", 3218).getInt(3218);
|
||||
|
||||
|
||||
glueBlock = config.getBlock("Glue Block", 3219).getInt(3219);
|
||||
glueFluidBlock = config.getBlock("Glue Fluid Block", 3220).getInt(3220);
|
||||
|
||||
// signalBus = config.getBlock("Signal Bus", 3221).getInt(3221);
|
||||
// signalTerminal = config.getBlock("Signal Terminal", 3222).getInt(3222);
|
||||
@@ -162,7 +164,6 @@ public class PHConstruct
|
||||
woodCrafterSlab = config.getBlock("Crafting Slab", 3243).getInt(3243);
|
||||
woolSlab1 = config.getBlock("Wool Slab 1", 3244).getInt(3244);
|
||||
woolSlab2 = config.getBlock("Wool Slab 2", 3245).getInt(3245);
|
||||
glueBlock = config.getBlock("Glue Block", 3256).getInt(3256);
|
||||
castingChannel = config.getBlock("Casting Channel", 3249).getInt(3249);
|
||||
|
||||
slimePoolBlue = config.getBlock("Liquid Blue Slime", 3235).getInt(3235);
|
||||
@@ -486,6 +487,10 @@ public class PHConstruct
|
||||
public static int slimeChannel;
|
||||
public static int slimePad;
|
||||
|
||||
// Glue
|
||||
public static int glueFluidBlock;
|
||||
public static int glueBlock;
|
||||
|
||||
//Decoration
|
||||
public static int stoneTorch;
|
||||
public static int stoneLadder;
|
||||
@@ -497,7 +502,6 @@ public class PHConstruct
|
||||
public static int meatBlock;
|
||||
public static int woolSlab1;
|
||||
public static int woolSlab2;
|
||||
public static int glueBlock;
|
||||
|
||||
//Patterns and misc
|
||||
public static int blankPattern;
|
||||
@@ -717,6 +721,7 @@ public class PHConstruct
|
||||
//Looks
|
||||
public static int connectedTexturesMode;
|
||||
public static File cfglocation;
|
||||
|
||||
//dimensionblacklist
|
||||
public static boolean slimeIslGenDim0Only;
|
||||
public static int[] cfgDimBlackList;
|
||||
|
||||
Reference in new issue
Block a user