DragonITA Posted January 23, 2020 Author Share Posted January 23, 2020 11 hours ago, Cadiboo said: Any reason you have both ModEntityTypes and FantasyModEntities? I would guess that your EntityType doesn't exist when you try to use it At first it was meant to register my entities and spawneggs, but then I took a look at your folder to see how you would register your entities, when I saw that you didn't have any entities at all, I looked at the tile entities and tried to imitate it, just for the entities. But since the FantasyModEntities also spawn my entities into the world, I left it there, but any code that has to do with registration, except spawning entities into the world, was converted into a comment. Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
DragonITA Posted January 23, 2020 Author Share Posted January 23, 2020 Ok, now it should be solved, try it again and warn me if there is an error (I mean if I imported it wrong) or if there is something else. Thanks for your help. The link was https://github.com/DragonGamerDevelopers/NewFantasyMod-1.15.1. Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
DragonITA Posted January 23, 2020 Author Share Posted January 23, 2020 I hope I imported it well Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
DragonITA Posted January 24, 2020 Author Share Posted January 24, 2020 Should I register my entity Type with a DeferredRegister or with a classic RegistryEvent ? Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
DragonITA Posted January 26, 2020 Author Share Posted January 26, 2020 I asked myself this: can I use it to register my EntityType or not (by that I mean the DeferredRegister)? Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
Cadiboo Posted January 26, 2020 Share Posted January 26, 2020 1 minute ago, DragonITA said: I asked myself this: can I use it to register my EntityType or not (by that I mean the DeferredRegister)? Yes, you can use it to register your entity type. I'm not sure if spawn eggs will work though. 1 Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
DragonITA Posted January 26, 2020 Author Share Posted January 26, 2020 @Cadiboo If there is something I have learned, it is that spawneggs are registered as items. This I could observe with the old register method. Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
Cadiboo Posted January 26, 2020 Share Posted January 26, 2020 Yes, spawn eggs are items. Spawn eggs require a reference to an EntityType to work. However, Items get registered before EntityTypes. This is problematic. 1 Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
DragonITA Posted January 27, 2020 Author Share Posted January 27, 2020 I have tried to make it so that the EntityType is registered before Spawnegg, but it does not always go wrong. I have tried to register my EntityType with the DeferredRegister, but it just doesn't work. Could someone give me an example? Quote New in Modding? == Still learning! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.