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.

RYxINATORx314

Members
  • Joined

  • Last visited

  1. I have followed the tutorial here ,http://www.minecraftforge.net/w/index.php?title=Key_Binding, and i am at the last step, The registration snippet: FMLCommonHandler.instance().bus().register(new KeyInputHandler()); but i am rather new to modding and i have no clue where to put the code, can someone help me? If this tutorial is outdated and doesn't work anymore (as far as i could find, it doesn't clearly state that), can someone show me or give me a link to a tutorial? Thank You in advance for helping me!
  2. try checking out the furnace or oak log classes, hope this helps
  3. try copy and pasting the cow entity into your class and merging the code
  4. Override addInformation like this: /** * allows items to add custom lines of information to the mouseover description */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { if (par1ItemStack.stackTagCompound != null) { String lineOfLore = "Lore You Want To Add"; par3List.add(EnumChatFormatting.DARK_PURPLE + lineOfLore); } } Oh and if you want a different color, you can change EnumChatFormatting.DARK_PURPLE to the color you want. Hope this helps. Thanks, and to multiple lines of lore? also do you have a place where i can find a list of the colors?
  5. and one more question, how can i add lore to an item?
  6. i suggest you post your code for the mob so we can see what you are missing or whats messing it up
  7. have you tried expanding its bounding box?
  8. thank you so much, you really are helpful is it possible to make it subtract durability when attacking mobs and breaking blocks?
  9. how can i make it remove durability onRightClick?
  10. I am wondering how to make an item behave like a tool, like have durability, be repairable via anvil, and cause damage like a sword? How can i accomplish such a task? Any and all help is appreciated, and I am new to modding so if you could show some sort of example code that would be wonderful. Thanks in advance!
  11. i tried messing around with this.onUpdate(); and... public void onUpdate(World world, double x, double y, double z, double velX, double velY, double velZ) { world.spawnParticle("portal", x + 1, y, z + 1, 1.0D, 1.0D, 1.0D); also... public void randomDisplayTick(World world, int x, int y, int z, Random random); if (random.nextInt(10) == 0) { world.spawnParticle("portal", (double)((float)x + random.nextFloat()), (double)((float)y + 1.1F), (double)((float)z + random.nextFloat()), 0.0D, 0.0D, 0.0D); }
  12. 1.7.10 and i tried that already, i couldn't get it to work, could you show me some sort of example code?
  13. I want to thank those who help me in advance, so i posted a few days ago except i worded my post oddly and none understood what i was trying to do, i apologize for that, this is what i was trying to say; I want to make particles spawn when you are holding an item, how can i accomplish this?

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.