Need More logic for the forge, double check item renderers, double check lang file, clean out old IR files, start on the forge hammer and inlay hammer
This commit is contained in:
@@ -16,15 +16,12 @@ public static final Hashtable<Block, Integer> blockToStore = new Hashtable <Bloc
|
||||
put(ModBlocks.crucibleLapis, 3);
|
||||
put(ModBlocks.crucibleRedstone, 4);
|
||||
put(ModBlocks.crucibleWootz, 5);
|
||||
//put(ModBlocks.lapisIngot, 6);
|
||||
//put(ModBlocks.redstoneIngot, 7);
|
||||
//put(ModBlocks.damascusIngot, 8);
|
||||
//put(ModBlocks.myIronIngot, 9);
|
||||
//put(ModBlocks.hotIronBlock, 10);
|
||||
//put(ModBlocks.hotDamascusIngot, 11);
|
||||
//put(ModBlocks.hotIronPlate, 12);
|
||||
//put(ModBlocks.hotLapisIngot, 13);
|
||||
//put(ModBlocks.hotRedstoneIngot, 14);
|
||||
put(ModBlocks.lapisIngot, 6);
|
||||
put(ModBlocks.redstoneIngot, 7);
|
||||
put(ModBlocks.damascus, 8);
|
||||
put(ModBlocks.refinedIron, 9);
|
||||
put(ModBlocks.ironPlate, 10);
|
||||
|
||||
}};
|
||||
|
||||
public static final Hashtable<Integer, Block> blockToGet = new Hashtable <Integer, Block>(){{
|
||||
@@ -34,11 +31,11 @@ public static final Hashtable<Integer, Block> blockToGet = new Hashtable <Intege
|
||||
put(3, ModBlocks.crucibleLapis);
|
||||
put(4, ModBlocks.crucibleRedstone);
|
||||
put(5, ModBlocks.crucibleWootz);
|
||||
//put(6, ModBlocks.lapisIngot);
|
||||
//put(7, ModBlocks.redstoneIngot);
|
||||
//put(8, ModBlocks.damascusIngot);
|
||||
//put(9, ModBlocks.myIronIngot);
|
||||
//put(10, ModBlocks.hotIronBlock);
|
||||
put(6, ModBlocks.lapisIngot);
|
||||
put(7, ModBlocks.redstoneIngot);
|
||||
put(8, ModBlocks.damascus);
|
||||
put(9, ModBlocks.refinedIron);
|
||||
put(10, ModBlocks.ironPlate);
|
||||
//put(11, ModBlocks.hotDamascusIngot);
|
||||
//put(12, ModBlocks.hotIronPlate);
|
||||
//put(13, ModBlocks.hotLapisIngot);
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
package com.kitsu.medievalcraft.item.craftingtools;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.kitsu.medievalcraft.Main;
|
||||
import com.kitsu.medievalcraft.block.crucible.CrucibleBase;
|
||||
import com.kitsu.medievalcraft.item.TongsDamageTable;
|
||||
import com.kitsu.medievalcraft.tileents.crucible.TileCrucibleBase;
|
||||
import com.kitsu.medievalcraft.tileents.crucible.TileCrucibleIronOre;
|
||||
import com.kitsu.medievalcraft.util.CustomTab;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.kitsu.medievalcraft.Main;
|
||||
import com.kitsu.medievalcraft.block.crucible.CrucibleBase;
|
||||
import com.kitsu.medievalcraft.block.ingots.IngotBase;
|
||||
import com.kitsu.medievalcraft.item.TongsDamageTable;
|
||||
import com.kitsu.medievalcraft.tileents.crucible.TileCrucibleBase;
|
||||
import com.kitsu.medievalcraft.tileents.ingots.TileIngotBase;
|
||||
import com.kitsu.medievalcraft.util.CustomTab;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class SlottedTongs extends Item {
|
||||
|
||||
private String name = "slottedTongs";
|
||||
@@ -43,9 +42,16 @@ public class SlottedTongs extends Item {
|
||||
if(stack.getItemDamage()!=0){
|
||||
if(world.getBlock(x, y+1, z).equals(Blocks.air)){
|
||||
world.setBlock(x, y+1, z, TongsDamageTable.blockToGet.get(stack.getItemDamage()), 0, 2);
|
||||
TileCrucibleBase tile = (TileCrucibleBase) world.getTileEntity(x, y+1, z);
|
||||
tile.hot=true;
|
||||
stack.setItemDamage(0);
|
||||
if(world.getBlock(x, y+1, z) instanceof CrucibleBase){
|
||||
TileCrucibleBase tile = (TileCrucibleBase) world.getTileEntity(x, y+1, z);
|
||||
tile.hot=true;
|
||||
stack.setItemDamage(0);
|
||||
}
|
||||
if(world.getBlock(x, y+1, z) instanceof IngotBase){
|
||||
TileIngotBase tile = (TileIngotBase) world.getTileEntity(x, y+1, z);
|
||||
tile.hot=true;
|
||||
stack.setItemDamage(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,9 +64,14 @@ public class SlottedTongs extends Item {
|
||||
world.setBlock(x, y, z, Blocks.air, 0, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(world.isRemote){
|
||||
//System.out.println(stack.getItemDamage());
|
||||
if((world.getBlock(x, y, z) instanceof IngotBase) && (player.isSneaking())){
|
||||
TileIngotBase tile = (TileIngotBase) world.getTileEntity(x, y, z);
|
||||
Block tempBlock = world.getBlock(x, y, z);
|
||||
if(tile.hot==true){
|
||||
this.setDamage(stack, TongsDamageTable.blockToStore.get(tempBlock));
|
||||
world.setBlock(x, y, z, Blocks.air, 0, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user