Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Item with Inventory

 

I want to create an Item that contains 9 ItemStacks.

The Item shouldn't have an GUI.

These ItemStacks should get filled if the item was in an specific machine

with specific Items that did get put in into the machine.

If the Item gets sneaked+rightclicked the ItemStacks should drop

on the ground or get transferred into the players inventory rightclicking.

There also should be a craftable variant of the item that's empty.

 

I got the basic Item class structure already. Just don't know how to

store the ItemStacks properly.

 

Any ideas? Thx

 

The TileEntitys are Going to kill us all and take over the entire (Minecraft) world!

Use NBT data, sort of like a chest but on your item.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

  • Author

The Problem is: a chest got an TileEntity storeing the data.

                        items don't seem to have something like that.

                        also: if i store the data in the MyItem.class the itemstacks

                        stored in there apply globally to all items created from

                        MyItem.class

The TileEntitys are Going to kill us all and take over the entire (Minecraft) world!

I'm using this tutorial atm

http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571597-1-7-2-1-6-4-custom-inventories-in-items-and it's about making what you wish for. Don't think there is that big of a difference from 1.7.2 to .10

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.