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.

herbix

Forge Modder
  • Joined

  • Last visited

Everything posted by herbix

  1. Considering multiplayer: @Override @SideOnly(Side.CLIENT) public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) { Minecraft mc = Minecraft.getMinecraft(); boolean isFirstPersonView = mc.thePlayer.getUniqueID().equals(player.getUniqueID()) && mc.gameSettings.thirdPersonView == 0; if(isFirstPersonView) { /* ... */ } else { /* ... */ } return null; } Thank you, TGG.
  2. Thanks a lot. But my Item.getModel looks like this: public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) { ... } There's no camera informations in this method. I don't know whether it's first person or third.
  3. OreDictionary is mainly for crafting, so all blocks are converted to items when registered. Block lit_redstone_ore doesn't have a corresponding item. This caused the exception. Maybe it's a mistake doing this by OreDictionary.
  4. Maybe you should do this in init(FMLInitializationEvent event) not preInit(FMLPreInitializationEvent event)?
  5. Try this: protected void onImpact(MovingObjectPosition p_70184_1_) { if(!this.worldObj.isRemote) { this.worldObj.createExplosion((Entity) null, this.posX, this.posY, this.posZ, 5.0f, true); this.setDead(); } } You only need to create explosion in server side. The explosion data would be transported to client side via network. The last parameter of createExplosion decides whether to destroy blocks. Set it false if you don't want blocks destroyed.
  6. I am trying to render an item which looks different in first person and third person view. And in vanillia minecraft, filled map is the only item satisfies it. I read the code but got confused. I didn't find the methods rendering hands and map, and even json model named "item/filled_map" is rendered. So I need help about rendering mechanism of filled map. And is it feasible to render my own items in this way?
  7. I used json-model in most cases. But when I'm render a block which changes its apperance by other blocks nearby, the problems are found. Usually Block.getActualState is used. But what if there are hundreds of states? Also, it's not a tile entity. I can't do it with TileEntitySpecialRenderer. So is there any easier way for me to do this? Just like ISimpleBlockRenderingHandler did in 1.7.x. --Update-- Maybe I have found the answer... Using Block.getExtendedState together with ISmartBlockModel can do this.
  8. Thanks. I just recognized that I should use *Decomp* not *Dev*.
  9. I downloaded minecraft forge src, and installed it using "gradlew setupDevWorkspace eclipse". But when I opened eclipse, I found out there was no source attached to the forge library. It was "forgeBin", not "forgeSrc". Then I searched in this forum, but didn't get answer. I need your help. Thanks. The version is forge-1.8-11.14.1.1334.

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.