Working on a few handy things!
This commit is contained in:
parent
6998a91e55
commit
ec8bf102bb
44 changed files with 1152 additions and 1014 deletions
|
|
@ -105,8 +105,7 @@ public class ContainerCropomator extends Container
|
||||||
|
|
||||||
slot.onSlotChange(itemstack1, itemstack);
|
slot.onSlotChange(itemstack1, itemstack);
|
||||||
}
|
}
|
||||||
else
|
else if(slotID != 1 && slotID != 0)
|
||||||
if (slotID != 1 && slotID != 0)
|
|
||||||
{
|
{
|
||||||
if(TileEntityCropomator.isValid(itemstack1))
|
if(TileEntityCropomator.isValid(itemstack1))
|
||||||
{
|
{
|
||||||
|
|
@ -115,30 +114,26 @@ public class ContainerCropomator extends Container
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(TileEntityCropomator.isItemCatalyst(itemstack1))
|
||||||
if (TileEntityCropomator.isItemCatalyst(itemstack1))
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 3 && slotID < 30)
|
||||||
if (slotID >= 3 && slotID < 30)
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
||||||
if (slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(!this.mergeItemStack(itemstack1, 3, 39, false))
|
||||||
if (!this.mergeItemStack(itemstack1, 3, 39, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,7 @@ public class ContainerElectroextractor extends Container
|
||||||
|
|
||||||
slot.onSlotChange(itemstack1, itemstack);
|
slot.onSlotChange(itemstack1, itemstack);
|
||||||
}
|
}
|
||||||
else
|
else if(slotID != 1 && slotID != 0)
|
||||||
if (slotID != 1 && slotID != 0)
|
|
||||||
{
|
{
|
||||||
if(TileEntityElectroextractor.isValid(itemstack1))
|
if(TileEntityElectroextractor.isValid(itemstack1))
|
||||||
{
|
{
|
||||||
|
|
@ -113,30 +112,26 @@ public class ContainerElectroextractor extends Container
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(TileEntityElectroextractor.isItemEnergetic(itemstack1))
|
||||||
if (TileEntityElectroextractor.isItemEnergetic(itemstack1))
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 3 && slotID < 30)
|
||||||
if (slotID >= 3 && slotID < 30)
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
||||||
if (slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(!this.mergeItemStack(itemstack1, 3, 39, false))
|
||||||
if (!this.mergeItemStack(itemstack1, 3, 39, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,7 @@ public class ContainerWoodchipper extends Container
|
||||||
|
|
||||||
slot.onSlotChange(itemstack1, itemstack);
|
slot.onSlotChange(itemstack1, itemstack);
|
||||||
}
|
}
|
||||||
else
|
else if(slotID != 1 && slotID != 0)
|
||||||
if (slotID != 1 && slotID != 0)
|
|
||||||
{
|
{
|
||||||
if(TileEntityWoodchipper.isValidForWoodchipper(itemstack1))
|
if(TileEntityWoodchipper.isValidForWoodchipper(itemstack1))
|
||||||
{
|
{
|
||||||
|
|
@ -111,30 +110,26 @@ public class ContainerWoodchipper extends Container
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(TileEntityWoodchipper.isItemFuel(itemstack1))
|
||||||
if (TileEntityWoodchipper.isItemFuel(itemstack1))
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
if(!this.mergeItemStack(itemstack1, 1, 2, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 3 && slotID < 30)
|
||||||
if (slotID >= 3 && slotID < 30)
|
|
||||||
{
|
{
|
||||||
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
if(!this.mergeItemStack(itemstack1, 30, 39, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
||||||
if (slotID >= 30 && slotID < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if(!this.mergeItemStack(itemstack1, 3, 39, false))
|
||||||
if (!this.mergeItemStack(itemstack1, 3, 39, false))
|
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,11 @@ import net.minecraft.item.Item;
|
||||||
public class CCItems
|
public class CCItems
|
||||||
{
|
{
|
||||||
public static Item dusts;
|
public static Item dusts;
|
||||||
|
public static Item everfulBucket;
|
||||||
|
|
||||||
public static void init()
|
public static void init()
|
||||||
{
|
{
|
||||||
dusts = new ItemDust();
|
dusts = new ItemDust();
|
||||||
|
everfulBucket = new ItemEverfulBucket();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -16,20 +16,23 @@ import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
public class ItemDust extends Item
|
public class ItemDust extends Item
|
||||||
{
|
{
|
||||||
private static ArrayList<String> dustNames = new ArrayList<String>();
|
private static ArrayList<String> dustNames = new ArrayList<String>();
|
||||||
private static ArrayList<Integer> colors = new ArrayList<Integer>();
|
private static ArrayList<Integer> colors = new ArrayList<Integer>();
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public static IIcon overlay;
|
public static IIcon overlay;
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public static IIcon base;
|
public static IIcon base;
|
||||||
|
|
||||||
public ItemDust()
|
public ItemDust()
|
||||||
{
|
{
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
this.setCreativeTab(CrissCross.CCTab);
|
this.setCreativeTab(CrissCross.CCTab);
|
||||||
GameRegistry.registerItem(this, this.getUnlocalizedName());
|
GameRegistry.registerItem(this, "itemDust");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<String> getDusts()
|
public static ArrayList<String> getDusts()
|
||||||
|
|
@ -65,7 +68,7 @@ public class ItemDust extends Item
|
||||||
{
|
{
|
||||||
if(itemStack.getItemDamage() >= colors.size() || itemStack.getItemDamage() >= dustNames.size())
|
if(itemStack.getItemDamage() >= colors.size() || itemStack.getItemDamage() >= dustNames.size())
|
||||||
{
|
{
|
||||||
itemStack.setStackDisplayName("This is a bad item, please trash it.");
|
itemStack.setStackDisplayName(StatCollector.translateToLocal("item.CrissCross.trash.name"));
|
||||||
return("item." + Reference.modid + ".trash");
|
return("item." + Reference.modid + ".trash");
|
||||||
}
|
}
|
||||||
return "item." + Reference.modid + "." + dustNames.get(itemStack.getItemDamage());
|
return "item." + Reference.modid + "." + dustNames.get(itemStack.getItemDamage());
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,134 @@
|
||||||
|
package com.oitsjustjose.criss_cross.Items;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.oitsjustjose.criss_cross.CrissCross;
|
||||||
|
import com.oitsjustjose.criss_cross.Util.Reference;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
|
import net.minecraft.util.IIcon;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
public class ItemEverfulBucket extends Item
|
||||||
|
{
|
||||||
|
String[] types = new String[]
|
||||||
|
{ "everfulBucket", "voidBucket" };
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
IIcon[] icons = new IIcon[types.length];
|
||||||
|
|
||||||
|
public ItemEverfulBucket()
|
||||||
|
{
|
||||||
|
this.setHasSubtypes(true);
|
||||||
|
this.maxStackSize = 1;
|
||||||
|
this.setCreativeTab(CrissCross.CCTab);
|
||||||
|
GameRegistry.registerItem(this, "magicBucket");
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public IIcon getIconFromDamage(int meta)
|
||||||
|
{
|
||||||
|
return icons[meta];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IIconRegister register)
|
||||||
|
{
|
||||||
|
for(int i = 0; i < icons.length; i++)
|
||||||
|
icons[i] = register.registerIcon(Reference.modid + ":" + types[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player)
|
||||||
|
{
|
||||||
|
MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, player, true);
|
||||||
|
|
||||||
|
if(movingobjectposition == null)
|
||||||
|
{
|
||||||
|
return itemstack;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)
|
||||||
|
{
|
||||||
|
int x = movingobjectposition.blockX;
|
||||||
|
int y = movingobjectposition.blockY;
|
||||||
|
int z = movingobjectposition.blockZ;
|
||||||
|
|
||||||
|
if(!world.canMineBlock(player, x, y, z))
|
||||||
|
return itemstack;
|
||||||
|
|
||||||
|
if(!player.canPlayerEdit(x, y, z, movingobjectposition.sideHit, itemstack))
|
||||||
|
return itemstack;
|
||||||
|
|
||||||
|
if(itemstack.getItemDamage() == 1)
|
||||||
|
{
|
||||||
|
Material material = world.getBlock(x, y, z).getMaterial();
|
||||||
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
|
|
||||||
|
if(material == Material.water && meta == 0)
|
||||||
|
world.setBlockToAir(x, y, z);
|
||||||
|
|
||||||
|
if(material == Material.lava && meta == 0)
|
||||||
|
world.setBlockToAir(x, y, z);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(world.getBlock(x, y, z).getMaterial() == Material.lava || world.getBlock(x, y, z).getMaterial() == Material.water)
|
||||||
|
return itemstack;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 0)
|
||||||
|
--y;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 1)
|
||||||
|
++y;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 2)
|
||||||
|
--z;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 3)
|
||||||
|
++z;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 4)
|
||||||
|
--x;
|
||||||
|
|
||||||
|
if(movingobjectposition.sideHit == 5)
|
||||||
|
++x;
|
||||||
|
|
||||||
|
if(!player.canPlayerEdit(x, y, z, movingobjectposition.sideHit, itemstack))
|
||||||
|
return itemstack;
|
||||||
|
|
||||||
|
if(itemstack.getItemDamage() == 0)
|
||||||
|
world.setBlock(x, y, z, Blocks.flowing_water);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return itemstack;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getUnlocalizedName(ItemStack itemStack)
|
||||||
|
{
|
||||||
|
return "item." + Reference.modid + "." + types[itemStack.getItemDamage()];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void getSubItems(Item item, CreativeTabs tab, List list)
|
||||||
|
{
|
||||||
|
for(int i = 0; i < types.length; i++)
|
||||||
|
list.add(new ItemStack(item, 1, i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -42,9 +42,8 @@ public class CCCraftingRecipes
|
||||||
CCLog.warn("Please confirm you have the name and formatting correct.");
|
CCLog.warn("Please confirm you have the name and formatting correct.");
|
||||||
}
|
}
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(CCBlocks.woodchipper),
|
GameRegistry.addRecipe(new ItemStack(CCBlocks.woodchipper), new Object[]
|
||||||
new Object[] { "I#I", "SCS", "I#I", '#', Items.diamond_axe, 'I', Blocks.iron_bars, 'S',
|
{ "I#I", "SCS", "I#I", '#', Items.diamond_axe, 'I', Blocks.iron_bars, 'S', Items.golden_axe, 'C', centerItem });
|
||||||
Items.golden_axe, 'C', centerItem });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void electroextractorRecipe()
|
static void electroextractorRecipe()
|
||||||
|
|
@ -68,9 +67,8 @@ public class CCCraftingRecipes
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(CCBlocks.electroextractor),
|
GameRegistry.addRecipe(new ItemStack(CCBlocks.electroextractor), new Object[]
|
||||||
new Object[] { "I#I", "SCS", "I#I", '#', Blocks.piston, 'I', Blocks.iron_bars, 'S',
|
{ "I#I", "SCS", "I#I", '#', Blocks.piston, 'I', Blocks.iron_bars, 'S', Items.golden_pickaxe, 'C', centerItem });
|
||||||
Items.golden_pickaxe, 'C', centerItem });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cropomatorRecipe()
|
static void cropomatorRecipe()
|
||||||
|
|
@ -93,8 +91,7 @@ public class CCCraftingRecipes
|
||||||
CCLog.warn("Please confirm you have the name and formatting correct.");
|
CCLog.warn("Please confirm you have the name and formatting correct.");
|
||||||
}
|
}
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(CCBlocks.cropomator),
|
GameRegistry.addRecipe(new ItemStack(CCBlocks.cropomator), new Object[]
|
||||||
new Object[] { "I#I", "SCS", "I#I", '#', Blocks.hay_block, 'I', Items.iron_ingot, 'S', Items.golden_hoe,
|
{ "I#I", "SCS", "I#I", '#', Blocks.hay_block, 'I', Items.iron_ingot, 'S', Items.golden_hoe, 'C', centerItem });
|
||||||
'C', centerItem });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +136,8 @@ public class CCMachineRecipes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//All Credit goes to TeamCoFH for the code. After so many algorithms attempted, I gave up and used one that worked:
|
// All Credit goes to TeamCoFH for the code. After so many algorithms
|
||||||
|
// attempted, I gave up and used one that worked:
|
||||||
|
|
||||||
public static void initWoodchipperOreDictionary()
|
public static void initWoodchipperOreDictionary()
|
||||||
{
|
{
|
||||||
|
|
@ -298,10 +299,8 @@ public class CCMachineRecipes
|
||||||
if(!OreDictionary.doesOreNameExist("ore" + entry[0]))
|
if(!OreDictionary.doesOreNameExist("ore" + entry[0]))
|
||||||
CCLog.warn("This is because your oreDictionary Entry was not valid or registered as " + entry[0]
|
CCLog.warn("This is because your oreDictionary Entry was not valid or registered as " + entry[0]
|
||||||
+ ".");
|
+ ".");
|
||||||
else
|
else if(!OreDictionary.doesOreNameExist("ingot" + entry[0]))
|
||||||
if (!OreDictionary.doesOreNameExist("ingot" + entry[0]))
|
CCLog.warn("This is because your oreDictionary Entry does not have an ingot for " + entry[0] + ".");
|
||||||
CCLog.warn("This is because your oreDictionary Entry does not have an ingot for " + entry[0]
|
|
||||||
+ ".");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,12 @@ public class TileEntityCropomator extends TileEntity implements ISidedInventory
|
||||||
{
|
{
|
||||||
private static int proTicks = ConfigHandler.cropomatorProcessTime;
|
private static int proTicks = ConfigHandler.cropomatorProcessTime;
|
||||||
private static int qty = ConfigHandler.cropomatorOutput;
|
private static int qty = ConfigHandler.cropomatorOutput;
|
||||||
private static final int[] slotsTop = new int[] { 0 };
|
private static final int[] slotsTop = new int[]
|
||||||
private static final int[] slotsBottom = new int[] { 2, 1 };
|
{ 0 };
|
||||||
private static final int[] slotsSides = new int[] { 1 };
|
private static final int[] slotsBottom = new int[]
|
||||||
|
{ 2, 1 };
|
||||||
|
private static final int[] slotsSides = new int[]
|
||||||
|
{ 1 };
|
||||||
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
||||||
|
|
||||||
private ItemStack[] ItemStacks = new ItemStack[3];
|
private ItemStack[] ItemStacks = new ItemStack[3];
|
||||||
|
|
@ -311,8 +314,7 @@ public class TileEntityCropomator extends TileEntity implements ISidedInventory
|
||||||
{
|
{
|
||||||
ItemStacks[2] = output.copy();
|
ItemStacks[2] = output.copy();
|
||||||
}
|
}
|
||||||
else
|
else if(outputSlot.isItemEqual(output))
|
||||||
if (outputSlot.isItemEqual(output))
|
|
||||||
{
|
{
|
||||||
outputSlot.stackSize += output.stackSize;
|
outputSlot.stackSize += output.stackSize;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,12 @@ public class TileEntityElectroextractor extends TileEntity implements ISidedInve
|
||||||
{
|
{
|
||||||
private static int proTicks = ConfigHandler.electroextractorProcessTime;
|
private static int proTicks = ConfigHandler.electroextractorProcessTime;
|
||||||
private static int qty = ConfigHandler.electroextractorOutput;
|
private static int qty = ConfigHandler.electroextractorOutput;
|
||||||
private static final int[] slotsTop = new int[] { 0 };
|
private static final int[] slotsTop = new int[]
|
||||||
private static final int[] slotsBottom = new int[] { 2, 1 };
|
{ 0 };
|
||||||
private static final int[] slotsSides = new int[] { 1 };
|
private static final int[] slotsBottom = new int[]
|
||||||
|
{ 2, 1 };
|
||||||
|
private static final int[] slotsSides = new int[]
|
||||||
|
{ 1 };
|
||||||
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
||||||
|
|
||||||
private ItemStack[] ItemStacks = new ItemStack[3];
|
private ItemStack[] ItemStacks = new ItemStack[3];
|
||||||
|
|
@ -308,8 +311,7 @@ public class TileEntityElectroextractor extends TileEntity implements ISidedInve
|
||||||
{
|
{
|
||||||
ItemStacks[2] = output.copy();
|
ItemStacks[2] = output.copy();
|
||||||
}
|
}
|
||||||
else
|
else if(outputSlot.isItemEqual(output))
|
||||||
if (outputSlot.isItemEqual(output))
|
|
||||||
{
|
{
|
||||||
outputSlot.stackSize += output.stackSize;
|
outputSlot.stackSize += output.stackSize;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,12 @@ public class TileEntityWoodchipper extends TileEntity implements ISidedInventory
|
||||||
{
|
{
|
||||||
private static int proTicks = ConfigHandler.woodchipperProcessTime;
|
private static int proTicks = ConfigHandler.woodchipperProcessTime;
|
||||||
private static int qty = ConfigHandler.woodchipperOutput;
|
private static int qty = ConfigHandler.woodchipperOutput;
|
||||||
private static final int[] slotsTop = new int[] { 0 };
|
private static final int[] slotsTop = new int[]
|
||||||
private static final int[] slotsBottom = new int[] { 2, 1 };
|
{ 0 };
|
||||||
private static final int[] slotsSides = new int[] { 1 };
|
private static final int[] slotsBottom = new int[]
|
||||||
|
{ 2, 1 };
|
||||||
|
private static final int[] slotsSides = new int[]
|
||||||
|
{ 1 };
|
||||||
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
private static ArrayList<ItemStack> fuelItems = new ArrayList<ItemStack>();
|
||||||
|
|
||||||
private ItemStack[] ItemStacks = new ItemStack[3];
|
private ItemStack[] ItemStacks = new ItemStack[3];
|
||||||
|
|
@ -310,8 +313,7 @@ public class TileEntityWoodchipper extends TileEntity implements ISidedInventory
|
||||||
{
|
{
|
||||||
ItemStacks[2] = output.copy();
|
ItemStacks[2] = output.copy();
|
||||||
}
|
}
|
||||||
else
|
else if(outputSlot.isItemEqual(output))
|
||||||
if (outputSlot.isItemEqual(output))
|
|
||||||
{
|
{
|
||||||
outputSlot.stackSize += output.stackSize;
|
outputSlot.stackSize += output.stackSize;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,28 +15,33 @@ public class ConfigHandler
|
||||||
public static String cropomatorRecipeItem;
|
public static String cropomatorRecipeItem;
|
||||||
public static String[] cropomatorInputs;
|
public static String[] cropomatorInputs;
|
||||||
public static String[] cropomatorCatalysts;
|
public static String[] cropomatorCatalysts;
|
||||||
public static String[] defaultCropomatorInputs = new String[] { "minecraft:apple", "minecraft:reeds",
|
public static String[] defaultCropomatorInputs = new String[]
|
||||||
"minecraft:nether_wart", "minecraft:carrot", "minecraft:cactus", "minecraft:potato", "minecraft:sapling:0",
|
{ "minecraft:apple", "minecraft:reeds", "minecraft:nether_wart", "minecraft:carrot", "minecraft:cactus",
|
||||||
"minecraft:sapling:1", "minecraft:sapling:2", "minecraft:sapling:3", "minecraft:sapling:4",
|
"minecraft:potato", "minecraft:sapling:0", "minecraft:sapling:1", "minecraft:sapling:2",
|
||||||
"minecraft:sapling:5", "minecraft:melon", "minecraft:brown_mushroom", "minecraft:red_mushroom",
|
"minecraft:sapling:3", "minecraft:sapling:4", "minecraft:sapling:5", "minecraft:melon",
|
||||||
"minecraft:cocoa", "minecraft:pumpkin", "minecraft:wheat", "minecraft:wheat_seeds" };
|
"minecraft:brown_mushroom", "minecraft:red_mushroom", "minecraft:cocoa", "minecraft:pumpkin",
|
||||||
public static String[] defaultCropomatorCatalystItems = new String[] { "minecraft:dye:15" };
|
"minecraft:wheat", "minecraft:wheat_seeds" };
|
||||||
|
public static String[] defaultCropomatorCatalystItems = new String[]
|
||||||
|
{ "minecraft:dye:15" };
|
||||||
|
|
||||||
public static int electroextractorProcessTime;
|
public static int electroextractorProcessTime;
|
||||||
public static int electroextractorOutput;
|
public static int electroextractorOutput;
|
||||||
public static String electroextractorRecipeItem;
|
public static String electroextractorRecipeItem;
|
||||||
public static String[] electroextractorEnergySources;
|
public static String[] electroextractorEnergySources;
|
||||||
public static String[] electroextractorOreDictInputs;
|
public static String[] electroextractorOreDictInputs;
|
||||||
public static String[] defaultElectroextractorOreDictInputs = new String[] { "Iron:12428902", "Gold:15400704",
|
public static String[] defaultElectroextractorOreDictInputs = new String[]
|
||||||
"Aluminum:15987699", "Cobalt:17663", "Ardite:13938485", "Copper:16751872", "Tin:15132390",
|
{ "Iron:12428902", "Gold:15400704", "Aluminum:15987699", "Cobalt:17663", "Ardite:13938485", "Copper:16751872",
|
||||||
"Silver:13297640", "Lead:5722979", "Platinum:11067903", "Mithril:4433113", "Nickel:16580553" };
|
"Tin:15132390", "Silver:13297640", "Lead:5722979", "Platinum:11067903", "Mithril:4433113",
|
||||||
public static String[] defaultElectroextractorEnergySources = new String[] { "minecraft:redstone_block" };
|
"Nickel:16580553" };
|
||||||
|
public static String[] defaultElectroextractorEnergySources = new String[]
|
||||||
|
{ "minecraft:redstone_block" };
|
||||||
|
|
||||||
public static int woodchipperProcessTime;
|
public static int woodchipperProcessTime;
|
||||||
public static int woodchipperOutput;
|
public static int woodchipperOutput;
|
||||||
public static String woodchipperRecipeItem;
|
public static String woodchipperRecipeItem;
|
||||||
public static String[] woodchipperFuels;
|
public static String[] woodchipperFuels;
|
||||||
public static String[] defaultWoodchipperFuels = new String[] { "minecraft:water_bucket", "minecraft:potion:0" };
|
public static String[] defaultWoodchipperFuels = new String[]
|
||||||
|
{ "minecraft:water_bucket", "minecraft:potion:0" };
|
||||||
|
|
||||||
public static void init(File configFile)
|
public static void init(File configFile)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import net.minecraft.world.World;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author TeamCoFH
|
* @author TeamCoFH All credit goes to TeamCoFH, this was required for proper
|
||||||
* All credit goes to TeamCoFH, this was required for proper woodchipper recipes :)
|
* woodchipper recipes :)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -96,8 +96,7 @@ public class ItemHelper
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else
|
else if(dmgItems[1] != null && dmgItems[0].getItem() == dmgItems[1].getItem() && dmgItems[0].stackSize == 1
|
||||||
if (dmgItems[1] != null && dmgItems[0].getItem() == dmgItems[1].getItem() && dmgItems[0].stackSize == 1
|
|
||||||
&& dmgItems[1].stackSize == 1 && dmgItems[0].getItem().isRepairable())
|
&& dmgItems[1].stackSize == 1 && dmgItems[0].getItem().isRepairable())
|
||||||
{
|
{
|
||||||
Item theItem = dmgItems[0].getItem();
|
Item theItem = dmgItems[0].getItem();
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,9 @@ item.CrissCross.Mithril.name=Electrolytic Mithril Dust
|
||||||
item.CrissCross.Nickel.name=Electrolytic Nickel Dust
|
item.CrissCross.Nickel.name=Electrolytic Nickel Dust
|
||||||
item.CrissCross.trash.name=This is a bad item, please trash it.
|
item.CrissCross.trash.name=This is a bad item, please trash it.
|
||||||
|
|
||||||
|
item.CrissCross.everfulBucket.name=Everful Bucket
|
||||||
|
item.CrissCross.voidBucket.name=Insatiable Bucket
|
||||||
|
|
||||||
#Containers
|
#Containers
|
||||||
container.cropomator=Cropomator
|
container.cropomator=Cropomator
|
||||||
container.electroextractor=ElectroExtractor
|
container.electroextractor=ElectroExtractor
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"animation": {
|
||||||
|
"frametime": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 387 B |
Loading…
Reference in a new issue