Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] Tile Entity for items.[Solved]


Recommended Posts

Design with Item+IInventory, saving to ItemStack's NBT, showing with GuiContainer and Container.


Thankyou!  It's working for the most part.  I'm going to work on saving the items after I figure out how many items the itemstack can hold.


I am, however, having a different problem.  When I shift click an item from my inventory while I have the gui open, it disappears.  Same thing happens when I shift click from it's inventory.


When I drag and drop an item into the itemstacks inventory, the stack size is doubled.


It's getting late and I've checked many locations for the error, but am still unsure as to what it is.  Any help is greatly appreciated!


Thanks a bunch!



ItemStack.  -- It's messy:(  Sorry








Link to comment
Share on other sites

Few things:

1. There is only one Item instance in whole game. You can't have any field there as they will be shared.

2. I might have been unclear with "Item+IInventory", sorry. You want rather separate implementations since as told - there is one Item per game, but there may be more inventories. You want to create inventory and fill it with data from ItemStack's NBT when you open your Container and make container display this inventory.


I don't know why I didn't link this alredy:


1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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