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.

Leaderboard

Popular Content

Showing content with the highest reputation on 03/18/19 in all areas

  1. Use this.setContainerItem in your Hammer Item class.
  2. You never add your registry handler class to the game’s event bus, so your registry handlers are never called. To fix the problem, annotate your registry handler class with @EventBusSubscriber. Apart from that, there are some bad practices in your code: Stop using ItemBase and BlockBase (abusing inheritance). Do not use static initializers (likely to cause unpredictable errors). Stop using IHasModel (all items and blocks have models, thus the IHasModel interface is unnecessary). The detailed reasons are listed here: http://www.minecraftforge.net/forum/topic/61757-common-issues-and-recommendations/
  3. You have to send the data back to the client too. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L94-L99 Note that that may not the best method (and that it is invoked elsewhere when the TE's data changes). It ended up being what worked for me. You will also need to override getUpdatePacket, getUpdateTag, and onDataPacket. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L174-L189
  4. To get blockstate use Block#getDefaultState() Block is the block you want to place, you can get it from block list like Blocks class To get block by registry name, try going through ForgeRegistry

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.