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.

Minemeister01

Members
  • Joined

  • Last visited

  1. I would create a variable in the base class with my modid, like this: public static final String modid = "[Your Modid]"; Then I would move the texture localasition from: "mcp/src/minecraft/assest/mobdrops/textures/armor" to "mcp/src/minecraft/assest/[Your Modid]/textures/armor" now I would change this Method public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { if (stack.toString().contains("leggings")) { return "/assests/minecraft/textures/armor/wolf_2"; } if (stack.toString().contains("Leggings")) { return "/assests/minecraft/textures/armor/wolf_2"; } return "/assests/minecraft/textures/armor/wolf_1"; } to something like this Method: public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { if(stack.itemID == [Your Base Class].[Your Helmet].itemID || stack.itemID == [Your Base Class].[Your Chestplate].itemID || stack.itemID == [Your Base Class].[Your Helmet].[Your Boots].itemID) { return armorTexture+ "wolf_1.png"; } if(stack.itemID == [Your Base Class].[Your Leggins].itemID) { return armorTexture+ "wolf_2.png"; } } and the variable "armorTexture" I would define so: private final String armorTexture = [Your Base Class].modid + "textures/armor/"; I hope you can understand this.
  2. I need a way to register Particles for my mod and I see no other way. I hope it can be done by the Minecraft Forge Team.
  3. No Problem, I have had the same problem.
  4. Change this Line: public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack) into this Line: public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack)
  5. Thank you all, but I have found the code in the BlockFurnace Class which Draco had said to me. Thanks Draco.
  6. Sorry, I don't meaned sub blocks but thanks. I meaned a multitextured block. I'll change the Discripion
  7. I would make a Block which faces with a specific Texture to the Player. All siedes have one texture and here is the code of the class: And the code of the CreateMultiTexturedBlock class: I want that "side_1" faces to the player. I hope that anyone can help me.
  8. The IArmorTextureProvider is Deprecated and I don#t know what can I do that this function again. I have tried this Code with the Comment in this Interface: Code deleted This Code isn't function, what can I do?
  9. Tanks. It works fine. It's a pity that the Forge Markers don't expand this range.
  10. I want to create a Biome for my Mod, but I can't add to .topBlock or .fillerBlock my own Blocks. Has anyone a soulution for me?

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.