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 04/28/17 in Posts

  1. You need to call World#notifyBlockUpdate from the TileEntity whenever a value used by Block#getActualState changes. This tells the server to send the TileEntity's update packet to any nearby clients as well as telling them to re-draw the chunk containing the block, using the new actual state to select the model. You also need to call World#notifyBlockUpdate from TileEntity#onDataPacket so that the client re-draws the chunk whenever it receives the TileEntity's update packet. You can see an example of a block that uses TileEntity data in Block#getActualState here: BlockColoredRotatable, TileEntityColoredRotatable
  2. What the hell is this? Also, do not use the ItemModelMesher, use the ModelLoader in preInit.
  3. Post the console log, it will almost always contain information about rendering errors.
  4. Well, you aren't actually rendering anything in the TESR. It's not linked to model for the blockstate that the tileentity inhabits. In your block, override getRenderType(IBlockState) to return EnumBlockRenderType.INVISIBLE. This essentially tells Minecraft "hey, you don't have to worry about rendering this block, I'm going to handle it myself". In your TESR, call Minecraft::renderModel and provide a cached IBakedModel that was manually gained from the JSON. I get a BakedModel and cache it here, and render it here.(minus the bindTexture part).
  5. He shouldn't even be using those classes, as there's a new way of client/server communication (SimpleNetworkWrapper).

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.