Jump to content

[1.7.10] Container/GUI Problems (+need help with crafting manager)


Recommended Posts

Posted

Hi!

For a new mod project i am working on with a few friends i created a 5x5 crafting table(+1 furnace slot).

I created my own recipes, crafting manager, container, te, gui... it works...somehow.

 

I ran into the following problems:

 

1.: When i click an item in my hotbar it is sometimes dropped (right-click-->whole stack is dropped)

 

2.: When i change the size of my window every slot is moved 1 px upwards.

 

3.: I want to use "shapes" in my crafting recipes. This means that the user has to fill all empty slots with either sand or bricks. I had the idea to simply switch null with sand/bricks in my findMatchingRecipe() function in my custom crafting manager. However, this somehow created an infinite loop. Any other ideas how to do this?

 

Source Code:

 

Design:

TzaSryE.png

 

TE:

 

  Reveal hidden contents

 

 

Container:

 

  Reveal hidden contents

 

GUI:

 

  Reveal hidden contents

 

 

CraftingManager

 

  Reveal hidden contents

 

 

And CraftingFurnace, this is where i keep all my recipes:

 

  Reveal hidden contents

 

 

Here could be your advertisement!

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.