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.

trulis

Forge Modder
  • Joined

  • Last visited

  1. How should i go about modifying the recipes so it uses my item and not emeralds ?
  2. Is there any way i can change it so the villagers no longer trade for emeralds but for my custom item ?
  3. it doesn't work with an item, just with blocks
  4. I am trying to make a shapeless recipe so you can dye a wool back to white wool but it is not working. GameRegistry.addShapelessRecipe(new ItemStack(Blocks.wool, 1, 0), new Object[] {new ItemStack(Items.dye, 1, 0), new ItemStack(Blocks.wool, 1, 1)});
  5. How could i make a custom block that would use the textures of a vanilla block and also if a texture pack is used, the custom block to use the texture for the vanilla block from the texture pack ?
  6. Now the only error i am getting is this one The method setIconIndex(int) is undefined for the type Item
  7. After i've updated my forge i am getting this errors in Eclipse and i don't understand why.
  8. trulis posted a topic in Modder Support
    How would i make it so a tool could be a shovel, axe, and pickaxe in one ?
  9. How i can change this so this ore is dropping an item with a metadata ? public int idDropped(int i, Random random, int j) { return TWPlus.metaShard.shiftedIndex; }
  10. Thanks for the clarification
  11. Use GameRegistry.registerBlock(block, "unique block name") instead This is an example from my mod. GameRegistry.registerBlock(cobaltBlock, "blockCobalt");
  12. What is best to use ModLoader.registerBlock or GameRegistry.registerBlock ?
  13. I am using forge 3.1.26.387 and my ores are not generating. Here is the code public void generateSurface(World world, Random rand, int chunkX, int chunkZ) { for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(46); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(cobaltOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(36); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(mithrilOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(26); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(adamantiteOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } }
  14. in minecraft.jar

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.