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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. There isn't one in vanilla or within forge that uses two RenderTypes. And I'm not gonna scour github and other source sites looking for it. Did you test the usage of the method?
  2. public class MyEntity extends ProjectileItemEntity Done. You should replace this with just the string literal, "MODID:shuriken_entity"
  3. That's fine for them. But Forge's policy is stated in the LTS and I agree with it. Do you see Mojang actively supporting 1.8.9? Nope.
  4. You can get an Item from another mod via the registry. Check out the ForgeRegistries class.
  5. You can't do models/staff but you can do models/item/staff. Just make the registry name include the /staff part.
  6. 1.8.9 is no longer supported on this forum. For more information please read the LTS at the top of the page.
  7. When registering this way your methods need to be static. And I don't know how I didn't notice that on the first post.
  8. Oh you posted in the wrong subforum then. The Modder Support subforum is a place for people to ask about code used to make Minecraft Forge mods. You shouldn't be using Java 13. Use Java 8.
  9. 1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information please read the LTS at the top of the page.
  10. Post your code. Preferably as a github repo. If not just your main class for now.
  11. It's called every tick.
  12. This even doesn't exist within Minecraft Forge 1.15.2. Did you perhaps mean LivingEvent.LivingJumpEvent?
  13. Posting an event to the event bus doesn't do what you want. You should instead subcscribe to the FOVUpdateEvent. Read the documentation on events here.
  14. Assuming you have a PlayerEntity instance called player. player.giveExperiencePoints(-10); This will remove 10 experience points from the player. player.addExperienceLevel(-1); This will remove one level from the player.
  15. The mod event bus is only for mod life-cycle events like the FMLCommonSetupEvent. The event bus you want to use is the MinecraftForge.EVENT_BUS.
  16. The log methods not logging is an identifier that the method isn't running at all. Which means you didn't register it correctly. How did you register it.
  17. It's stored right in the PlayerEntity class. Specifically PlayerEntity::giveExperiencePoints
  18. 1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.
  19. Not sure which part you are answering. But you don't have the most up to date mcp mappings. Also what part about Did you not understand? Does ShieldRenderer::render even get called?
  20. I've got a couple of things to say. First and foremost: Please learn Java before trying to make a Minecraft Forge mod. Java itself is hard to learn let alone trying to learn an extensive API like Forge. Secondly: If you crash or an exception is thrown there is a lot of useful information inside the stacktrace. You should read it. If you don't know what it means google it. If that doesn't supply you with answers/enough information post the error. Thirdly: Why? Why not just put this in the accept function?
  21. You know you can edit posts, right? Also please update your mcp mappings. If you need to know how to do that google it.
  22. If simulate is true it only simulates adding the ItemStack to the IItemHandler. Why? Why not just put this in the accept function? Where is this code being called? Post all of it,
  23. Read the documentation on capabilities here.
  24. 1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.

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.