Jump to content

Recommended Posts

Posted

I am coding a multi-input output furnace(3 input, 3 output), I know how to add slots but I'm unsure how to add recipes to them correctly,

here is my code that I have:

 

tile entity:

 

  Reveal hidden contents

 

 

recipes:

 

  Reveal hidden contents

 

This is really taking me for loop can anyone help?

Posted
  On 6/28/2013 at 9:55 PM, mrminecraftiful said:

that was kinda vague, how would I use them in a for loop and does it go into the recipes or tileentity?

I have a nice 'n' efficient recipe system, which you are free to use if you like. Link to github is in my sig.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Posted

After reading threw your code, I found that what you do would require the recoding of all my classes, and also from what I saw it looks like this code uses almost like a shapeless crafting recipe.  What i need is if the input is a certain three items you get a certain three items. Do you know another way to do this?

Posted
  On 6/29/2013 at 12:50 AM, mrminecraftiful said:

After reading threw your code, I found that what you do would require the recoding of all my classes, and also from what I saw it looks like this code uses almost like a shapeless crafting recipe.  What i need is if the input is a certain three items you get a certain three items. Do you know another way to do this?

Sure. You will probably want some sort of recipe class, or at least a deep hashmap.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Posted
  On 6/29/2013 at 2:10 AM, mrminecraftiful said:

it would be great if you could put me on the right path  :)

Look, I'm not here to write your code for you. I'm here to tell you what you're doing wrong. If you don't understand how to code, there are books and tutorials available. If you have code and it doesn't work, I can probably tell you why.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Posted

you haven't told me anything...

you basically threw your code at me and I told you that it won't work for what I'm doing so I asked if you had any ideas and to point me in the right direction not to write the code for me, so yeah...

Posted
  On 6/29/2013 at 2:32 AM, mrminecraftiful said:

you haven't told me anything...

you basically threw your code at me and I told you that it won't work for what I'm doing so I asked if you had any ideas and to point me in the right direction not to write the code for me, so yeah...

I did point you in the right direction. Use a HashMap. Probably a HashMap<Integer[],ItemStack[]>, where you put the id/meta/amount args as the key and the outputs as the value.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

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.