• 0

    posted a message on [1.7.2] The Ender-Mage Network looking builders, artists, animators and developers to help make a network of servers!
    Quote from Dead1Sec

    IGN: Dead1Sec

    Age: 14

    Have you built any maps before?: Yes. I sadly do not have copies or screenshots of them or I would send them to you.

    How good do you think you are at building?: I think I am better than the average player. I am playing in creative a lot more than normal lately.

    Do you know how to use world edit?: I know basic commands, but I know how it works. I'll mess around with it until I get the hang of it if you choose me.

    Skype: RussellMill99


    Accepted! The IP has been Pmed
    Posted in: Server Recruitment
  • 0

    posted a message on [1.7.2] The Ender-Mage Network looking builders, artists, animators and developers to help make a network of servers!
    Quote from magib1

    IGN: Magib1
    Age: 21
    Have you built any maps before?: Yes
    How good do you think you are at building?: Decent
    Do you know how to use world edit?: Yes


    Accepted! I Will pm you the IP
    Posted in: Server Recruitment
  • 0

    posted a message on [1.7.2] The Ender-Mage Network looking builders, artists, animators and developers to help make a network of servers!
    The Ender-Mage Network looking for great map builders, artists and developers! Need a developer that can make custom minigames for the server and also I need at least 1 artist and 1 animator! You will also get a choice of having a rank based on what you are (Builder, Artist, Animator, Developer) on my server or not, your choice.
    If you can do 2 things at once (such as be an artist and animator) let me know.

    Builder
    IGN:
    Age:
    Have you built any maps before?:
    How good do you think you are at building?:
    Do you know how to use world edit?:
    Something you have built:
    Do you have Teamspeak/Skype? (Optional):

    Artist
    IGN:
    Age:
    Have you made any art for anyone else?:
    How good do you think you are at making artworks?:
    What Programs do you use?:
    Some artwork you have made:
    Do you have Teamspeak/Skype? (Optional):

    Animator
    IGN:
    Age:
    Have you made any animations?:
    How good do you think you are at making animations?:
    What Programs do you use?:
    Some animation that you have made:
    Do you have Teamspeak/Skype? (Optional):

    Developer
    IGN:

    Age:
    What plugins have you made?:
    How good do you think you are at making plugins?:
    What programs do you use?:
    A plugin that you have made:
    Do you have Teamspeak/Skype? (Optional):

    Website: endermage.net
    Server: mc.endermage.net
    Posted in: Server Recruitment
  • 0

    posted a message on The Ender-Mage mod help...
    Thank you!!! I forgot to do that and did it the other way around on accident. :P
    Posted in: Modification Development
  • 0

    posted a message on The Ender-Mage mod help...
    Another error???

    ---- Minecraft Crash Report ----
    // I let you down. Sorry :(
    Time: 30/09/13 11:28 AM
    Description: Failed to start game
    java.lang.NullPointerException
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:213)
    at Mine15029.EnderMage.BlockManager.registerCraftingRecipes(BlockManager.java:28)
    at Mine15029.EnderMage.EnderMageMod.init(EnderMageMod.java:121)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
    at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
    at net.minecraft.client.Minecraft.run(Minecraft.java:733)
    at java.lang.Thread.run(Thread.java:722)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    -- System Details --
    Details:
    Minecraft Version: 1.5.2
    Operating System: Windows 8 (amd64) version 6.2
    Java Version: 1.7.0_07, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 993901520 bytes (947 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v7.51 FML v5.2.23.738 Minecraft Forge 7.8.1.738 4 mods loaded, 4 mods active
    mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML{5.2.23.738} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    Forge{7.8.1.738} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    EnderMageMod{Beta} [The Ender-Mage Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
    LWJGL: 2.4.2
    OpenGL: 256MB ATI Radeon X1300PRO GL version 2.0.6479 Release, ATI Technologies Inc.
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null


    I have no idea how to solve this now...
    Posted in: Modification Development
  • 0

    posted a message on The Ender-Mage mod help...
    Nvm... I had to manually import it by typing import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    Posted in: Modification Development
  • 0

    posted a message on The Ender-Mage mod help...
    Solved! Now... A multiblock structure. I've just done a lot and now I get an error and Minecraft won't start:

    @PreInit
    public void preInit(FMLPreInitializationEvent event)
    {
      Configuration configFile = new Configuration(event.getSuggestedConfigurationFile());
      configFile.load();
     
      ModConfig.BlockIDs.EnderInfuserCore = configFile.getBlock("EnderInfuserCore", ModConfig.BlockIDs.EnderInfuserCore).getInt();
      ModConfig.BlockIDs.EnderInfuserDummy = configFile.getBlock("EnderInfuserDummy", ModConfig.BlockIDs.EnderInfuserDummy).getInt();
     
      if(configFile.hasChanged())
       configFile.save();
    }


    I get the problem at FMLPreInitializationEvent so I have no idea what to do.
    Posted in: Modification Development
  • 0

    posted a message on Making a Mod
    For me... I'm modding in minecraft 1.5.2 with forge and so far Wuppy and SCMowns are really good. But if you don't want to do programming just use MCreator (Isn't as good as programming).
    Posted in: Mods Discussion
  • 0

    posted a message on What is the best mod ever made?
    non-magic :P I like IC2 with addons...
    magic. Thaumcraft 3!!!
    Posted in: Mods Discussion
  • 0

    posted a message on Modding for Dummies!
    Buy it on the Xbox 360 and only get it on the Xbox 360. Buy it on PC and get it only on PC.

    I have Minecraft on PC and Xbox 360.
    Posted in: Mods Discussion
  • 0

    posted a message on The Ender-Mage mod help...
    Typing... Typing... Typing... Testing... Not working!!! :(
    Posted in: Modification Development
  • 0

    posted a message on The Ender-Mage mod help...
    Great! I was also planning a 5x5 table too.
    Posted in: Modification Development
  • 0

    posted a message on The Ender-Mage mod help...
    Ok... So far I have made a few blocks, a few items, a very rare ore in the end, a few crafting recipes and a new furnace. Now i need a new crafting table but I have no idea how to make one. I've managed to make the block but I can't seem to open the GUI. Can anyone help or lead me to a tutorial on how to make a new crafting table?
    Posted in: Modification Development
  • 0

    posted a message on New furnace help...
    Fixed it! After an hour reading over the files slowly and fixing a bunch of bugs... Now the burning texture doesn't work. Another bug. <_<
    Posted in: Modification Development
  • 0

    posted a message on New furnace help...
    I'm still working on this mod (Using forge. Minecraft v1.5.2)... another problem I can't solve out of all the problems that I've solved.

    When I smelt something in the new furnace I crash and get the error:

    ---- Minecraft Crash Report ----
    // On the bright side, I bought you a teddy bear!
    Time: 28/09/13 9:51 PM
    Description: Ticking tile entity
    java.lang.NullPointerException
    at Mine15029.EnderMage.TileEntityEnderSmelter.smeltItem(TileEntityEnderSmelter.java:349)
    at Mine15029.EnderMage.TileEntityEnderSmelter.updateEntity(TileEntityEnderSmelter.java:296)
    at net.minecraft.world.World.updateEntities(World.java:2202)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:654)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:573)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
    at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    -- Head --
    Stacktrace:
    at Mine15029.EnderMage.TileEntityEnderSmelter.smeltItem(TileEntityEnderSmelter.java:349)
    at Mine15029.EnderMage.TileEntityEnderSmelter.updateEntity(TileEntityEnderSmelter.java:296)
    -- Tile entity being ticked --
    Details:
    Name: TileEntitiyEnderSmelter // Mine15029.EnderMage.TileEntityEnderSmelter
    Block type: ID #3002 (tile.EnderSmelterIdle // Mine15029.EnderMage.EnderSmelter)
    Block data value: 2 / 0x2 / 0b0010
    Block location: World: (267,70,-147), Chunk: (at 11,4,13 in 16,-10; contains blocks 256,0,-160 to 271,255,-145), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Actual block type: ID #62 (tile.furnace // net.minecraft.block.BlockFurnace)
    Actual block data value: 2 / 0x2 / 0b0010
    Stacktrace:
    at net.minecraft.world.World.updateEntities(World.java:2202)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
    -- Affected level --
    Details:
    Level name: New World
    All players: 1 total; [EntityPlayerMP['Player77'/238, l='New World', x=266.70, y=70.00, z=-148.63]]
    Chunk stats: ServerChunkCache: 625 Drop: 0
    Level seed: 916417991548600392
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options:
    Level spawn location: World: (252,64,-160), Chunk: (at 12,4,0 in 15,-10; contains blocks 240,0,-160 to 255,255,-145), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Level time: 39615 game time, 30407 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 135264 (now: false), thunder time: 171043 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
    Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:654)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:573)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
    at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
    -- System Details --
    Details:
    Minecraft Version: 1.5.2
    Operating System: Windows 8 (amd64) version 6.2
    Java Version: 1.7.0_07, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 917922840 bytes (875 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 3200 (179200 bytes; 0 MB) allocated, 2671 (149576 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63
    FML: MCP v7.51 FML v5.2.23.738 Minecraft Forge 7.8.1.738 4 mods loaded, 4 mods active
    mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    FML{5.2.23.738} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Forge{7.8.1.738} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    EnderMageMod{Beta 1.5} [The Ender-Mage Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 4002 (224112 bytes; 0 MB) allocated, 2180 (122080 bytes; 0 MB) used
    Player Count: 1 / 8; [EntityPlayerMP['Player77'/238, l='New World', x=266.70, y=70.00, z=-148.63]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'


    And this is TileEntityEnderSmelter:

    package Mine15029.EnderMage;
    import cpw.mods.fml.common.registry.GameRegistry;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockFurnace;
    import net.minecraft.block.material.Material;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.inventory.ISidedInventory;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraft.item.ItemHoe;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.ItemSword;
    import net.minecraft.item.ItemTool;
    import net.minecraft.item.crafting.FurnaceRecipes;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.nbt.NBTTagList;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraftforge.common.ForgeDirection;
    import net.minecraftforge.common.ForgeDummyContainer;
    public class TileEntityEnderSmelter extends TileEntity implements ISidedInventory, net.minecraftforge.common.ISidedInventory
    {
    private static final int[] field_102010_d = new int[] {0};
    private static final int[] field_102011_e = new int[] {2, 1};
    private static final int[] field_102009_f = new int[] {1};
    /**
         * The ItemStacks that hold the items currently being used in the furnace
         */
    private ItemStack[] furnaceItemStacks = new ItemStack[3];
    /** The number of ticks that the furnace will keep burning */
    public int furnaceBurnTime = 0;
    /**
         * The number of ticks that a fresh copy of the currently-burning item would keep the furnace burning for
         */
    public int currentItemBurnTime = 0;
    /** The number of ticks that the current item has been cooking for */
    public int furnaceCookTime = 0;
    private String field_94130_e;
    /**
         * Returns the number of slots in the inventory.
         */
    public int getSizeInventory()
    {
         return this.furnaceItemStacks.length;
    }
    /**
         * Returns the stack in slot i
         */
    public ItemStack getStackInSlot(int par1)
    {
         return this.furnaceItemStacks[par1];
    }
    /**
         * Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
         * new stack.
         */
    public ItemStack decrStackSize(int par1, int par2)
    {
         if (this.furnaceItemStacks[par1] != null)
         {
             ItemStack itemstack;
             if (this.furnaceItemStacks[par1].stackSize <= par2)
             {
                 itemstack = this.furnaceItemStacks[par1];
                 this.furnaceItemStacks[par1] = null;
                 return itemstack;
             }
             else
             {
                 itemstack = this.furnaceItemStacks[par1].splitStack(par2);
                 if (this.furnaceItemStacks[par1].stackSize == 0)
                 {
                     this.furnaceItemStacks[par1] = null;
                 }
                 return itemstack;
             }
         }
         else
         {
             return null;
         }
    }
    /**
         * When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
         * like when you close a workbench GUI.
         */
    public ItemStack getStackInSlotOnClosing(int par1)
    {
         if (this.furnaceItemStacks[par1] != null)
         {
             ItemStack itemstack = this.furnaceItemStacks[par1];
             this.furnaceItemStacks[par1] = null;
             return itemstack;
         }
         else
         {
             return null;
         }
    }
    /**
         * Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
         */
    public void setInventorySlotContents(int par1, ItemStack par2ItemStack)
    {
         this.furnaceItemStacks[par1] = par2ItemStack;
         if (par2ItemStack != null &amp;&amp; par2ItemStack.stackSize > this.getInventoryStackLimit())
         {
             par2ItemStack.stackSize = this.getInventoryStackLimit();
         }
    }
    /**
         * Returns the name of the inventory.
         */
    public String getInvName()
    {
         return this.isInvNameLocalized() ? this.field_94130_e : "Ender Smelter";
    }
    /**
         * If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's
         * language. Otherwise it will be used directly.
         */
    public boolean isInvNameLocalized()
    {
         return this.field_94130_e != null &amp;&amp; this.field_94130_e.length() > 0;
    }
    public void func_94129_a(String par1Str)
    {
         this.field_94130_e = par1Str;
    }
    /**
         * Reads a tile entity from NBT.
         */
    public void readFromNBT(NBTTagCompound par1NBTTagCompound)
    {
         super.readFromNBT(par1NBTTagCompound);
         NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items");
         this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];
         for (int i = 0; i < nbttaglist.tagCount(); ++i)
         {
             NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
             byte b0 = nbttagcompound1.getByte("Slot");
             if (b0 >= 0 &amp;&amp; b0 < this.furnaceItemStacks.length)
             {
                 this.furnaceItemStacks[b0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
             }
         }
         this.furnaceBurnTime = par1NBTTagCompound.getShort("BurnTime");
         this.furnaceCookTime = par1NBTTagCompound.getShort("CookTime");
         this.currentItemBurnTime = getItemBurnTime(this.furnaceItemStacks[1]);
         if (par1NBTTagCompound.hasKey("Ender Smelter"))
         {
             this.field_94130_e = par1NBTTagCompound.getString("Ender Smelter");
         }
    }
    /**
         * Writes a tile entity to NBT.
         */
    public void writeToNBT(NBTTagCompound par1NBTTagCompound)
    {
         super.writeToNBT(par1NBTTagCompound);
         par1NBTTagCompound.setShort("BurnTime", (short)this.furnaceBurnTime);
         par1NBTTagCompound.setShort("CookTime", (short)this.furnaceCookTime);
         NBTTagList nbttaglist = new NBTTagList();
         for (int i = 0; i < this.furnaceItemStacks.length; ++i)
         {
             if (this.furnaceItemStacks[i] != null)
             {
                 NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                 nbttagcompound1.setByte("Slot", (byte)i);
                 this.furnaceItemStacks[i].writeToNBT(nbttagcompound1);
                 nbttaglist.appendTag(nbttagcompound1);
             }
         }
         par1NBTTagCompound.setTag("Items", nbttaglist);
         if (this.isInvNameLocalized())
         {
             par1NBTTagCompound.setString("Ender Smelter", this.field_94130_e);
         }
    }
    /**
         * Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. *Isn't
         * this more of a set than a get?*
         */
    public int getInventoryStackLimit()
    {
         return 64;
    }
    @SideOnly(Side.CLIENT)
    /**
         * Returns an integer between 0 and the passed value representing how close the current item is to being completely
         * cooked
         */
    public int getCookProgressScaled(int par1)
    {
         return this.furnaceCookTime * par1 / 200;
    }
    @SideOnly(Side.CLIENT)
    /**
         * Returns an integer between 0 and the passed value representing how much burn time is left on the current fuel
         * item, where 0 means that the item is exhausted and the passed value means that the item is fresh
         */
    public int getBurnTimeRemainingScaled(int par1)
    {
         if (this.currentItemBurnTime == 0)
         {
             this.currentItemBurnTime = 200;
         }
         return this.furnaceBurnTime * par1 / this.currentItemBurnTime;
    }
    /**
         * Returns true if the furnace is currently burning
         */
    public boolean isBurning()
    {
         return this.furnaceBurnTime > 0;
    }
    /**
         * Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count
         * ticks and creates a new spawn inside its implementation.
         */
    public void updateEntity()
    {
         boolean flag = this.furnaceBurnTime > 0;
         boolean flag1 = false;
         if (this.furnaceBurnTime > 0)
         {
             --this.furnaceBurnTime;
         }
         if (!this.worldObj.isRemote)
         {
             if (this.furnaceBurnTime == 0 &amp;&amp; this.canSmelt())
             {
                 this.currentItemBurnTime = this.furnaceBurnTime = getItemBurnTime(this.furnaceItemStacks[1]);
                 if (this.furnaceBurnTime > 0)
                 {
                     flag1 = true;
                     if (this.furnaceItemStacks[1] != null)
                     {
                         --this.furnaceItemStacks[1].stackSize;
                         if (this.furnaceItemStacks[1].stackSize == 0)
                         {
                             this.furnaceItemStacks[1] = this.furnaceItemStacks[1].getItem().getContainerItemStack(furnaceItemStacks[1]);
                         }
                     }
                 }
             }
             if (this.isBurning() &amp;&amp; this.canSmelt())
             {
                 ++this.furnaceCookTime;
                 if (this.furnaceCookTime == 200)
                 {
                     this.furnaceCookTime = 0;
                     this.smeltItem();
                     flag1 = true;
                 }
             }
             else
             {
                 this.furnaceCookTime = 0;
             }
             if (flag != this.furnaceBurnTime > 0)
             {
                 flag1 = true;
                 BlockFurnace.updateFurnaceBlockState(this.furnaceBurnTime > 0, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
             }
         }
         if (flag1)
         {
             this.onInventoryChanged();
         }
    }
    /**
         * Returns true if the furnace can smelt an item, i.e. has a source item, destination stack isn't full, etc.
         */
    private boolean canSmelt()
    {
         if (this.furnaceItemStacks[0] == null)
         {
             return false;
         }
         else
         {
             ItemStack itemstack = EnderSmelterRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);
             if (itemstack == null) return false;
             if (this.furnaceItemStacks[2] == null) return true;
             if (!this.furnaceItemStacks[2].isItemEqual(itemstack)) return false;
             int result = furnaceItemStacks[2].stackSize + itemstack.stackSize;
             return (result <= getInventoryStackLimit() &amp;&amp; result <= itemstack.getMaxStackSize());
         }
    }
    /**
         * Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack
         */
    public void smeltItem()
    {
         if (this.canSmelt())
         {
             ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);
             if (this.furnaceItemStacks[2] == null)
             {
                 this.furnaceItemStacks[2] = itemstack.copy();
             }
             else if (this.furnaceItemStacks[2].isItemEqual(itemstack))
             {
                 furnaceItemStacks[2].stackSize += itemstack.stackSize;
             }
             --this.furnaceItemStacks[0].stackSize;
             if (this.furnaceItemStacks[0].stackSize <= 0)
             {
                 this.furnaceItemStacks[0] = null;
             }
         }
    }
    /**
         * Returns the number of ticks that the supplied fuel item will keep the furnace burning, or 0 if the item isn't
         * fuel
         */
    public static int getItemBurnTime(ItemStack par0ItemStack)
    {
         if (par0ItemStack == null)
         {
             return 0;
         }
         else
         {
             int i = par0ItemStack.getItem().itemID;
             Item item = par0ItemStack.getItem();
             if (par0ItemStack.getItem() instanceof ItemBlock &amp;&amp; Block.blocksList[i] != null)
             {
                 Block block = Block.blocksList[i];
                 if (block == Block.woodSingleSlab)
                 {
                     return 150;
                 }
                 if (block.blockMaterial == Material.wood)
                 {
                     return 300;
                 }
             }
             if (i == Item.enderPearl.itemID) return 200;
             if (i == Item.eyeOfEnder.itemID) return 400;
             return GameRegistry.getFuelValue(par0ItemStack);
         }
    }
    /**
         * Return true if item is a fuel source (getItemBurnTime() > 0).
         */
    public static boolean isItemFuel(ItemStack par0ItemStack)
    {
         return getItemBurnTime(par0ItemStack) > 0;
    }
    /**
         * Do not make give this method the name canInteractWith because it clashes with Container
         */
    public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
    {
         return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;
    }
    public void openChest() {}
    public void closeChest() {}
    /**
         * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
         */
    public boolean isStackValidForSlot(int par1, ItemStack par2ItemStack)
    {
         return par1 == 2 ? false : (par1 == 1 ? isItemFuel(par2ItemStack) : true);
    }
    /**
         * Returns an array containing the indices of the slots that can be accessed by automation on the given side of this
         * block.
         */
    public int[] getAccessibleSlotsFromSide(int par1)
    {
         return par1 == 0 ? field_102011_e : (par1 == 1 ? field_102010_d : field_102009_f);
    }
    /**
         * Returns true if automation can insert the given item in the given slot from the given side. Args: Slot, item,
         * side
         */
    public boolean canInsertItem(int par1, ItemStack par2ItemStack, int par3)
    {
         return this.isStackValidForSlot(par1, par2ItemStack);
    }
    /**
         * Returns true if automation can extract the given item in the given slot from the given side. Args: Slot, item,
         * side
         */
    public boolean canExtractItem(int par1, ItemStack par2ItemStack, int par3)
    {
         return par3 != 0 || par1 != 1 || par2ItemStack.itemID == Item.bucketEmpty.itemID;
    }
    /***********************************************************************************
         * This function is here for compatibilities sake, Modders should Check for
         * Sided before ContainerWorldly, Vanilla Minecraft does not follow the sided standard
         * that Modding has for a while.
         *
         * In vanilla:
         *
         * Top: Ores
         * Sides: Fuel
         * Bottom: Output
         *
         * Standard Modding:
         * Top: Ores
         * Sides: Output
         * Bottom: Fuel
         *
         * The Modding one is designed after the GUI, the vanilla one is designed because its
         * intended use is for the hopper, which logically would take things in from the top.
         *
         * This will possibly be removed in future updates, and make vanilla the definitive
         * standard.
         */
    @Override
    public int getStartInventorySide(ForgeDirection side)
    {
         if (ForgeDummyContainer.legacyFurnaceSides)
         {
             if (side == ForgeDirection.DOWN) return 1;
             if (side == ForgeDirection.UP) return 0;
             return 2;
         }
         else
         {
             if (side == ForgeDirection.DOWN) return 2;
             if (side == ForgeDirection.UP) return 0;
             return 1;
         }
    }
    @Override
    public int getSizeInventorySide(ForgeDirection side)
    {
         return 1;
    }
    }


    If you need any more info just ask me.
    Posted in: Modification Development
  • To post a comment, please .