removed a lot of blocks removed block ingots and made them all items

This commit is contained in:
Mohammad-Ali Minaie
2018-04-07 23:24:13 -04:00
parent 024360389e
commit b593173489
50 changed files with 984 additions and 394 deletions

View File

@@ -1,5 +1,6 @@
package nmd.primal.forgecraft.blocks.Anvil; package nmd.primal.forgecraft.blocks.Anvil;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
@@ -8,7 +9,9 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import nmd.primal.core.api.PrimalAPI;
import nmd.primal.core.common.items.tools.Gallagher; import nmd.primal.core.common.items.tools.Gallagher;
import nmd.primal.forgecraft.init.ModBlocks;
import nmd.primal.forgecraft.init.ModItems; import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.tiles.TileAnvil; import nmd.primal.forgecraft.tiles.TileAnvil;
@@ -30,45 +33,74 @@ public class AnvilStone extends AnvilBase {
if (!world.isRemote) { if (!world.isRemote) {
ItemStack pItem = player.inventory.getCurrentItem(); ItemStack pItem = player.inventory.getCurrentItem();
TileAnvil tile = (TileAnvil) world.getTileEntity(pos); TileAnvil tile = (TileAnvil) world.getTileEntity(pos);
ItemStack tempironball = new ItemStack(ModItems.ironingotball, 1);
tempironball.getTagCompound().setBoolean("hot", true);
ItemStack tempironcleanball = new ItemStack(ModItems.ironcleaningotball, 1);
tempironcleanball.getTagCompound().setBoolean("hot", true);
ItemStack tempsteelball = new ItemStack(ModItems.steelingotball, 1);
tempsteelball.getTagCompound().setBoolean("hot", true);
ItemStack tempwootzball = new ItemStack(ModItems.wootzingotball, 1);
tempwootzball.getTagCompound().setBoolean("hot", true);
ItemStack tempironchunk = new ItemStack(ModItems.ironchunk, 1);
tempironchunk.getTagCompound().setBoolean("hot", true);
ItemStack tempironcleanchunk = new ItemStack(ModItems.ironcleanchunk, 1);
tempironcleanchunk.getTagCompound().setBoolean("hot", true);
ItemStack tempsteelchunk = new ItemStack(ModItems.steelchunk, 1);
tempsteelchunk.getTagCompound().setBoolean("hot", true);
ItemStack tempwootzchunk = new ItemStack(ModItems.wootzchunk, 1);
tempwootzchunk.getTagCompound().setBoolean("hot", true);
if (tile != null) { if (tile != null) {
if ((pItem.getItem() instanceof Gallagher) || (pItem.getItem() == ModItems.forgehammer)) { if ((pItem.getItem() instanceof Gallagher) || (pItem.getItem() == ModItems.forgehammer)) {
if(tile.getSlotStack(12).getItem().equals(ModItems.ironingotballhot) ){ if(tile.getSlotStack(12).getItem().equals(tempironball) ){
tile.setSlotStack(6, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(6, tempironchunk);
tile.setSlotStack(7, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(7, tempironchunk);
tile.setSlotStack(8, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(8, tempironchunk);
tile.setSlotStack(11, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(11, tempironchunk);
tile.setSlotStack(12, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(12, tempironchunk);
tile.setSlotStack(13, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(13, tempironchunk);
tile.setSlotStack(16, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(16, tempironchunk);
tile.setSlotStack(17, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(17, tempironchunk);
tile.setSlotStack(18, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(18, tempironchunk);
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
} }
if(tile.getSlotStack(12).getItem().equals(ModItems.ironcleaningotballhot) ){ if(tile.getSlotStack(12).getItem().equals(tempironcleanball) ){
tile.setSlotStack(6, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(6, tempironcleanchunk);
tile.setSlotStack(7, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(7, tempironcleanchunk);
tile.setSlotStack(8, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(8, tempironcleanchunk);
tile.setSlotStack(11, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(11, tempironcleanchunk);
tile.setSlotStack(12, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(12, tempironcleanchunk);
tile.setSlotStack(13, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(13, tempironcleanchunk);
tile.setSlotStack(16, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(16, tempironcleanchunk);
tile.setSlotStack(17, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(17, tempironcleanchunk);
tile.setSlotStack(18, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(18, tempironcleanchunk);
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
} }
if(tile.getSlotStack(12).getItem().equals(ModItems.steelingotballhot) ){ if(tile.getSlotStack(12).getItem().equals(tempsteelball) ){
tile.setSlotStack(6, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(6, tempsteelchunk);
tile.setSlotStack(7, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(7, tempsteelchunk);
tile.setSlotStack(8, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(8, tempsteelchunk);
tile.setSlotStack(11, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(11, tempsteelchunk);
tile.setSlotStack(12, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(12, tempsteelchunk);
tile.setSlotStack(13, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(13, tempsteelchunk);
tile.setSlotStack(16, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(16, tempsteelchunk);
tile.setSlotStack(17, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(17, tempsteelchunk);
tile.setSlotStack(18, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(18, tempsteelchunk);
} }
if(tile.getSlotStack(12).getItem().equals(ModItems.wootzingotballhot) ){ if(tile.getSlotStack(12).getItem().equals(tempwootzball) ){
//TODO Wootz chunks tile.setSlotStack(6, tempwootzchunk);
tile.setSlotStack(7, tempwootzchunk);
tile.setSlotStack(8, tempwootzchunk);
tile.setSlotStack(11, tempwootzchunk);
tile.setSlotStack(12, tempwootzchunk);
tile.setSlotStack(13, tempwootzchunk);
tile.setSlotStack(16, tempwootzchunk);
tile.setSlotStack(17, tempwootzchunk);
tile.setSlotStack(18, tempwootzchunk);
} }
} }
if ((pItem.getItem() instanceof Gallagher) || (pItem.getItem() == ModItems.forgehammer)) { if ((pItem.getItem() instanceof Gallagher) || (pItem.getItem() == ModItems.forgehammer)) {

View File

@@ -129,19 +129,24 @@ public class Crucible extends Block {
private Item getItemFromName(String name){ private Item getItemFromName(String name){
if(name.equals("tile.coolironcrucible")){ if(name.equals("tile.coolironcrucible")){
return Item.getItemFromBlock(ModBlocks.ironball); //return Item.getItemFromBlock(ModBlocks.ironball);
return null;
} else if (name.equals("tile.rawironcrucible")){ } else if (name.equals("tile.rawironcrucible")){
return Item.getItemFromBlock(Blocks.IRON_ORE); return Item.getItemFromBlock(Blocks.IRON_ORE);
} else if (name.equals("tile.coolcleanironcrucible")){ } else if (name.equals("tile.coolcleanironcrucible")){
return Item.getItemFromBlock(ModBlocks.ironcleanball); //return Item.getItemFromBlock(ModBlocks.ironcleanball);
return null;
} else if (name.equals("tile.rawcleanironcrucible")){ } else if (name.equals("tile.rawcleanironcrucible")){
return PrimalAPI.Items.IRON_DUST; return PrimalAPI.Items.IRON_DUST;
} else if (name.equals("tile.coolsteelcrucible")){ } else if (name.equals("tile.coolsteelcrucible")){
return Item.getItemFromBlock(ModBlocks.steelball); //return Item.getItemFromBlock(ModBlocks.steelball);
return null;
} else if (name.equals("tile.rawsteelcrucible")){ } else if (name.equals("tile.rawsteelcrucible")){
return Item.getItemFromBlock(ModBlocks.ironcleanball); //return Item.getItemFromBlock(ModBlocks.ironcleanball);
return null;
} else if (name.equals("tile.coolwootzcrucible")){ } else if (name.equals("tile.coolwootzcrucible")){
return Item.getItemFromBlock(ModBlocks.wootzball); //return Item.getItemFromBlock(ModBlocks.wootzball);
return null;
} else if (name.equals("tile.rawcleanironcrucible")){ } else if (name.equals("tile.rawcleanironcrucible")){
return PrimalAPI.Items.IRON_DUST; return PrimalAPI.Items.IRON_DUST;
}else if (name.equals("tile.emptycruciblecracked")){ }else if (name.equals("tile.emptycruciblecracked")){

View File

@@ -28,6 +28,8 @@ import nmd.primal.core.api.PrimalAPI;
import nmd.primal.core.common.helper.PlayerHelper; import nmd.primal.core.common.helper.PlayerHelper;
import nmd.primal.core.common.recipes.FireSource; import nmd.primal.core.common.recipes.FireSource;
import nmd.primal.forgecraft.ModInfo; import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.items.BaseMultiItem;
import nmd.primal.forgecraft.items.SlottedTongs;
import nmd.primal.forgecraft.items.parts.ToolPart; import nmd.primal.forgecraft.items.parts.ToolPart;
import nmd.primal.forgecraft.tiles.TileForge; import nmd.primal.forgecraft.tiles.TileForge;
@@ -95,6 +97,7 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider{
ItemStack fuelItem = tile.getSlotStack(0); ItemStack fuelItem = tile.getSlotStack(0);
//System.out.println(pItem.getItem().getRegistryName().toString()); //System.out.println(pItem.getItem().getRegistryName().toString());
/*********************** /***********************
FUEL SLOT CODE FUEL SLOT CODE
***********************/ ***********************/
@@ -178,11 +181,12 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider{
}*/ }*/
if (Block.getBlockFromItem(pItem.getItem()) instanceof IngotBall) { if (pItem.getItem() instanceof BaseMultiItem) {
//System.out.println("Activating"); //System.out.println("Activating");
for (int i = 2; i <= tile.getSlotListSize(); i++) { for (int i = 2; i <= tile.getSlotListSize(); i++) {
if (tile.getSlotStack(i).isEmpty()) { if (tile.getSlotStack(i).isEmpty()) {
tile.setSlotStack(i, new ItemStack(pItem.getItem(), 1)); ItemStack tempItem = pItem.copy();
tile.setSlotStack(i,tempItem);
pItem.shrink(1); pItem.shrink(1);
return true; return true;
} }
@@ -208,7 +212,6 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider{
return true; return true;
} }
} }
} }
} }
//System.out.println(tile.getSlotStack(0)); //System.out.println(tile.getSlotStack(0));

View File

@@ -1,5 +1,6 @@
package nmd.primal.forgecraft.blocks; package nmd.primal.forgecraft.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDynamicLiquid; import net.minecraft.block.BlockDynamicLiquid;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.IProperty;
@@ -9,13 +10,25 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.init.SoundEvents; import net.minecraft.init.SoundEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.SoundCategory; import net.minecraft.util.SoundCategory;
import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
import nmd.primal.core.api.PrimalAPI; import nmd.primal.core.api.PrimalAPI;
import nmd.primal.core.api.interfaces.IPickup;
import nmd.primal.core.common.helper.PlayerHelper;
import nmd.primal.core.common.items.tools.Gallagher;
import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.blocks.Anvil.AnvilBase;
import nmd.primal.forgecraft.blocks.Anvil.AnvilStone;
import nmd.primal.forgecraft.init.ModBlocks;
import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.tiles.TileAnvil;
import java.util.Random; import java.util.Random;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
@@ -28,30 +41,35 @@ public class IngotBall extends BlockCustomBase {
protected static AxisAlignedBB boundBoxLarge = new AxisAlignedBB(6/16D, 0.0D, 6/16D, 10/16D, 4/16D, 10/16D); protected static AxisAlignedBB boundBoxLarge = new AxisAlignedBB(6/16D, 0.0D, 6/16D, 10/16D, 4/16D, 10/16D);
protected static AxisAlignedBB boundBoxSmall = new AxisAlignedBB(7/16D, 0.0D, 7/16D, 9/16D, 2/16D, 9/16D); protected static AxisAlignedBB boundBoxSmall = new AxisAlignedBB(7/16D, 0.0D, 7/16D, 9/16D, 2/16D, 9/16D);
//public static final PropertyBool ACTIVE = PropertyBool.create("active"); //public static final PropertyBool ACTIVE = PropertyBool.create("active");
private String type; private String AABBsize;
public IngotBall(Material material, String registryName, Float hardness, String type){ public IngotBall(Material material, String registryName, Float hardness, String size){
super(material, registryName, hardness); super(material, registryName, hardness);
this.type = type;
this.setTickRandomly(true); this.setTickRandomly(true);
this.AABBsize = size;
setCreativeTab(ModInfo.TAB_FORGECRAFT);
setDefaultState(this.blockState.getBaseState().withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)));
} }
@Override @Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{ {
if(this.type.equals("chunk")){
if(this.AABBsize.equals("small")){
return boundBoxSmall; return boundBoxSmall;
}else }else
return boundBoxLarge; return boundBoxLarge;
} }
@Override @Override
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
{ {
//System.out.println(stack.getItemDamage()); System.out.println("Print Something");
worldIn.setBlockState(pos, state.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)), 2); System.out.println(stack.getTagCompound());
//worldIn.setBlockState(pos, state.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)), 2);
//System.out.println(state.getValue(ACTIVE)); //System.out.println(state.getValue(ACTIVE));
} }

View File

@@ -2,6 +2,7 @@ package nmd.primal.forgecraft.compat;
import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.OreDictionary;
import nmd.primal.forgecraft.init.ModBlocks; import nmd.primal.forgecraft.init.ModBlocks;
import nmd.primal.forgecraft.init.ModItems;
/** /**
* Created by mminaie on 2/7/17. * Created by mminaie on 2/7/17.
@@ -19,12 +20,12 @@ public class ModDictionary {/***************************************************
{ {
//if (ModConfig.COMPATIBILITY_DICTIONARY_MAGMACREAM_AS_SLIME) //if (ModConfig.COMPATIBILITY_DICTIONARY_MAGMACREAM_AS_SLIME)
//OreDictionary.registerOre("clayball", Items.CLAY_BALL); //OreDictionary.registerOre("clayball", Items.CLAY_BALL);
OreDictionary.registerOre("ingotIron", ModBlocks.ironball); OreDictionary.registerOre("ingotIron", ModItems.ironingotball);
OreDictionary.registerOre("nuggetIron", ModBlocks.ironchunk); OreDictionary.registerOre("nuggetIron", ModItems.ironchunk);
OreDictionary.registerOre("ingotIron", ModBlocks.ironcleanball); OreDictionary.registerOre("ingotIron", ModItems.ironcleaningotball);
OreDictionary.registerOre("nuggetIron", ModBlocks.ironcleanchunk); OreDictionary.registerOre("nuggetIron", ModItems.ironcleanchunk);
OreDictionary.registerOre("ingotSteel", ModBlocks.steelball); OreDictionary.registerOre("ingotSteel", ModItems.steelingotball);
OreDictionary.registerOre("nuggetSteel", ModBlocks.steelchunk); OreDictionary.registerOre("nuggetSteel", ModItems.steelchunk);

View File

@@ -7,6 +7,7 @@ import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.inventory.ItemStackHelper;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@@ -18,6 +19,8 @@ import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.registry.ForgeRegistries; import net.minecraftforge.fml.common.registry.ForgeRegistries;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.core.api.PrimalAPI;
import nmd.primal.core.common.helper.PlayerHelper;
import nmd.primal.core.common.items.tools.Gallagher; import nmd.primal.core.common.items.tools.Gallagher;
import nmd.primal.forgecraft.blocks.Anvil.AnvilBase; import nmd.primal.forgecraft.blocks.Anvil.AnvilBase;
import nmd.primal.forgecraft.blocks.Anvil.AnvilIron; import nmd.primal.forgecraft.blocks.Anvil.AnvilIron;
@@ -75,42 +78,14 @@ public class ModBlocks {
public static Block hotbronzecrucible_emerald; public static Block hotbronzecrucible_emerald;
public static Block hotcookedbronzecrucible_emerald; public static Block hotcookedbronzecrucible_emerald;
public static Block rawironcrucible; //public static Block ironball;
public static Block hotironcrucible; //public static Block ironchunk;
public static Block hotcookedironcrucible; //public static Block ironcleanball;
public static Block coolironcrucible; //public static Block ironcleanchunk;
public static Block failedironcrucible; //public static Block steelball;
public static Block failedironcruciblehot; //public static Block steelchunk;
//public static Block wootzball;
public static Block rawcleanironcrucible; //public static Block wootzchunk;
public static Block hotcleanironcrucible;
public static Block hotcookedcleanironcrucible;
public static Block coolcleanironcrucible;
public static Block failedcleanironcrucible;
public static Block failedcleanironcruciblehot;
public static Block rawsteelcrucible;
public static Block hotsteelcrucible;
public static Block hotcookedsteelcrucible;
public static Block coolsteelcrucible;
public static Block failedsteelcrucible;
public static Block failedsteelcruciblehot;
public static Block rawwootzcrucible;
public static Block hotwootzcrucible;
public static Block hotcookedwootzcrucible;
public static Block coolwootzcrucible;
public static Block failedwootzcrucible;
public static Block failedwootzcruciblehot;
public static Block ironball;
public static Block ironchunk;
public static Block ironcleanball;
public static Block ironcleanchunk;
public static Block steelball;
public static Block steelchunk;
public static Block wootzball;
public static Block wootzchunk;
public static Block stoneanvil; public static Block stoneanvil;
public static Block ironanvil; public static Block ironanvil;
@@ -161,40 +136,14 @@ public class ModBlocks {
hotbronzecrucible_emerald = new CrucibleHot(Material.ROCK, "hotbronzecrucible_emerald"); hotbronzecrucible_emerald = new CrucibleHot(Material.ROCK, "hotbronzecrucible_emerald");
hotcookedbronzecrucible_emerald = new CrucibleHot(Material.ROCK, "hotcookedbronzecrucible_emerald"); hotcookedbronzecrucible_emerald = new CrucibleHot(Material.ROCK, "hotcookedbronzecrucible_emerald");
rawironcrucible = new Crucible(Material.ROCK, "rawironcrucible"); /*
hotironcrucible = new CrucibleHot(Material.ROCK, "hotironcrucible"); ironball = new IngotBall(Material.IRON, "ironball", 5.0F, "big") {
hotcookedironcrucible = new CrucibleHot(Material.ROCK, "hotcookedironcrucible");
coolironcrucible = new Crucible(Material.ROCK, "coolironcrucible");
failedironcrucible = new Crucible(Material.ROCK, "failedironcrucible");
failedironcruciblehot = new CrucibleHot(Material.ROCK, "failedironcruciblehot");
rawcleanironcrucible = new Crucible(Material.ROCK, "rawcleanironcrucible");
hotcleanironcrucible = new CrucibleHot(Material.ROCK, "hotcleanironcrucible");
hotcookedcleanironcrucible = new CrucibleHot(Material.ROCK, "hotcookedcleanironcrucible");
coolcleanironcrucible = new Crucible(Material.ROCK, "coolcleanironcrucible");
failedcleanironcrucible = new Crucible(Material.ROCK, "failedcleanironcrucible");
failedcleanironcruciblehot = new Crucible(Material.ROCK, "failedcleanironcruciblehot");
rawsteelcrucible = new Crucible(Material.ROCK, "rawsteelcrucible");
hotsteelcrucible = new CrucibleHot(Material.ROCK, "hotsteelcrucible");
hotcookedsteelcrucible = new CrucibleHot(Material.ROCK, "hotcookedsteelcrucible");
coolsteelcrucible = new Crucible(Material.ROCK, "coolsteelcrucible");
failedsteelcrucible = new Crucible(Material.ROCK, "failedsteelcrucible");
failedsteelcruciblehot = new Crucible(Material.ROCK, "failedsteelcruciblehot");
rawwootzcrucible = new Crucible(Material.ROCK, "rawwootzcrucible");
hotwootzcrucible = new CrucibleHot(Material.ROCK, "hotwootzcrucible");
hotcookedwootzcrucible = new CrucibleHot(Material.ROCK, "hotcookedwootzcrucible");
coolwootzcrucible = new Crucible(Material.ROCK, "coolwootzcrucible");
failedwootzcrucible = new Crucible(Material.ROCK, "failedwootzcrucible");
failedwootzcruciblehot = new Crucible(Material.ROCK, "failedwootzcruciblehot");
ironball = new IngotBall(Material.IRON, "ironball", 5.0F, "ingot") {
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz)
{ {
if(!world.isRemote){ if(!world.isRemote){
Item pItem = player.getHeldItem(hand).getItem(); Item pItem = player.getHeldItem(hand).getItem();
ItemStack pstack = player.getHeldItemMainhand();
BlockPos belowPos = pos.down(); BlockPos belowPos = pos.down();
//System.out.println("Activating"); //System.out.println("Activating");
if (pItem instanceof Gallagher && world.getBlockState(belowPos).getBlock().equals(Blocks.STONE)) { if (pItem instanceof Gallagher && world.getBlockState(belowPos).getBlock().equals(Blocks.STONE)) {
@@ -205,14 +154,12 @@ public class ModBlocks {
//CommonUtils.spawnItemEntityFromWorld(world, pos, new ItemStack(ModBlocks.stoneanvil, 1)); //CommonUtils.spawnItemEntityFromWorld(world, pos, new ItemStack(ModBlocks.stoneanvil, 1));
return true; return true;
} }
/*if (pItem instanceof ForgeHammer && world.getBlockState(belowPos).getBlock().equals(Blocks.IRON_BLOCK)) { if (pstack.isEmpty()) {
player.swingArm(hand); System.out.println(state);
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2); PlayerHelper.playerTakeItem(world, pos, EnumFacing.DOWN, player, player.getActiveHand(), this.getItem(world, pos, state));
world.setBlockState(belowPos, ModBlocks.ironanvil.getDefaultState().withProperty(AnvilStone.FACING, player.getHorizontalFacing()), 2); world.setBlockState(pos, Blocks.AIR.getDefaultState(), 3);
world.playEvent(1031, pos, 0);
//CommonUtils.spawnItemEntityFromWorld(world, pos, new ItemStack(ModBlocks.stoneanvil, 1));
return true; return true;
}*/ }
if (pItem instanceof Gallagher || pItem.equals(ModItems.forgehammer)) { if (pItem instanceof Gallagher || pItem.equals(ModItems.forgehammer)) {
if(world.getBlockState(belowPos).getBlock() instanceof AnvilBase) { if(world.getBlockState(belowPos).getBlock() instanceof AnvilBase) {
@@ -230,26 +177,29 @@ public class ModBlocks {
) { ) {
player.swingArm(hand); player.swingArm(hand);
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2); world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);
tile.setSlotStack(6, new ItemStack(ModItems.ironchunkhot, 1));
tile.setSlotStack(7, new ItemStack(ModItems.ironchunkhot, 1)); Block tempBlock = ModBlocks.ironchunk;
tile.setSlotStack(8, new ItemStack(ModItems.ironchunkhot, 1)); tempBlock.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true);
tile.setSlotStack(11, new ItemStack(ModItems.ironchunkhot, 1));
tile.setSlotStack(12, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(6, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(7, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(8, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(11, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(ModItems.ironchunkhot, 1)); tile.setSlotStack(12, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(tempBlock, 1));
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
return true; return true;
} }
} }
} }
} }
return false; return false;
} }
}; };
ironcleanball = new IngotBall(Material.IRON, "ironcleanball", 5.0f, "ingot") { ironcleanball = new IngotBall(Material.IRON, "ironcleanball", 5.0f,"big") {
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz)
{ {
@@ -283,15 +233,18 @@ public class ModBlocks {
) { ) {
player.swingArm(hand); player.swingArm(hand);
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2); world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);
tile.setSlotStack(6, new ItemStack(ModItems.ironcleanchunkhot, 1));
tile.setSlotStack(7, new ItemStack(ModItems.ironcleanchunkhot, 1)); Block tempBlock = ModBlocks.ironcleanchunk;
tile.setSlotStack(8, new ItemStack(ModItems.ironcleanchunkhot, 1)); tempBlock.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true);
tile.setSlotStack(11, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(6, new ItemStack(tempBlock, 1));
tile.setSlotStack(12, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(7, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(8, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(11, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(12, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(ModItems.ironcleanchunkhot, 1)); tile.setSlotStack(13, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(tempBlock, 1));
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
return true; return true;
} }
@@ -301,8 +254,8 @@ public class ModBlocks {
} }
return false; return false;
} }
}; // clean_iron_ingot ironcleanball.json ironcleanballhot.json - done };
steelball = new IngotBall(Material.IRON, "steelball", 6.0f, "ingot"){ steelball = new IngotBall(Material.IRON, "steelball", 6.0f,"big"){
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz)
{ {
@@ -334,16 +287,20 @@ public class ModBlocks {
tile.getSlotStack(18).isEmpty() tile.getSlotStack(18).isEmpty()
) { ) {
player.swingArm(hand); player.swingArm(hand);
Block tempBlock = ModBlocks.steelchunk;
tempBlock.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true);
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2); world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);
tile.setSlotStack(6, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(6, new ItemStack(tempBlock, 1));
tile.setSlotStack(7, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(7, new ItemStack(tempBlock, 1));
tile.setSlotStack(8, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(8, new ItemStack(tempBlock, 1));
tile.setSlotStack(11, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(11, new ItemStack(tempBlock, 1));
tile.setSlotStack(12, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(12, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(13, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(16, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(17, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(ModItems.steelchunkhot, 1)); tile.setSlotStack(18, new ItemStack(tempBlock, 1));
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
return true; return true;
} }
@@ -353,8 +310,8 @@ public class ModBlocks {
} }
return false; return false;
} }
}; // steel_ingot steelball.json steelballhot.json };
wootzball = new IngotBall(Material.IRON, "wootzball", 6.0f, "ingot") { wootzball = new IngotBall(Material.IRON, "wootzball", 6.0f,"big") {
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz)
{ {
@@ -387,15 +344,19 @@ public class ModBlocks {
) { ) {
player.swingArm(hand); player.swingArm(hand);
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2); world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);
tile.setSlotStack(6, new ItemStack(ModItems.wootzchunkhot, 1));
tile.setSlotStack(7, new ItemStack(ModItems.wootzchunkhot, 1)); Block tempBlock = ModBlocks.wootzchunk;
tile.setSlotStack(8, new ItemStack(ModItems.wootzchunkhot, 1)); tempBlock.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true);
tile.setSlotStack(11, new ItemStack(ModItems.wootzchunkhot, 1));
tile.setSlotStack(12, new ItemStack(ModItems.wootzchunkhot, 1)); tile.setSlotStack(6, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(ModItems.wootzchunkhot, 1)); tile.setSlotStack(7, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(ModItems.wootzchunkhot, 1)); tile.setSlotStack(8, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(ModItems.wootzchunkhot, 1)); tile.setSlotStack(11, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(ModItems.wootzchunkhot, 1)); tile.setSlotStack(12, new ItemStack(tempBlock, 1));
tile.setSlotStack(13, new ItemStack(tempBlock, 1));
tile.setSlotStack(16, new ItemStack(tempBlock, 1));
tile.setSlotStack(17, new ItemStack(tempBlock, 1));
tile.setSlotStack(18, new ItemStack(tempBlock, 1));
world.playEvent(1031, pos, 0); world.playEvent(1031, pos, 0);
return true; return true;
} }
@@ -405,12 +366,13 @@ public class ModBlocks {
} }
return false; return false;
} }
}; //wootz_ingot wootzball.json wootzballhot.json };
ironchunk = new IngotBall(Material.IRON, "ironchunk", 5.0F, "chunk"); ironchunk = new IngotBall(Material.IRON, "ironchunk", 5.0F, "small");
ironcleanchunk = new IngotBall(Material.IRON, "ironcleanchunk", 5.0F, "chunk"); //Lyle to make assets clean_iron_ingot, blockstate\ironcleanchunk.json, item\ironcleanchunk.json, item\ironcleanchunkhot.json - done ironcleanchunk = new IngotBall(Material.IRON, "ironcleanchunk", 5.0F, "small");
steelchunk = new IngotBall(Material.IRON, "steelchunk", 6.0f, "chunk"); //steel_ingot steelchunk.json steelchunkhot.json - done steelchunk = new IngotBall(Material.IRON, "steelchunk", 6.0f,"small");
wootzchunk = new IngotBall(Material.IRON, "wootzchunk", 6.0f, "chunk"); //wootz_ingot wootzchunk.json wootzchunkhot.json - done wootzchunk = new IngotBall(Material.IRON, "wootzchunk", 6.0f,"small");
*/
stoneanvil = new AnvilStone(Material.ANVIL, "stoneanvil", 5.0f, true); stoneanvil = new AnvilStone(Material.ANVIL, "stoneanvil", 5.0f, true);
ironanvil = new AnvilIron(Material.ANVIL, "ironanvil", 6.0f, true); ironanvil = new AnvilIron(Material.ANVIL, "ironanvil", 6.0f, true);
@@ -463,45 +425,17 @@ public class ModBlocks {
registerBlockWithItem(hotbronzecrucible_lapis); registerBlockWithItem(hotbronzecrucible_lapis);
registerBlockWithItem(hotcookedbronzecrucible_lapis); registerBlockWithItem(hotcookedbronzecrucible_lapis);
registerBlockWithItem(rawironcrucible); //registerBlockWithItem(ironball);
registerBlockWithItem(hotironcrucible); //registerBlockWithItem(ironchunk);
registerBlockWithItem(hotcookedironcrucible);
registerBlockWithItem(coolironcrucible);
registerBlockWithItem(failedironcrucible);
registerBlockWithItem(failedironcruciblehot);
registerBlockWithItem(rawcleanironcrucible); //registerBlockWithItem(ironcleanball);
registerBlockWithItem(hotcleanironcrucible); //registerBlockWithItem(ironcleanchunk);
registerBlockWithItem(hotcookedcleanironcrucible);
registerBlockWithItem(coolcleanironcrucible);
registerBlockWithItem(failedcleanironcrucible);
registerBlockWithItem(failedcleanironcruciblehot);
registerBlockWithItem(rawsteelcrucible); //registerBlockWithItem(steelball);
registerBlockWithItem(hotsteelcrucible); //registerBlockWithItem(steelchunk);
registerBlockWithItem(hotcookedsteelcrucible);
registerBlockWithItem(coolsteelcrucible);
registerBlockWithItem(failedsteelcrucible);
registerBlockWithItem(failedsteelcruciblehot);
registerBlockWithItem(rawwootzcrucible); //registerBlockWithItem(wootzball);
registerBlockWithItem(hotwootzcrucible); //registerBlockWithItem(wootzchunk);
registerBlockWithItem(hotcookedwootzcrucible);
registerBlockWithItem(coolwootzcrucible);
registerBlockWithItem(failedwootzcrucible);
registerBlockWithItem(failedwootzcruciblehot);
registerBlockWithItem(ironball);
registerBlockWithItem(ironchunk);
registerBlockWithItem(ironcleanball);
registerBlockWithItem(ironcleanchunk);
registerBlockWithItem(steelball);
registerBlockWithItem(steelchunk);
registerBlockWithItem(wootzball);
registerBlockWithItem(wootzchunk);
//registerBlockWithItemSubType(ironball, ironballitemcool, "ironcool"); //registerBlockWithItemSubType(ironball, ironballitemcool, "ironcool");
//registerBlockWithItemSubType(ironball, ironballitemhot, "ironhot"); //registerBlockWithItemSubType(ironball, ironballitemhot, "ironhot");
@@ -555,45 +489,18 @@ public class ModBlocks {
registerRender(hotbronzecrucible_lapis); registerRender(hotbronzecrucible_lapis);
registerRender(hotcookedbronzecrucible_lapis); registerRender(hotcookedbronzecrucible_lapis);
registerRender(rawironcrucible); //registerRender(ironball);
registerRender(hotironcrucible); //registerRender(ironchunk);
registerRender(hotcookedironcrucible);
registerRender(coolironcrucible);
registerRender(failedironcrucible);
registerRender(failedironcruciblehot);
registerRender(rawcleanironcrucible); //registerRender(ironcleanball);
registerRender(hotcleanironcrucible); //registerRender(ironcleanchunk);
registerRender(hotcookedcleanironcrucible);
registerRender(coolcleanironcrucible);
registerRender(failedcleanironcrucible);
registerRender(failedcleanironcruciblehot);
registerRender(rawsteelcrucible); //registerRender(steelball);
registerRender(hotsteelcrucible); //registerRender(steelchunk);
registerRender(hotcookedsteelcrucible);
registerRender(coolsteelcrucible);
registerRender(failedsteelcrucible);
registerRender(failedsteelcruciblehot);
registerRender(rawwootzcrucible); //registerRender(wootzball);
registerRender(hotwootzcrucible); //registerRender(wootzchunk);
registerRender(hotcookedwootzcrucible);
registerRender(coolwootzcrucible);
registerRender(failedwootzcrucible);
registerRender(failedwootzcruciblehot);
registerRender(ironball);
registerRender(ironchunk);
registerRender(ironcleanball);
registerRender(ironcleanchunk);
registerRender(steelball);
registerRender(steelchunk);
registerRender(wootzball);
registerRender(wootzchunk);
//registerRenderCustom(ironballitemcool, 0, new ModelResourceLocation(ironballitemcool.getUnlocalizedName())); //registerRenderCustom(ironballitemcool, 0, new ModelResourceLocation(ironballitemcool.getUnlocalizedName()));
//registerRenderCustom(ironballitemhot, 1, new ModelResourceLocation(ironballitemhot.getUnlocalizedName())); //registerRenderCustom(ironballitemhot, 1, new ModelResourceLocation(ironballitemhot.getUnlocalizedName()));

View File

@@ -1,5 +1,6 @@
package nmd.primal.forgecraft.init; package nmd.primal.forgecraft.init;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.init.Items; import net.minecraft.init.Items;
import net.minecraft.item.Item; import net.minecraft.item.Item;
@@ -30,7 +31,7 @@ public class ModCrafting{
Ingredient.EMPTY, Ingredient.EMPTY,
Ingredient.EMPTY, Ingredient.EMPTY,
new ItemStack(Blocks.IRON_ORE, 1), new ItemStack(Blocks.IRON_ORE, 1),
new ItemStack(ModBlocks.ironball, 1), new ItemStack(ModItems.ironingotball, 1),
100, 100,
100, 100,
1000); 1000);
@@ -114,7 +115,7 @@ public class ModCrafting{
"X X", "YSY", 'X', Blocks.STONE, 'S', Items.STRING, 'Y', Items.STICK); "X X", "YSY", 'X', Blocks.STONE, 'S', Items.STRING, 'Y', Items.STICK);
/***RAW CRUCIBLES***/ /***RAW CRUCIBLES***/
/*
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible), RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible),
"X","Y", "X","Y",
('X'), "oreIron", ('X'), "oreIron",
@@ -131,6 +132,9 @@ public class ModCrafting{
('X'), new ItemStack(ModBlocks.ironcleanball, 1), ('X'), new ItemStack(ModBlocks.ironcleanball, 1),
('C'), new ItemStack(PrimalAPI.Items.CHARCOAL_HIGH), ('C'), new ItemStack(PrimalAPI.Items.CHARCOAL_HIGH),
('Y'), ModBlocks.emptycrucible); ('Y'), ModBlocks.emptycrucible);
*/
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible), RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
"XCX"," X "," Y ", "XCX"," X "," Y ",
('X'), "dustCopper", ('X'), "dustCopper",
@@ -184,6 +188,7 @@ public class ModCrafting{
('T'), new ItemStack(ModItems.brokenbronzetool, 1), ('T'), new ItemStack(ModItems.brokenbronzetool, 1),
('Y'), new ItemStack(ModBlocks.emptycrucible, 1) ('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
); );
/*
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible, 1), RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible, 1),
"T", "Y", "T", "Y",
('T'), new ItemStack(ModItems.brokenwroughtirontool, 1), ('T'), new ItemStack(ModItems.brokenwroughtirontool, 1),
@@ -204,7 +209,7 @@ public class ModCrafting{
('T'), new ItemStack(ModItems.brokenwootztool, 1), ('T'), new ItemStack(ModItems.brokenwootztool, 1),
('Y'), new ItemStack(ModBlocks.emptycrucible, 1) ('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
); );
*/
/*************************************************************** /***************************************************************
* TOOL CRAFTING RECIPES * TOOL CRAFTING RECIPES
@@ -397,6 +402,7 @@ public class ModCrafting{
0.0f, 0.0f,
0.0f); 0.0f);
/*
//Makes the Hot Iron Crucible //Makes the Hot Iron Crucible
BloomeryCrafting.addRecipe( BloomeryCrafting.addRecipe(
new ItemStack(ModBlocks.rawironcrucible, 1), new ItemStack(ModBlocks.rawironcrucible, 1),
@@ -474,6 +480,7 @@ public class ModCrafting{
0.2f, 0.2f,
0.25f 0.25f
); );
*/
//Makes the Hot Bronze Crucible //Makes the Hot Bronze Crucible
BloomeryCrafting.addRecipe( BloomeryCrafting.addRecipe(
new ItemStack(ModBlocks.rawbronzecrucible, 1), new ItemStack(ModBlocks.rawbronzecrucible, 1),
@@ -671,18 +678,19 @@ public class ModCrafting{
//Makes a Hot Iron Ingot //Makes a Hot Iron Ingot
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.ironball), ModItems.ironingotball,
new ItemStack(ModItems.ironingotballhot, 1), //800, 200
800, new ItemStack(ModItems.ironingotball, 1),
200, 100,
100,
500, 500,
1.0f, 1.0f,
1.0f 1.0f
); );
//Makes a Hot Clean Iron Ingot //Makes a Hot Clean Iron Ingot
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.ironcleanball), ModItems.ironcleaningotball,
new ItemStack(ModItems.ironcleaningotballhot, 1), new ItemStack(ModItems.ironcleaningotball, 1),
900, 900,
250, 250,
500, 500,
@@ -691,8 +699,18 @@ public class ModCrafting{
); );
//Makes a Hot Steel Ingot //Makes a Hot Steel Ingot
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.steelball), ModItems.steelingotball,
new ItemStack(ModItems.steelingotballhot, 1), new ItemStack(ModItems.steelingotball, 1),
1000,
300,
500,
1.0f,
1.0f
);
//Makes a Hot Wootz Ingot
ForgeCrafting.addRecipe(
ModItems.wootzingotball,
new ItemStack(ModItems.wootzingotball, 1),
1000, 1000,
300, 300,
500, 500,
@@ -703,7 +721,7 @@ public class ModCrafting{
// Converts a Vanilla Ingot into ForgeCraft Ingot Ball // Converts a Vanilla Ingot into ForgeCraft Ingot Ball
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Items.IRON_INGOT, Items.IRON_INGOT,
new ItemStack(ModItems.ironingotballhot, 1), new ItemStack(ModItems.ironingotball, 1),
800, 800,
200, 200,
500, 500,
@@ -713,8 +731,8 @@ public class ModCrafting{
//Makes a Hot Iron Chunk //Makes a Hot Iron Chunk
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.ironchunk), ModItems.ironchunk,
new ItemStack(ModItems.ironchunkhot,1), new ItemStack(ModItems.ironchunk,1),
800, 800,
160, 160,
400, 400,
@@ -723,8 +741,8 @@ public class ModCrafting{
); );
//Makes a Hot Clean Iron Chunk //Makes a Hot Clean Iron Chunk
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.ironcleanchunk), ModItems.ironcleanchunk,
new ItemStack(ModItems.ironcleanchunkhot,1), new ItemStack(ModItems.ironcleanchunk,1),
900, 900,
250, 250,
500, 500,
@@ -733,8 +751,19 @@ public class ModCrafting{
); );
//Makes a Hot Steel Chunk //Makes a Hot Steel Chunk
ForgeCrafting.addRecipe( ForgeCrafting.addRecipe(
Item.getItemFromBlock(ModBlocks.steelchunk), ModItems.steelchunk,
new ItemStack(ModItems.steelchunkhot,1), new ItemStack(ModItems.steelchunk,1),
1000,
300,
500,
1.0f,
1.0f
);
//Makes a Hot Wootz Chunk
ForgeCrafting.addRecipe(
ModItems.wootzchunk,
new ItemStack(ModItems.wootzchunk,1),
1000, 1000,
300, 300,
500, 500,
@@ -878,9 +907,10 @@ public class ModCrafting{
******************************************************************************/ ******************************************************************************/
//String empty = ItemStack.EMPTY.getItem().getRegistryName().toString(); //String empty = ItemStack.EMPTY.getItem().getRegistryName().toString();
String hotChunk = ModItems.ironchunkhot.getRegistryName().toString(); String hotChunk = ModItems.ironchunk.getRegistryName().toString();
String hotCleanChunk = ModItems.ironcleanchunkhot.getRegistryName().toString(); String hotCleanChunk = ModItems.ironcleanchunk.getRegistryName().toString();
String hotSteelChunk = ModItems.steelchunkhot.getRegistryName().toString(); String hotSteelChunk = ModItems.steelchunk.getRegistryName().toString();
String hotWootzChunk = ModItems.wootzchunk.getRegistryName().toString();
String diamond = Items.DIAMOND.getRegistryName().toString(); String diamond = Items.DIAMOND.getRegistryName().toString();
String emerald = Items.EMERALD.getRegistryName().toString(); String emerald = Items.EMERALD.getRegistryName().toString();

View File

@@ -43,15 +43,15 @@ public class ModItems {
public static Item stonetongs; public static Item stonetongs;
public static Item castingmud; public static Item castingmud;
public static Item ironingotballhot;
public static Item ironchunkhot;
public static Item ironcleaningotballhot;
public static Item ironcleanchunkhot;
public static Item steelingotballhot;
public static Item steelchunkhot;
public static Item wootzingotballhot;
public static Item wootzchunkhot;
public static Item ironingotball;
public static Item ironchunk;
public static Item ironcleaningotball;
public static Item ironcleanchunk;
public static Item steelingotball;
public static Item steelchunk;
public static Item wootzingotball;
public static Item wootzchunk;
public static Item cast_axe; public static Item cast_axe;
public static Item cast_gladius; public static Item cast_gladius;
@@ -174,30 +174,30 @@ public class ModItems {
/********** /**********
TOOL PARTS TOOL PARTS
**********/ **********/
bronzepickaxehead = new BronzeToolPart("bronzepickaxehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, 41); bronzepickaxehead = new BronzeToolPart("bronzepickaxehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, "pickaxe");
bronzeaxehead = new BronzeToolPart("bronzeaxehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, 42); bronzeaxehead = new BronzeToolPart("bronzeaxehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, "axe");
bronzeshovelhead = new BronzeToolPart("bronzeshovelhead", PrimalAPI.ToolMaterials.TOOL_BRONZE, 43); bronzeshovelhead = new BronzeToolPart("bronzeshovelhead", PrimalAPI.ToolMaterials.TOOL_BRONZE, "shovel");
bronzehoehead = new BronzeToolPart("bronzehoehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, 44); bronzehoehead = new BronzeToolPart("bronzehoehead", PrimalAPI.ToolMaterials.TOOL_BRONZE, "hoe");
pickaxehead = new ToolPart("ironpickaxehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 8); pickaxehead = new ToolPart("ironpickaxehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, "pickaxe");
ironaxehead = new ToolPart("ironaxehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 9); ironaxehead = new ToolPart("ironaxehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, "axe");
ironshovelhead = new ToolPart("ironshovelhead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 10); ironshovelhead = new ToolPart("ironshovelhead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, "shovel");
ironhoehead = new ToolPart("ironhoehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 11); ironhoehead = new ToolPart("ironhoehead", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, "hoe");
cleanironpickaxehead = new ToolPart("cleanironpickaxehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 17); cleanironpickaxehead = new ToolPart("cleanironpickaxehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, "pickaxe");
cleanironaxehead = new ToolPart("cleanironaxehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 18); cleanironaxehead = new ToolPart("cleanironaxehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, "axe");
cleanironshovelhead = new ToolPart("cleanironshovelhead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 19); cleanironshovelhead = new ToolPart("cleanironshovelhead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, "shovel");
cleanironhoehead = new ToolPart("cleanironhoehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 20); cleanironhoehead = new ToolPart("cleanironhoehead", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, "hoe");
steelpickaxehead = new ToolPart("steelpickaxehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 26); steelpickaxehead = new ToolPart("steelpickaxehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, "pickaxe");
steelaxehead = new ToolPart("steelaxehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 27); steelaxehead = new ToolPart("steelaxehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, "axe");
steelshovelhead = new ToolPart("steelshovelhead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 28); steelshovelhead = new ToolPart("steelshovelhead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, "shovel");
steelhoehead = new ToolPart("steelhoehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 29); steelhoehead = new ToolPart("steelhoehead", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, "hoe");
wootzpickaxehead = new ToolPart("wootzpickaxehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 35); wootzpickaxehead = new ToolPart("wootzpickaxehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, "pickaxe");
wootzaxehead = new ToolPart("wootzaxehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 36); wootzaxehead = new ToolPart("wootzaxehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, "axe");
wootzshovelhead = new ToolPart("wootzshovelhead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 37); wootzshovelhead = new ToolPart("wootzshovelhead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, "shovel");
wootzhoehead = new ToolPart("wootzhoehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 38); wootzhoehead = new ToolPart("wootzhoehead", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, "hoe");
/********** /**********
TOOLS TOOLS
@@ -247,14 +247,16 @@ public class ModItems {
/********** /**********
INGOTS AND CHUNKS INGOTS AND CHUNKS
**********/ **********/
ironingotballhot = new BaseMultiItem("ironingothot", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 6);
ironchunkhot = new BaseMultiItem("ironchunkhot", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON, 7); ironingotball = new BaseMultiItem("ironingotball", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON);
ironcleaningotballhot= new BaseMultiItem("ironcleaningotballhot", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 15); ironchunk = new BaseMultiItem("ironchunk", PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON);
ironcleanchunkhot= new BaseMultiItem("ironcleanchunkhot", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON, 16); ironcleaningotball= new BaseMultiItem("ironcleaningotball", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON);
steelingotballhot= new BaseMultiItem("steelingotballhot", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 24); ironcleanchunk= new BaseMultiItem("ironcleanchunk", PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON);
steelchunkhot= new BaseMultiItem("steelchunkhot", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL, 25); steelingotball= new BaseMultiItem("steelingotball", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL);
wootzingotballhot= new BaseMultiItem("wootzingotballhot", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 33); steelchunk= new BaseMultiItem("steelchunk", PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL);
wootzchunkhot= new BaseMultiItem("wootzchunkhot", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL, 34); wootzingotball= new BaseMultiItem("wootzingotball", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL);
wootzchunk= new BaseMultiItem("wootzchunk", PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL);
//forgingmanual = new ItemForgingManual(); //forgingmanual = new ItemForgingManual();
//test = new ItemTest("ironsword"); //test = new ItemTest("ironsword");
@@ -282,14 +284,16 @@ public class ModItems {
ForgeRegistries.ITEMS.register(softcrucible); ForgeRegistries.ITEMS.register(softcrucible);
ForgeRegistries.ITEMS.register(stonetongs); ForgeRegistries.ITEMS.register(stonetongs);
ForgeRegistries.ITEMS.register(forgehammer); ForgeRegistries.ITEMS.register(forgehammer);
ForgeRegistries.ITEMS.register(ironingotballhot);
ForgeRegistries.ITEMS.register(ironchunkhot); ForgeRegistries.ITEMS.register(ironingotball);
ForgeRegistries.ITEMS.register(ironcleaningotballhot); ForgeRegistries.ITEMS.register(ironchunk);
ForgeRegistries.ITEMS.register(ironcleanchunkhot); ForgeRegistries.ITEMS.register(ironcleaningotball);
ForgeRegistries.ITEMS.register(steelingotballhot); ForgeRegistries.ITEMS.register(ironcleanchunk);
ForgeRegistries.ITEMS.register(steelchunkhot); ForgeRegistries.ITEMS.register(steelingotball);
ForgeRegistries.ITEMS.register(wootzingotballhot); ForgeRegistries.ITEMS.register(steelchunk);
ForgeRegistries.ITEMS.register(wootzchunkhot); ForgeRegistries.ITEMS.register(wootzingotball);
ForgeRegistries.ITEMS.register(wootzchunk);
//ForgeRegistries.ITEMS.register(test); //ForgeRegistries.ITEMS.register(test);
/********** /**********
@@ -397,17 +401,20 @@ public class ModItems {
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public static void registerRenders() { public static void registerRenders() {
registerRender(itemnbtcrucible); registerRender(itemnbtcrucible);
//registerRender(itemcrucible); registerRender(slottedtongs);
registerRender(castingmud); registerRender(castingmud);
registerRender(bellowshandle); registerRender(bellowshandle);
registerRender(softcrucible); registerRender(softcrucible);
registerRender(forgehammer); registerRender(forgehammer);
registerRender(ironingotballhot);
registerRender(ironchunkhot);
registerRender(ironcleaningotballhot); registerRender(ironingotball);
registerRender(ironcleanchunkhot); registerRender(ironchunk);
registerRender(steelingotballhot); registerRender(ironcleaningotball);
registerRender(steelchunkhot); registerRender(ironcleanchunk);
registerRender(steelingotball);
registerRender(steelchunk);
//registerRender(test); //registerRender(test);
/********** /**********

View File

@@ -1,6 +1,23 @@
package nmd.primal.forgecraft.items; package nmd.primal.forgecraft.items;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.items.blocks.ItemNBTCrucible;
import nmd.primal.forgecraft.items.parts.ToolPart;
import javax.annotation.Nullable;
/** /**
* Created by mminaie on 2/19/17. * Created by mminaie on 2/19/17.
@@ -8,12 +25,34 @@ import net.minecraft.item.Item;
public class BaseMultiItem extends BaseItem { public class BaseMultiItem extends BaseItem {
private Item.ToolMaterial mat; private Item.ToolMaterial mat;
private int ID;
public BaseMultiItem( String registryName, Item.ToolMaterial material, Integer ID) { public BaseMultiItem( String name, Item.ToolMaterial material) {
super(registryName); super(name);
mat = material; mat = material;
this.ID = ID; this.setMaxStackSize(1);
this.setNoRepair();
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() {
@SideOnly(Side.CLIENT)
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) {
BaseMultiItem item = (BaseMultiItem) stack.getItem();
//TODO get the item name
if (stack.getItem() instanceof BaseMultiItem) {
if(stack.getTagCompound() != null) {
if (!stack.getTagCompound().getBoolean("hot")) {
return 0.0f;
}
if (stack.getTagCompound().getBoolean("hot")) {
return 0.1f;
}
}
}
return 0.0f;
}
});
} }
@@ -21,7 +60,22 @@ public class BaseMultiItem extends BaseItem {
return mat; return mat;
} }
public int getID() { @Override
return ID; public void onCreated(ItemStack item, World worldIn, EntityPlayer playerIn) {
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
item.getTagCompound().setBoolean("hot", false);
}
}
@Override
public void onUpdate(ItemStack item, World world, Entity player, int itemSlot, boolean isSelected) {
//System.out.println(item.getTagCompound());
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
item.getTagCompound().setBoolean("hot", false);
}
} }
} }

View File

@@ -157,6 +157,7 @@ public class ItemStoneTongs extends Item {
/***** /*****
Picks Up Hot Ingots from the Ground Picks Up Hot Ingots from the Ground
*****/ *****/
/*
if (world.getBlockState(pos).getBlock() instanceof BloomeryBase == false) { if (world.getBlockState(pos).getBlock() instanceof BloomeryBase == false) {
if (world.getBlockState(pos).getBlock() instanceof IngotBall) { if (world.getBlockState(pos).getBlock() instanceof IngotBall) {
if(world.getBlockState(pos).getValue(PrimalAPI.States.ACTIVE) == true) { if(world.getBlockState(pos).getValue(PrimalAPI.States.ACTIVE) == true) {
@@ -190,10 +191,10 @@ public class ItemStoneTongs extends Item {
world.setBlockToAir(pos); world.setBlockToAir(pos);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
/* TODO Wootz */ // TODO Wootz
} }
} }
} }*/
/***** /*****
@@ -220,6 +221,7 @@ public class ItemStoneTongs extends Item {
/*************************** /***************************
* Iron * * Iron *
***************************/ ***************************/
/*
if (world.getBlockState(pos).getBlock() == ModBlocks.hotironcrucible) { if (world.getBlockState(pos).getBlock() == ModBlocks.hotironcrucible) {
itemstack.getTagCompound().setInteger("type", 3); itemstack.getTagCompound().setInteger("type", 3);
itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown); itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown);
@@ -238,9 +240,11 @@ public class ItemStoneTongs extends Item {
world.setBlockToAir(pos); world.setBlockToAir(pos);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
*/
/*************************** /***************************
* Clean Iron * * Clean Iron *
***************************/ ***************************/
/*
if (world.getBlockState(pos).getBlock() == ModBlocks.hotcleanironcrucible) { if (world.getBlockState(pos).getBlock() == ModBlocks.hotcleanironcrucible) {
itemstack.getTagCompound().setInteger("type", 12); itemstack.getTagCompound().setInteger("type", 12);
itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown); itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown);
@@ -259,9 +263,11 @@ public class ItemStoneTongs extends Item {
world.setBlockToAir(pos); world.setBlockToAir(pos);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
*/
/*************************** /***************************
* Steel * * Steel *
***************************/ ***************************/
/*
if (world.getBlockState(pos).getBlock() == ModBlocks.hotsteelcrucible) { if (world.getBlockState(pos).getBlock() == ModBlocks.hotsteelcrucible) {
itemstack.getTagCompound().setInteger("type", 21); itemstack.getTagCompound().setInteger("type", 21);
itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown); itemstack.getTagCompound().setInteger("cooldown", tileCrucible.countdown);
@@ -280,6 +286,7 @@ public class ItemStoneTongs extends Item {
world.setBlockToAir(pos); world.setBlockToAir(pos);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
*/
/* TODO Wootz */ /* TODO Wootz */
@@ -386,7 +393,7 @@ public class ItemStoneTongs extends Item {
itemstack.getTagCompound().setInteger("cooldown", 0); itemstack.getTagCompound().setInteger("cooldown", 0);
itemstack.getTagCompound().setInteger("type", 0); itemstack.getTagCompound().setInteger("type", 0);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
case 3: /*case 3:
world.setBlockState(tempPos, ModBlocks.hotironcrucible.getDefaultState(), 2); world.setBlockState(tempPos, ModBlocks.hotironcrucible.getDefaultState(), 2);
TileBaseCrucible tileCrucible3 = (TileBaseCrucible) world.getTileEntity(tempPos); TileBaseCrucible tileCrucible3 = (TileBaseCrucible) world.getTileEntity(tempPos);
tileCrucible3.countdown = itemstack.getTagCompound().getInteger("cooldown"); tileCrucible3.countdown = itemstack.getTagCompound().getInteger("cooldown");
@@ -415,6 +422,7 @@ public class ItemStoneTongs extends Item {
world.setBlockState(tempPos, ModBlocks.ironchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2); world.setBlockState(tempPos, ModBlocks.ironchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2);
itemstack.getTagCompound().setInteger("type", 0); itemstack.getTagCompound().setInteger("type", 0);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
*/
case 8: case 8:
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
case 9: case 9:
@@ -423,7 +431,7 @@ public class ItemStoneTongs extends Item {
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
case 11: case 11:
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
case 12: /*case 12:
world.setBlockState(tempPos, ModBlocks.hotcleanironcrucible.getDefaultState(), 2); world.setBlockState(tempPos, ModBlocks.hotcleanironcrucible.getDefaultState(), 2);
TileBaseCrucible tileCrucible12 = (TileBaseCrucible) world.getTileEntity(tempPos); TileBaseCrucible tileCrucible12 = (TileBaseCrucible) world.getTileEntity(tempPos);
tileCrucible12.countdown = itemstack.getTagCompound().getInteger("cooldown"); tileCrucible12.countdown = itemstack.getTagCompound().getInteger("cooldown");
@@ -452,6 +460,7 @@ public class ItemStoneTongs extends Item {
world.setBlockState(tempPos, ModBlocks.ironcleanchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2); world.setBlockState(tempPos, ModBlocks.ironcleanchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2);
itemstack.getTagCompound().setInteger("type", 0); itemstack.getTagCompound().setInteger("type", 0);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
*/
case 17: case 17:
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
case 18: case 18:
@@ -460,6 +469,7 @@ public class ItemStoneTongs extends Item {
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
case 20: case 20:
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
/*
case 21: case 21:
world.setBlockState(tempPos, ModBlocks.hotsteelcrucible.getDefaultState(), 2); world.setBlockState(tempPos, ModBlocks.hotsteelcrucible.getDefaultState(), 2);
TileBaseCrucible tileCrucible21 = (TileBaseCrucible) world.getTileEntity(tempPos); TileBaseCrucible tileCrucible21 = (TileBaseCrucible) world.getTileEntity(tempPos);
@@ -489,6 +499,7 @@ public class ItemStoneTongs extends Item {
world.setBlockState(tempPos, ModBlocks.steelchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2); world.setBlockState(tempPos, ModBlocks.steelchunk.getDefaultState().withProperty(PrimalAPI.States.ACTIVE, true), 2);
itemstack.getTagCompound().setInteger("type", 0); itemstack.getTagCompound().setInteger("type", 0);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
*/
case 29: case 29:
world.setBlockState(tempPos, ModBlocks.hotbronzecrucible.getDefaultState(), 2); world.setBlockState(tempPos, ModBlocks.hotbronzecrucible.getDefaultState(), 2);
TileBaseCrucible tileCrucible39 = (TileBaseCrucible) world.getTileEntity(tempPos); TileBaseCrucible tileCrucible39 = (TileBaseCrucible) world.getTileEntity(tempPos);
@@ -591,6 +602,7 @@ public class ItemStoneTongs extends Item {
itemstack.getTagCompound().setInteger("type", 2); itemstack.getTagCompound().setInteger("type", 2);
tile.setSlotStack(1, ItemStack.EMPTY); tile.setSlotStack(1, ItemStack.EMPTY);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
/*
} else if (tile.getSlotStack(1).getItem().equals(Item.getItemFromBlock(ModBlocks.hotironcrucible))) { } else if (tile.getSlotStack(1).getItem().equals(Item.getItemFromBlock(ModBlocks.hotironcrucible))) {
itemstack.getTagCompound().setInteger("cooldown", 0); itemstack.getTagCompound().setInteger("cooldown", 0);
itemstack.getTagCompound().setInteger("type", 3); itemstack.getTagCompound().setInteger("type", 3);
@@ -636,6 +648,7 @@ public class ItemStoneTongs extends Item {
itemstack.getTagCompound().setInteger("type", 23); itemstack.getTagCompound().setInteger("type", 23);
tile.setSlotStack(1, ItemStack.EMPTY); tile.setSlotStack(1, ItemStack.EMPTY);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
*/
} else if (tile.getSlotStack(1).getItem().equals(Item.getItemFromBlock(ModBlocks.hotbronzecrucible))) { } else if (tile.getSlotStack(1).getItem().equals(Item.getItemFromBlock(ModBlocks.hotbronzecrucible))) {
itemstack.getTagCompound().setInteger("cooldown", 0); itemstack.getTagCompound().setInteger("cooldown", 0);
itemstack.getTagCompound().setInteger("type", 39); itemstack.getTagCompound().setInteger("type", 39);
@@ -706,7 +719,7 @@ public class ItemStoneTongs extends Item {
/***** /*****
Pulls the Tool Parts from the Forge Pulls the Tool Parts from the Forge
*****/ *****/
if(itemstack.getTagCompound().getInteger("type") == 0){ /*if(itemstack.getTagCompound().getInteger("type") == 0){
if (world.getBlockState(pos).getBlock() instanceof Forge) { if (world.getBlockState(pos).getBlock() instanceof Forge) {
TileForge tile = (TileForge) world.getTileEntity(pos); TileForge tile = (TileForge) world.getTileEntity(pos);
for (int i = 2; i < tile.getSlotListSize(); i++) { for (int i = 2; i < tile.getSlotListSize(); i++) {
@@ -876,7 +889,7 @@ public class ItemStoneTongs extends Item {
} }
} }
} }
} }*/

View File

@@ -2,26 +2,37 @@ package nmd.primal.forgecraft.items;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.init.Items; import net.minecraft.init.Items;
import net.minecraft.inventory.ItemStackHelper; import net.minecraft.inventory.ItemStackHelper;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumActionResult; import net.minecraft.util.*;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.core.api.PrimalAPI;
import nmd.primal.core.api.interfaces.IPickup; import nmd.primal.core.api.interfaces.IPickup;
import nmd.primal.core.common.helper.NBTHelper; import nmd.primal.core.common.helper.NBTHelper;
import nmd.primal.core.common.helper.PlayerHelper;
import nmd.primal.forgecraft.ModInfo; import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.blocks.Crucibles.NBTCrucible;
import nmd.primal.forgecraft.blocks.Forge;
import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.items.blocks.ItemNBTCrucible;
import nmd.primal.forgecraft.items.parts.ToolPart;
import nmd.primal.forgecraft.tiles.TileForge;
import nmd.primal.forgecraft.tiles.TileNBTCrucible; import nmd.primal.forgecraft.tiles.TileNBTCrucible;
import javax.annotation.Nullable;
/** /**
* Created by mminaie on 12/30/17. * Created by mminaie on 12/30/17.
*/ */
@@ -32,6 +43,132 @@ public class SlottedTongs extends Item implements IPickup {
this.setRegistryName(unlocalizedName); this.setRegistryName(unlocalizedName);
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setCreativeTab(ModInfo.TAB_FORGECRAFT); this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() {
@SideOnly(Side.CLIENT)
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn)
{
SlottedTongs item = (SlottedTongs) stack.getItem();
ItemStack slotStack = item.getSlotList().get(0);
//TODO get the item name
if (stack.getItem() instanceof SlottedTongs) {
if (slotStack.getItem() instanceof ItemNBTCrucible){
if(item.getSlotList().get(0).getSubCompound("BlockEntityTag").getBoolean("hot")){
return 0.01f;
}
if(!item.getSlotList().get(0).getSubCompound("BlockEntityTag").getBoolean("hot")){
return 0.02f;
}
}
if(slotStack.getItem() instanceof ToolPart){
ToolPart toolPart = (ToolPart) item.getSlotList().get(0).getItem();
if(toolPart.getID() == "pickaxe"){
if (item.getSlotList().get(0).getSubCompound("tags") != null) {
if (slotStack.getSubCompound("tags").getBoolean("hot")) {
return 0.03f;
}
if (!item.getSlotList().get(0).getSubCompound("tags").getBoolean("hot")) {
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON){
return 0.04f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON){
return 0.05f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL){
return 0.06f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL){
return 0.07f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BRONZE){
return 0.08f;
}
}
}
}
if(toolPart.getID() == "axe"){
if (item.getSlotList().get(0).getSubCompound("tags") != null) {
if (slotStack.getSubCompound("tags").getBoolean("hot")) {
return 0.09f;
}
if (!item.getSlotList().get(0).getSubCompound("tags").getBoolean("hot")) {
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON){
return 0.10f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON){
return 0.11f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL){
return 0.12f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL){
return 0.13f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BRONZE){
return 0.14f;
}
}
}
}
if(toolPart.getID() == "shovel"){
if (item.getSlotList().get(0).getSubCompound("tags") != null) {
if (slotStack.getSubCompound("tags").getBoolean("hot")) {
return 0.15f;
}
if (!item.getSlotList().get(0).getSubCompound("tags").getBoolean("hot")) {
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON){
return 0.16f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON){
return 0.17f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL){
return 0.18f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL){
return 0.19f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BRONZE){
return 0.20f;
}
}
}
}
if(toolPart.getID() == "hoe"){
if (item.getSlotList().get(0).getSubCompound("tags") != null) {
if (slotStack.getSubCompound("tags").getBoolean("hot")) {
return 0.21f;
}
if (!item.getSlotList().get(0).getSubCompound("tags").getBoolean("hot")) {
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WROUGHT_IRON){
return 0.22f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_CLEAN_IRON){
return 0.23f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BASIC_STEEL){
return 0.24f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_WOOTZ_STEEL){
return 0.25f;
}
if(toolPart.getMaterial() == PrimalAPI.ToolMaterials.TOOL_BRONZE){
return 0.26f;
}
}
}
}
}
}
return 0.0F;
}
});
}
public NonNullList<ItemStack> getSlotList() {
return slotList;
} }
public NonNullList<ItemStack> slotList = NonNullList.withSize(1, ItemStack.EMPTY); public NonNullList<ItemStack> slotList = NonNullList.withSize(1, ItemStack.EMPTY);
@@ -42,25 +179,86 @@ public class SlottedTongs extends Item implements IPickup {
if(!world.isRemote){ if(!world.isRemote){
IBlockState state = world.getBlockState(pos); IBlockState state = world.getBlockState(pos);
Block block = world.getBlockState(pos).getBlock(); Block block = world.getBlockState(pos).getBlock();
if(slotList.get(0).isEmpty() || slotList.get(0).getItem().equals(Items.AIR) || slotList.get(0).getItem().equals(Blocks.AIR)){ ItemStack itemstack = player.getHeldItem(hand);
ItemStack tempStack = takeBlock(world, pos, state, face, player, block).copy(); if(slotList.get(0).isEmpty()){
slotList.set(0, tempStack); if (block instanceof NBTCrucible) {
world.setBlockState(pos, this.getReplacementBlock(world, pos, state)); ItemStack tempStack = takeBlock(world, pos, state, face, player, block).copy();
return EnumActionResult.SUCCESS; slotList.set(0, tempStack);
world.setBlockState(pos, this.getReplacementBlock(world, pos, state));
return EnumActionResult.SUCCESS;
}
} }
if(!slotList.get(0).isEmpty() ){ if(!slotList.get(0).isEmpty() ){
System.out.println("Current Item:" + slotList.get(0)); if(slotList.get(0).getItem() instanceof ItemNBTCrucible) {
NBTTagCompound tag = this.slotList.get(0).getSubCompound("BlockEntityTag").copy(); NBTTagCompound tag = this.slotList.get(0).getSubCompound("BlockEntityTag").copy();
if(tag != null){ if (tag != null) {
ItemBlock temp = (ItemBlock) slotList.get(0).getItem(); ItemBlock temp = (ItemBlock) slotList.get(0).getItem();
int i = this.getMetadata(slotList.get(0).getMetadata()); int i = this.getMetadata(slotList.get(0).getMetadata());
IBlockState iblockstate1 = temp.getBlock().getStateForPlacement(world, pos, face, hitX, hitY, hitZ, i, player, hand); IBlockState iblockstate1 = temp.getBlock().getStateForPlacement(world, pos, face, hitX, hitY, hitZ, i, player, hand);
temp.placeBlockAt(slotList.get(0), player, world, pos.up(1), face, hitX, hitY, hitZ, iblockstate1); temp.placeBlockAt(slotList.get(0), player, world, pos.up(1), face, hitX, hitY, hitZ, iblockstate1);
slotList.set(0, ItemStack.EMPTY);
return EnumActionResult.SUCCESS;
}
}
}
/*****
TAKES the Tool Parts from the Forge
*****/
if(slotList.get(0).isEmpty()) {
if (world.getBlockState(pos).getBlock() instanceof Forge) {
TileForge tile = (TileForge) world.getTileEntity(pos);
for (int i = 4; i < tile.getSlotListSize(); i++) {
ItemStack tempStack = tile.getSlotStack(i).copy();
slotList.set(0, tempStack);
tile.setSlotStack(i, ItemStack.EMPTY);
return EnumActionResult.SUCCESS;
}
}
}
/*****
PUTS the Ingots into the Forge
*****/
if(!slotList.get(0).isEmpty()) {
if (world.getBlockState(pos).getBlock() instanceof Forge) {
TileForge tile = (TileForge) world.getTileEntity(pos);
if( !(slotList.get(0).getItem() instanceof ToolPart)) {
for (int i = 4; i < tile.getSlotListSize(); i++) {
ItemStack tempStack = slotList.get(0).copy();
tile.setSlotStack(i, tempStack);
slotList.set(0, ItemStack.EMPTY);
return EnumActionResult.SUCCESS;
}
}
}
}
/*****
PUTS the Ingots into the Forge
*****/
if(!slotList.get(0).isEmpty()) {
if (world.getBlockState(pos).getBlock() instanceof Forge) {
TileForge tile = (TileForge) world.getTileEntity(pos);
if(slotList.get(0).getItem() instanceof ToolPart) {
ItemStack tempStack = slotList.get(0).copy();
tile.setSlotStack(4, tempStack);
slotList.set(0, ItemStack.EMPTY);
return EnumActionResult.SUCCESS;
}
}
}
if(!slotList.get(0).isEmpty() ){
if(slotList.get(0).getItem() instanceof ToolPart) {
ItemStack tempStack = slotList.get(0).copy();
PlayerHelper.spawnItemOnGround(world, pos, tempStack);
slotList.set(0, ItemStack.EMPTY); slotList.set(0, ItemStack.EMPTY);
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
return EnumActionResult.FAIL;
} }
return EnumActionResult.FAIL; return EnumActionResult.FAIL;
} }
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;

View File

@@ -23,9 +23,9 @@ import java.util.List;
*/ */
public class BronzeToolPart extends Item implements ToolNBT{ public class BronzeToolPart extends Item implements ToolNBT{
private int ID; private String toolType;
public BronzeToolPart(String name, ToolMaterial material, Integer ID) { public BronzeToolPart(String name, ToolMaterial material, String type) {
this.setMaxDamage(material.getMaxUses()); this.setMaxDamage(material.getMaxUses());
this.setUnlocalizedName(name); this.setUnlocalizedName(name);
this.setRegistryName(name); this.setRegistryName(name);
@@ -33,7 +33,7 @@ public class BronzeToolPart extends Item implements ToolNBT{
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setNoRepair(); this.setNoRepair();
this.ID = ID; this.toolType = type;
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter()
{ {
@@ -83,8 +83,8 @@ public class BronzeToolPart extends Item implements ToolNBT{
return false; return false;
} }
public int getID() { public String getID() {
return ID; return toolType;
} }
@Override @Override

View File

@@ -1,6 +1,7 @@
package nmd.primal.forgecraft.items.parts; package nmd.primal.forgecraft.items.parts;
import com.mojang.realmsclient.gui.ChatFormatting; import com.mojang.realmsclient.gui.ChatFormatting;
import net.minecraft.block.material.Material;
import net.minecraft.client.util.ITooltipFlag; import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
@@ -13,27 +14,31 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.util.ToolNBT; import nmd.primal.forgecraft.util.ToolNBT;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import java.util.List; import java.util.List;
import java.util.StringJoiner;
/** /**
* Created by mminaie on 3/9/17. * Created by mminaie on 3/9/17.
*/ */
public class ToolPart extends Item implements ToolNBT{ public class ToolPart extends Item implements ToolNBT{
private int ID; private String toolType;
private ToolMaterial toolMaterial;
public ToolPart(String name, Item.ToolMaterial material, Integer ID) { public ToolPart(String name, Item.ToolMaterial material, String type) {
this.setMaxDamage(material.getMaxUses()); this.setMaxDamage(material.getMaxUses());
this.setUnlocalizedName(name); this.setUnlocalizedName(name);
this.setRegistryName(name); this.setRegistryName(name);
//this.setCreativeTab(ModInfo.TAB_FORGECRAFT); this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setNoRepair(); this.setNoRepair();
this.ID = ID; this.toolType = type;
this.toolMaterial = material;
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter()
{ {
@@ -228,9 +233,10 @@ public class ToolPart extends Item implements ToolNBT{
return false; return false;
} }
public int getID() { public String getID() {
return ID; return toolType;
} }
public ToolMaterial getMaterial() {return toolMaterial;}
@Override @Override
public void onCreated(ItemStack item, World worldIn, EntityPlayer playerIn) { public void onCreated(ItemStack item, World worldIn, EntityPlayer playerIn) {

View File

@@ -17,6 +17,7 @@ import nmd.primal.core.api.PrimalAPI;
import nmd.primal.forgecraft.blocks.Anvil.AnvilBase; import nmd.primal.forgecraft.blocks.Anvil.AnvilBase;
import nmd.primal.forgecraft.blocks.Anvil.AnvilStone; import nmd.primal.forgecraft.blocks.Anvil.AnvilStone;
import nmd.primal.forgecraft.blocks.IngotBall; import nmd.primal.forgecraft.blocks.IngotBall;
import nmd.primal.forgecraft.init.ModBlocks;
import nmd.primal.forgecraft.init.ModItems; import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.items.BaseMultiItem; import nmd.primal.forgecraft.items.BaseMultiItem;
import nmd.primal.forgecraft.tiles.TileAnvil; import nmd.primal.forgecraft.tiles.TileAnvil;
@@ -507,7 +508,8 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(item == ModItems.ironingotballhot ){ //ModItems.ironingotballhot
if(item == ModItems.ironingotball){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
@@ -515,7 +517,8 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(item == ModItems.ironchunkhot){ //ModItems.ironchunkhot
if(item == ModItems.ironchunk){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);

View File

@@ -1,10 +1,12 @@
package nmd.primal.forgecraft.tiles; package nmd.primal.forgecraft.tiles;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.ITickable; import net.minecraft.util.ITickable;
import net.minecraft.util.NonNullList; import net.minecraft.util.NonNullList;
import net.minecraft.world.World; import net.minecraft.world.World;
import nmd.primal.core.api.PrimalAPI;
import nmd.primal.forgecraft.init.ModBlocks; import nmd.primal.forgecraft.init.ModBlocks;
import nmd.primal.forgecraft.init.ModItems; import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.items.parts.ToolPart; import nmd.primal.forgecraft.items.parts.ToolPart;
@@ -49,9 +51,13 @@ public class TileAnvil extends TileBaseSlot implements ITickable {
if (!world.isRemote) { if (!world.isRemote) {
IBlockState state = world.getBlockState(this.pos); IBlockState state = world.getBlockState(this.pos);
if ( ThreadLocalRandom.current().nextInt(0,10000) == 0 ) {
/***
Cooling Code
*/
/*if ( ThreadLocalRandom.current().nextInt(0,10000) == 0 ) {
for(int i=0; i<this.getSlotListSize(); i++){ for(int i=0; i<this.getSlotListSize(); i++){
if(this.getSlotStack(i).getItem() == ModItems.ironchunkhot){ if(this.getSlotStack(i).getItem() == tempironball){
if(ThreadLocalRandom.current().nextInt(0,1000) == 1){ if(ThreadLocalRandom.current().nextInt(0,1000) == 1){
this.setSlotStack(i, new ItemStack(ModBlocks.ironchunk, 1)); this.setSlotStack(i, new ItemStack(ModBlocks.ironchunk, 1));
this.updateBlock(); this.updateBlock();
@@ -74,6 +80,7 @@ public class TileAnvil extends TileBaseSlot implements ITickable {
} }
} }
} }
*/
} }
} }

View File

@@ -14,6 +14,7 @@ import nmd.primal.core.common.helper.CommonUtils;
import nmd.primal.core.common.helper.RecipeHelper; import nmd.primal.core.common.helper.RecipeHelper;
import nmd.primal.forgecraft.blocks.Forge; import nmd.primal.forgecraft.blocks.Forge;
import nmd.primal.forgecraft.crafting.ForgeCrafting; import nmd.primal.forgecraft.crafting.ForgeCrafting;
import nmd.primal.forgecraft.items.BaseMultiItem;
import nmd.primal.forgecraft.items.parts.ToolPart; import nmd.primal.forgecraft.items.parts.ToolPart;
import nmd.primal.forgecraft.util.ToolNBT; import nmd.primal.forgecraft.util.ToolNBT;
@@ -196,6 +197,11 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
outputStack.setTagCompound(stackCompound); outputStack.setTagCompound(stackCompound);
outputStack.getSubCompound("tags").setBoolean("hot", true); outputStack.getSubCompound("tags").setBoolean("hot", true);
} }
if(outputStack.getItem() instanceof BaseMultiItem) {
//System.out.println(stack.getTagCompound());
stackCompound.setBoolean("hot", true);
outputStack.setTagCompound(stackCompound);
}
this.setSlotStack(i, outputStack); this.setSlotStack(i, outputStack);
cookCounter2 = 0; cookCounter2 = 0;
} }
@@ -214,6 +220,10 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
outputStack.setTagCompound(stackCompound); outputStack.setTagCompound(stackCompound);
outputStack.getSubCompound("tags").setBoolean("hot", true); outputStack.getSubCompound("tags").setBoolean("hot", true);
} }
if(outputStack.getItem() instanceof BaseMultiItem) {
stackCompound.setBoolean("hot", true);
outputStack.setTagCompound(stackCompound);
}
this.setSlotStack(i, outputStack); this.setSlotStack(i, outputStack);
cookCounter3 = 0; cookCounter3 = 0;
@@ -234,6 +244,10 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
outputStack.setTagCompound(stackCompound); outputStack.setTagCompound(stackCompound);
outputStack.getSubCompound("tags").setBoolean("hot", true); outputStack.getSubCompound("tags").setBoolean("hot", true);
} }
if(outputStack.getItem() instanceof BaseMultiItem) {
stackCompound.setBoolean("hot", true);
outputStack.setTagCompound(stackCompound);
}
this.setSlotStack(i, outputStack); this.setSlotStack(i, outputStack);
cookCounter4 = 0; cookCounter4 = 0;
} }
@@ -252,6 +266,10 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
outputStack.setTagCompound(stackCompound); outputStack.setTagCompound(stackCompound);
outputStack.getSubCompound("tags").setBoolean("hot", true); outputStack.getSubCompound("tags").setBoolean("hot", true);
} }
if(outputStack.getItem() instanceof BaseMultiItem) {
stackCompound.setBoolean("hot", true);
outputStack.setTagCompound(stackCompound);
}
this.setSlotStack(i, outputStack); this.setSlotStack(i, outputStack);
cookCounter5 = 0; cookCounter5 = 0;
} }
@@ -270,6 +288,10 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
outputStack.setTagCompound(stackCompound); outputStack.setTagCompound(stackCompound);
outputStack.getSubCompound("tags").setBoolean("hot", true); outputStack.getSubCompound("tags").setBoolean("hot", true);
} }
if(outputStack.getItem() instanceof BaseMultiItem) {
outputStack.setTagCompound(stackCompound);
outputStack.getTagCompound().setBoolean("hot", true);
}
this.setSlotStack(i, outputStack); this.setSlotStack(i, outputStack);
cookCounter6 = 0; cookCounter6 = 0;
} }

View File

@@ -263,7 +263,7 @@ public interface AnvilHandler {
(pItem.getTagCompound().getInteger("type") == 0)) { (pItem.getTagCompound().getInteger("type") == 0)) {
//System.out.println("Level 1"); //System.out.println("Level 1");
if (!tile.getSlotStack(counter).isEmpty()) { /*if (!tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 0) { if (pItem.getTagCompound().getInteger("type") == 0) {
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironingotballhot)) { if (tile.getSlotStack(counter).getItem().equals(ModItems.ironingotballhot)) {
pItem.getTagCompound().setInteger("type", 6); pItem.getTagCompound().setInteger("type", 6);
@@ -297,38 +297,12 @@ public interface AnvilHandler {
tile.setSlotStack(counter, ItemStack.EMPTY); tile.setSlotStack(counter, ItemStack.EMPTY);
return true; return true;
} }
if(tile.getSlotStack(counter).getItem() instanceof ToolPart){
ToolPart item = (ToolPart) tile.getSlotStack(counter).getItem();
if(item.getHot(tile.getSlotStack(counter))) {
switch (item.getID()) {
case 8:
case 9:
case 10:
case 11:
case 17:
case 18:
case 19:
case 20:
case 26:
case 27:
case 28:
case 29:
case 35:
case 36:
case 37:
case 38:
pItem.getTagCompound().setInteger("type", item.getID());
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
}
} }
} }*/
if (tile.getSlotStack(counter).isEmpty()) { if (tile.getSlotStack(counter).isEmpty()) {
//System.out.println("Activating"); //System.out.println("Activating");
if (pItem.getTagCompound().getInteger("type") == 6) { /*if (pItem.getTagCompound().getInteger("type") == 6) {
//System.out.println("Tongs meta = 6"); //System.out.println("Tongs meta = 6");
tile.setSlotStack((counter), new ItemStack(ModItems.ironingotballhot, 1)); tile.setSlotStack((counter), new ItemStack(ModItems.ironingotballhot, 1));
pItem.getTagCompound().setInteger("type", 0); pItem.getTagCompound().setInteger("type", 0);
@@ -341,7 +315,7 @@ public interface AnvilHandler {
///System.out.println(counter); ///System.out.println(counter);
//System.out.println(tile.getSlotStack(counter)); //System.out.println(tile.getSlotStack(counter));
return true; return true;
} }*/
if (pItem.getTagCompound().getInteger("type") == 8) { if (pItem.getTagCompound().getInteger("type") == 8) {
ItemStack tempStack = new ItemStack(ModItems.pickaxehead, 1); ItemStack tempStack = new ItemStack(ModItems.pickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound()); tempStack.setTagCompound(new NBTTagCompound());
@@ -418,7 +392,7 @@ public interface AnvilHandler {
/********************************* /*********************************
* Clean Iron * * Clean Iron *
*********************************/ *********************************/
if (pItem.getTagCompound().getInteger("type") == 15) { /*if (pItem.getTagCompound().getInteger("type") == 15) {
//System.out.println("Tongs meta = 6"); //System.out.println("Tongs meta = 6");
tile.setSlotStack((counter), new ItemStack(ModItems.ironcleaningotballhot, 1)); tile.setSlotStack((counter), new ItemStack(ModItems.ironcleaningotballhot, 1));
pItem.getTagCompound().setInteger("type", 0); pItem.getTagCompound().setInteger("type", 0);
@@ -431,7 +405,7 @@ public interface AnvilHandler {
///System.out.println(counter); ///System.out.println(counter);
//System.out.println(tile.getSlotStack(counter)); //System.out.println(tile.getSlotStack(counter));
return true; return true;
} }*/
if (pItem.getTagCompound().getInteger("type") == 17) { if (pItem.getTagCompound().getInteger("type") == 17) {
ItemStack tempStack = new ItemStack(ModItems.cleanironpickaxehead, 1); ItemStack tempStack = new ItemStack(ModItems.cleanironpickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound()); tempStack.setTagCompound(new NBTTagCompound());
@@ -508,6 +482,7 @@ public interface AnvilHandler {
/********************************* /*********************************
* Steel * * Steel *
*********************************/ *********************************/
/*
if (pItem.getTagCompound().getInteger("type") == 24) { if (pItem.getTagCompound().getInteger("type") == 24) {
//System.out.println("Tongs meta = 6"); //System.out.println("Tongs meta = 6");
tile.setSlotStack((counter), new ItemStack(ModItems.steelingotballhot, 1)); tile.setSlotStack((counter), new ItemStack(ModItems.steelingotballhot, 1));
@@ -522,6 +497,7 @@ public interface AnvilHandler {
//System.out.println(tile.getSlotStack(counter)); //System.out.println(tile.getSlotStack(counter));
return true; return true;
} }
*/
if (pItem.getTagCompound().getInteger("type") == 26) { if (pItem.getTagCompound().getInteger("type") == 26) {
ItemStack tempStack = new ItemStack(ModItems.steelpickaxehead, 1); ItemStack tempStack = new ItemStack(ModItems.steelpickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound()); tempStack.setTagCompound(new NBTTagCompound());
@@ -734,7 +710,7 @@ public interface AnvilHandler {
ItemStack dropStack = null; ItemStack dropStack = null;
if (stack.getItem() instanceof BaseMultiItem) { if (stack.getItem() instanceof BaseMultiItem) {
BaseMultiItem item = (BaseMultiItem) stack.getItem(); BaseMultiItem item = (BaseMultiItem) stack.getItem();
/*
switch (item.getID()) { switch (item.getID()) {
case 6: case 6:
dropStack = new ItemStack(ModBlocks.ironball, 1); dropStack = new ItemStack(ModBlocks.ironball, 1);
@@ -808,7 +784,7 @@ public interface AnvilHandler {
case 38: case 38:
dropStack = new ItemStack(ModItems.wootzhoehead, 1); dropStack = new ItemStack(ModItems.wootzhoehead, 1);
break; break;
} }*/
} else { } else {
dropStack = stack; dropStack = stack;

View File

@@ -0,0 +1,7 @@
{
"parent": "forgecraft:item/ironball",
"textures": {
"particle": "forgecraft:blocks/iron_ingot",
"texture": "forgecraft:blocks/iron_ingot"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "forgecraft:item/ironball",
"textures": {
"particle": "forgecraft:blocks/iron_ingot_hot",
"texture": "forgecraft:blocks/iron_ingot_hot"
}
}

View File

@@ -0,0 +1,11 @@
{
"parent": "forgecraft:item/ironball",
"textures": {
"particle": "forgecraft:blocks/iron_ingot",
"texture": "forgecraft:blocks/iron_ingot"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/ingots/wroughtiron/ingot_0"},
{"predicate": {"type": 0.1},"model": "forgecraft:item/ingots/wroughtiron/ingot_1"}
]
}

View File

@@ -1,8 +1,8 @@
{ {
"forge_marker":1, "forge_marker":1,
"textures": { "textures": {
"particle": "forgecraft:blocks/iron_ingot_hot", "particle": "forgecraft:blocks/iron_ingot",
"texture": "forgecraft:blocks/iron_ingot_hot" "texture": "forgecraft:blocks/iron_ingot"
}, },
"parent": "forgecraft:item/ironball" "parent": "forgecraft:item/ironball"
} }

View File

@@ -0,0 +1,39 @@
{
"parent": "forgecraft:item/stonetongs",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/slottedtongs/slottedtongs_0"},
{"predicate": {"type": 0.01},"model": "forgecraft:item/slottedtongs/slottedtongs_1"},
{"predicate": {"type": 0.02},"model": "forgecraft:item/slottedtongs/slottedtongs_2"},
{"predicate": {"type": 0.03},"model": "forgecraft:item/slottedtongs/slottedtongs_3"},
{"predicate": {"type": 0.04},"model": "forgecraft:item/slottedtongs/slottedtongs_4"},
{"predicate": {"type": 0.05},"model": "forgecraft:item/slottedtongs/slottedtongs_5"},
{"predicate": {"type": 0.06},"model": "forgecraft:item/slottedtongs/slottedtongs_6"},
{"predicate": {"type": 0.07},"model": "forgecraft:item/slottedtongs/slottedtongs_7"},
{"predicate": {"type": 0.08},"model": "forgecraft:item/slottedtongs/slottedtongs_8"},
{"predicate": {"type": 0.09},"model": "forgecraft:item/slottedtongs/slottedtongs_9"},
{"predicate": {"type": 0.10},"model": "forgecraft:item/slottedtongs/slottedtongs_10"},
{"predicate": {"type": 0.11},"model": "forgecraft:item/slottedtongs/slottedtongs_11"},
{"predicate": {"type": 0.12},"model": "forgecraft:item/slottedtongs/slottedtongs_12"},
{"predicate": {"type": 0.13},"model": "forgecraft:item/slottedtongs/slottedtongs_13"},
{"predicate": {"type": 0.14},"model": "forgecraft:item/slottedtongs/slottedtongs_14"},
{"predicate": {"type": 0.15},"model": "forgecraft:item/slottedtongs/slottedtongs_15"},
{"predicate": {"type": 0.16},"model": "forgecraft:item/slottedtongs/slottedtongs_16"},
{"predicate": {"type": 0.17},"model": "forgecraft:item/slottedtongs/slottedtongs_17"},
{"predicate": {"type": 0.18},"model": "forgecraft:item/slottedtongs/slottedtongs_18"},
{"predicate": {"type": 0.19},"model": "forgecraft:item/slottedtongs/slottedtongs_19"},
{"predicate": {"type": 0.20},"model": "forgecraft:item/slottedtongs/slottedtongs_20"},
{"predicate": {"type": 0.21},"model": "forgecraft:item/slottedtongs/slottedtongs_21"},
{"predicate": {"type": 0.22},"model": "forgecraft:item/slottedtongs/slottedtongs_22"},
{"predicate": {"type": 0.23},"model": "forgecraft:item/slottedtongs/slottedtongs_23"},
{"predicate": {"type": 0.24},"model": "forgecraft:item/slottedtongs/slottedtongs_24"},
{"predicate": {"type": 0.25},"model": "forgecraft:item/slottedtongs/slottedtongs_25"},
{"predicate": {"type": 0.26},"model": "forgecraft:item/slottedtongs/slottedtongs_26"}
]
}

View File

@@ -0,0 +1,3 @@
{
"parent": "forgecraft:item/stonetongs_default"
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hotiron",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/stone_slab_hot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/clean_iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/steel_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/wootz_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/finished_bronze"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/clean_iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/steel_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/wootz_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hotiron",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/stone_slab"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_shovel_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/finished_bronze"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/clean_iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/steel_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/wootz_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_hoe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/finished_bronze"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/iron_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/clean_iron_ingot"
}
}

View File

@@ -0,0 +1,13 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/steel_ingot"
}
}

View File

@@ -0,0 +1,12 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/wootz_ingot"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_pickaxe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:items/finished_bronze"
}
}

View File

@@ -0,0 +1,9 @@
{
"parent": "forgecraft:item/stonetongs_axe_default",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
}
}