Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

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. Show the actual code you have.
  10. 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.
  11. Post your code. Preferably as a github repo. If not just your main class for now.
  12. It's called every tick.
  13. This even doesn't exist within Minecraft Forge 1.15.2. Did you perhaps mean LivingEvent.LivingJumpEvent?
  14. 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.
  15. 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.
  16. 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.
  17. 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.
  18. It's stored right in the PlayerEntity class. Specifically PlayerEntity::giveExperiencePoints
  19. 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.
  20. 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?
  21. 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?
  22. You know you can edit posts, right? Also please update your mcp mappings. If you need to know how to do that google it.
  23. 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,
  24. Read the documentation on capabilities here.
  25. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.