Jump to content

Recommended Posts

Posted

I'm trying to make a 5x5 crafting table and i want it to drop the items on close. Here's what I've tried:

public void onContainerClosed(EntityPlayer playerIn)

      {super.onContainerClosed(playerIn);

          for(int i=0;i<25;i++){if(te.getStackInSlot(i)!=null){

         

          ItemStack slot=new ItemStack(te.getStackInSlot(i).getItem(),1,te.getStackInSlot(i).getMetadata());

          te.removeStackFromSlot(i);

          worldIn.spawnEntityInWorld(new EntityItem(worldIn, playerIn.posX,playerIn.posY,playerIn.posZ,slot));}

          }

      }

Posted

Well, i'm trying to create a 5x5 crafting table with custom recipe. I've done the gui but i haven't got it to work properly yet. Can you help me with that?

Posted

here is the containermodcrafting:

 

  Reveal hidden contents

 

I've read somewhere that I need a crafting manager and something else in oreder to make custom recipe, but I haven't figure out how to do that yet

EDIT: I've found a solution. Thanks for your help earlier(that was for a half-crafting table)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.