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

So I'm trying to make an item, once you right click it, it opens a GUI & container etc... but I don't think I can use a tile entity to store data for this (cause an item isn't a tile). Is there like an alternate tile entity for items or something? Or a way to store nbt data for the container and add slots? Thnx

ItemStacks can hold NBT themselves.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

ItemStacks can hold NBT themselves.

What I mean is, I want to have like a tile entity but for an item. So when I right click the item i can put stuff in different slots. (Like a backpack sort of). Something similar to the way the villager GUI screen works... (Cause the villager screen doesn't have a tile entity)

Just to clarify. You do NOT need a tile entity for an inventory you just need a class that implements IInventory. The tutorial linked by BinaryCPG explains how to create and use an IInventory class for items.

I am the author of Draconic Evolution

Just in case you have some interest,

 

I made some system called "ItemEntity" which is TileEntity for Items.

You don't need it in this case, but if you want some Position-Based Item functionality,

You would really need something like my "ItemEntity", as ItemStack does not contain any position information.

 

So.. if you have any interest, PM me.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

Just in case you have some interest,

 

I made some system called "ItemEntity" which is TileEntity for Items.

You don't need it in this case, but if you want some Position-Based Item functionality,

You would really need something like my "ItemEntity", as ItemStack does not contain any position information.

 

So.. if you have any interest, PM me.

Thanks for the side info. If I ever need to use a position based item, i know your the guy to talk to ;)

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.