• 0

    posted a message on [Help] Custom Crafting table recipe help
    Hello Everyone, Im working on a mod and ive added a new crafting table but i dont know what code i need to use for the recipe

    Here is my container

    any help is thanked

    public class ContainerAssemblyBench extends Container
    {
        /** The crafting matrix inventory (3x3). */
        public InventoryCrafting craftMatrix = new InventoryCrafting(this, 4, 4);
    //  public InventoryCrafting assemblyMatrix = new InventoryCrafting(this,4,4);
       
        public IInventory craftResult = new InventoryCraftResult();
        private World worldObj;
        private int posX;
        private int posY;
        private int posZ;
        public ContainerAssemblyBench(InventoryPlayer par1InventoryPlayer,World par2World, int par3, int par4, int par5)
        {
    	    this.worldObj = par2World;
    	    this.posX = par3;
    	    this.posY = par4;
    	    this.posZ = par5;
    	    this.addSlotToContainer(new SlotCrafting(par1InventoryPlayer.player, this.craftMatrix, this.craftResult, 0, 142, 51));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 3, 49 + 0 * 4 , 46 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 4, 49 + 0 * 4 , 10 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 5, 84 + 0 * 4 , 10 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 6, 13 + 0 * 4 , 10 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 7, 13 + 0 * 4 , 46 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 8, 84 + 0 * 4 , 46 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 9, 31 + 0 * 4 , 82 + 4 * 1));
    	    this.addSlotToContainer(new Slot(this.craftMatrix, 10, 67 + 0 * 4 , 82 + 4 * 1));
    	   
    	    int l;
    	    int i1;
    	    //Test 4x4 table
    	   
    //	    for (l = 0; l < 4; ++l)
    //	    {
    //		    for (i1 = 0; i1 < 4; ++i1)
    //		    {
    //			    this.addSlotToContainer(new Slot(this.assemblyMatrix, i1 + l * 3, 30 + i1 * 18, 17 + l * 18));
    //		    }
    //	    }
    	   
    //	    Crafting Space
    //	    for (l = 0; l < 3; ++l)
    //	    {
    //		    for (i1 = 0; i1 < 3; ++i1)
    //		    {
    //			    this.addSlotToContainer(new Slot(this.craftMatrix, i1 + l * 3, 30 + i1 * 18, 17 + l * 18));
    //		    }
    //	    }
    	    //Invetory
    	    for (l = 0; l < 3; ++l)
    	    {
    		    for (i1 = 0; i1 < 9; ++i1)
    		    {
    			    this.addSlotToContainer(new Slot(par1InventoryPlayer, i1 + l * 9 + 9, 8 + i1 * 18, 114 + l * 18));
    		    }
    	    }
    	    // Hot bar
    	    for (l = 0; l < 9; ++l)
    	    {
    		    this.addSlotToContainer(new Slot(par1InventoryPlayer, l, 8 + l * 18, 172));
    	    }
    	    this.onCraftMatrixChanged(this.craftMatrix);
        }
        /**
    	 * Callback for when the crafting matrix is changed.
    	 */
        public void onCraftMatrixChanged(IInventory par1IInventory)
        {
    	    this.craftResult.setInventorySlotContents(0, AssemblyBenchManager.getInstance().findMatchingRecipe(this.craftMatrix, this.worldObj));
        }
        /**
    	 * Called when the container is closed.
    	 */
        public void onContainerClosed(EntityPlayer par1EntityPlayer)
        {
    	    super.onContainerClosed(par1EntityPlayer);
    	    if (!this.worldObj.isRemote)
    	    {
    		    for (int i = 0; i < 9; ++i)
    		    {
    			    ItemStack itemstack = this.craftMatrix.getStackInSlotOnClosing(i);
    			    if (itemstack != null)
    			    {
    				    par1EntityPlayer.dropPlayerItem(itemstack);
    			    }
    		    }
    	    }
        }
        public boolean canInteractWith(EntityPlayer par1EntityPlayer)
        {
    	    return this.worldObj.getBlockId(this.posX, this.posY, this.posZ) != MechTechCore.AssemblyBench.blockID ? false : par1EntityPlayer.getDistanceSq((double)this.posX + 0.5D, (double)this.posY + 0.5D, (double)this.posZ + 0.5D) <= 64.0D;
        }
        /**
    	 * Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.
    	 */
        public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
        {
    	    ItemStack itemstack = null;
    	    Slot slot = (Slot)this.inventorySlots.get(par2);
    	    if (slot != null && slot.getHasStack())
    	    {
    		    ItemStack itemstack1 = slot.getStack();
    		    itemstack = itemstack1.copy();
    		    if (par2 == 0)
    		    {
    			    if (!this.mergeItemStack(itemstack1, 10, 46, true))
    			    {
    				    return null;
    			    }
    			    slot.onSlotChange(itemstack1, itemstack);
    		    }
    		    else if (par2 >= 10 && par2 < 37)
    		    {
    			    if (!this.mergeItemStack(itemstack1, 37, 46, false))
    			    {
    				    return null;
    			    }
    		    }
    		    else if (par2 >= 37 && par2 < 46)
    		    {
    			    if (!this.mergeItemStack(itemstack1, 10, 37, false))
    			    {
    				    return null;
    			    }
    		    }
    		    else if (!this.mergeItemStack(itemstack1, 10, 46, false))
    		    {
    			    return null;
    		    }
    		    if (itemstack1.stackSize == 0)
    		    {
    			    slot.putStack((ItemStack)null);
    		    }
    		    else
    		    {
    			    slot.onSlotChanged();
    		    }
    		    if (itemstack1.stackSize == itemstack.stackSize)
    		    {
    			    return null;
    		    }
    		    slot.onPickupFromSlot(par1EntityPlayer, itemstack1);
    	    }
    	    return itemstack;
        }
        public boolean func_94530_a(ItemStack par1ItemStack, Slot par2Slot)
        {
    	    return par2Slot.inventory != this.craftResult && super.func_94530_a(par1ItemStack, par2Slot);
        }
    }
    Posted in: Modification Development
  • 0

    posted a message on The_Slayer's Modding tutorials! (5x3 Crafting Table)
    im getting & can not be resolved in nearly every class how will i fix this?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Concept Freebuild
    IGN - acidaphid123
    Posted in: PC Servers
  • 0

    posted a message on Whitelist[Hamachi][Creative]Rookie Craft![Bukkit 1.5]
    Minecraft Name: acidaphid123
    Age: 15
    Reason you want to join: im bored of playing on my own and with hamachi servers theres less of a chance for a greif attack from other people
    Have you been banned before?
    If yes why?: I have been banned but it was for being friends with another person who got banned (it was stupid) i was let on a few days later though
    Will you Greif?: no
    Posted in: PC Servers
  • 1

    posted a message on Starting a Modding/Dev Team
    im looking for more advanced modders for my modding team, we will be using Forge API to make our mods. I have some ideas for mods but will be taking suggestions you will need Skype so each modder can get in touch or to send Beta code and Textures, you will need to be able to speak/Type in English. Drop a reply if you want to get involved, please leave you Skype or pm With you Skype Name.

    Look for:
    Ruffly 3-5 Other Coders
    1-2 Texture-rs
    2 Modeler
    Some One To run a Private Server for the Testing (hamachi or port forwarded i don't mind)
    Posted in: Mods Discussion
  • 0

    posted a message on 1.4.5 Forge ScubaHelmet Help Needed
    Im trying to make a forge mod for 1.4.5 that will allow you to breath under water while wearing this helmet please post the code need in the post or add me on skype: acidaphid, I really want to make this mod and you will get some credit for helping me
    Posted in: Modification Development
  • 0

    posted a message on [1.3.1][WIP][SSP] SteamPunk1.1 (need Good Modders)
    sorry already got a tester
    Posted in: WIP Mods
  • 0

    posted a message on [1.3.1][WIP][SSP] SteamPunk1.1 (need Good Modders)
    Is No one intrested
    Posted in: WIP Mods
  • 0

    posted a message on lets play?
    can i play ign acidaphid123
    Posted in: PC Servers
  • 0

    posted a message on Need experienced builders for a timelapse team! Meridian TimeLapse
    IGN(MCname):AcidAphid123
    Age:14
    What are you best at when it comes to building?:Old Style houses or Giant Castles
    Skype Name(Can be given after acceptance to team):acidaphid123
    Experience with building(1-10):7
    Are you a good team player that doesn't argue?:i dont argue alot
    How long have you been playing MineCraft: since beta 1.7.3






    Screenshots/Video Of your builds:

    this video was a quick timelapse of a tree i done it when my friend was round cause i used his pc
    Posted in: PC Servers
  • 0

    posted a message on PARAGON GAMING!
    the servers 1.2.5
    Posted in: PC Servers
  • 0

    posted a message on PARAGON GAMING!
    yer i would love to join to cause i hate when people greif ip plz
    Posted in: PC Servers
  • 0

    posted a message on [1.3.1][WIP][SSP] SteamPunk1.1 (need Good Modders)
    Quote from TheSpaceMonkey

    Application


    IGN: J4ke114
    Skype (yes or no ) : Yup
    if yes Skype name:J4ke114
    What you want to do: Tester
    Something to show what you can do (I.E. links or pictures) Well I started a mod and released it in alpha stages link here, so I have a resanable understanding of modding.
    If you can run a server with this mod installed on once it is smp:


    i Have requested you on Skype
    Posted in: WIP Mods
  • 0

    posted a message on [1.3.1][WIP][SSP] SteamPunk1.1 (need Good Modders)
    Hi guys acidaphid123 here to show you my new mod SteamPunk Version 1.1 so far this mod is only ssp it will become smp soon once modloadermp gets updated

    Features

    New Tool Set Copper Tools (no Sword or Hoe)
    New Ore Copper ore
    New Ingot Copper ingot
    Adds in wooden Cogs and Copper Cogs
    Teleporter (Use TMI To get it)
    Tree Sap from Tree Saplings
    Rubber

    Thing i want to add in

    Armor Set
    Grinder(Truns Stuff into Powder)
    Weapons (I.E. Guns)
    New Mobs
    Genarated Structures


    Team Im looking for

    3 Coders
    2 modelers
    2 Texturers
    1 Tester (j4ke114)
    1 Server Host

    You can be only one

    Application


    IGN:
    Skype (yes or no ) :
    if yes Skype name:
    What you want to do
    Something to show what you can do (I.E. links or pictures)
    If you can run a server with this mod installed on once it is smp:


    Version 1.1

    http://adf.ly/BWil7

    Please Help out By donating so i can get a better computer so i can make this mod better!!!!!
    Posted in: WIP Mods
  • 0

    posted a message on OverKill Weapons Mod
    imagesdontwork
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.