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.

Lindenk

Members
  • Joined

  • Last visited

  1. Ah! So that's what NBTTagCompound is used for. Thanks.
  2. Does the entity still exist when the item is in an inventory? I'm trying to give an item an inventory that you can open from your inventory (kind of like a bag). Edit: When I initially said item entity, I meant like a tile entity but for an Item/ItemStack, instead of a block.
  3. Hello all I'm trying to initialize an item when an ItemStack of it has entered the world without much luck. The Item.onCreated() method seems to only be called when the item is crafted or smelted but not when pulled out of a creative tab and I don't see any form of onDestroy() method. For a little more info, I'm trying to implement item entities but I need to bind them to their respective item by saving a unique identifier to the item's metadata. And this needs to be done only once, when the item enters the world, and the entity needs to be destroyed when the item leaves the world. Is there any way forge can help me with this problem? Or have I just missed something in vanilla?
  4. It would provide more versatility to how things are initialized. I rather like the idea that I can add something without needing to register it in a million places (well maybe not a million but still).

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.