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.

M3rein

Members
  • Joined

  • Last visited

Everything posted by M3rein

  1. The enchanted glow is added to an item whenever Item::hasEffect returns true. So you'll probably have to override that to get it to return true, somehow. I'm a little confused by your syntax for creating items, so you'd have to look into that yourself.
  2. In short, the NBT data of a tile entity isn't being loaded properly. I've been messing with making a generator block which generates energy if given a certain type of fuel. That actual process of burning an item to generate power works fine, and it's saved to the tile entity fine too. I can burn something, exit the UI, reopen and everything is as it should be. When I leave the game, the NBT data appears to be saved correctly too, because I added a debug print upon writing NBT data that outputs the current energy value. Having burned one item, this is always non-zero (as it should be). If I rejoin the game though, I get various outputs. I also added a debug print when loading NBT data to output NBT data, but while the game is loading, it's called various times. I've added an output log in the spoiler below, so you can see exactly when the value is reset. Output log: TileEntityRubyGenerator: CustomEnergyStorage: If relevant, ContainerRubyGenerator: BlockTileEntity, which is essentially what the block class is of the ruby generator: If anyone knows what causes this odd behaviour, please let me know. If I've forgotten to share the necessary information to debug this issue, my apologies. I'm quite new to this scene.

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.