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.

zacpier

Members
  • Joined

  • Last visited

  1. When you go down the Techne route, it's (very difficult/impossible) to make said block render in 3d in the inventory/hand
  2. I am using an [glow=white,2,300]ISimpleBlockRenderingHandler[/glow]. public class RendRobotTier1 implements ISimpleBlockRenderingHandler { public void render(IBlockAccess world, int x, int y, int z, Block b, int model, RenderBlocks r) { b.setBlockBounds(0.15F, 0, 0.15F, 0.85F, 1, 0.85F); r.renderStandardBlock(b, x, y, z); } @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { render(world,x,y,z,block,modelId,renderer); return true; } @Override public boolean shouldRender3DInInventory() { return true; } @Override public int getRenderId() { return RobocraftRenderProxy.t1BotRender; } @Override public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) { // TODO Auto-generated method stub //render(null, 0,0,0,block,modelID,renderer); } } As you can see, I have commented out the render code for "renderInventoryBlock". I know that it crashes. It crashes because of RenderBlocks trying to get light values. So how do I render an item in 3D? I'll give the best answerer a cape.

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.