Jump to content

Unit

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Male

Unit's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for your quick answer. I think this topic is closed. I still have some issues with my WorldGenerator (for some reason it works like a charm with Minecraft vanilla blocks, but not with mines), but I guess it's a subject for another topic. EDIT: I was wrong, it actually works, I don't know why I couldn't find any veins. No luck I guest.
  2. Hi dear modders, I'm quite new to modding (but not to Java ) and I need some explanations about the Forge 1.12 registry event system. Registering an Item or a Block seems quite easy to do, but I'm trying to add a basic WorldGenerator to create some ore vein. The tutorial I'm following is now old, so I guess the registration part isn't up to date. l supposed we should now use some event, but I'm surprised, WorldGenerator isn't suitable for RegistryEvent.Register<T extends IForgeRegistryEntry==<==T>>. So what is the new way to register it? Also, I discovered Recipe is an instance of IForgeRegistryEntry. So I suppose I should use the event for registration. For now I'm doing it this way: Is it the intended way to do this? What is your way to register recipes from JSON files? Any detail would be appreciated.
×
×
  • Create New...

Important Information

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