When I exported my mod to a jar file, and then put it in my mods folder, the mod name displays in the mods list, but none of the mod elements are present.
Issue comments
Could you go to <mcreator install dir>/lib and replace file generator-1.12.2.jar with this one: https://mcreator.net/sites/default/files/attachments/generator-1.12.2_0.jar?
Then regenerate code of workspace and export again and tell if it works this time.
Could you try this again: go to <mcreator install dir>/lib and replace file generator-1.12.2.jar with this one: https://mcreator.net/sites/default/files/attachments/generator-1.12.2_1.jar
Then regenerate code of workspace and export again and tell if it works this time.
The previous generator was just a testing case to find out the real cause of the problem. Please try again with this one and report back: https://mcreator.net/sites/default/files/attachments/generator-1.12.2_a…
Make sure to do Build & run -> Regenerate code and build after changing the file.
The version I gave you previously is not production-ready.
Thank you for the feedback!
I have found the cause and a proper solution. A patch update has been released:
PATCH UPDATE 23. 9. 2019, 18:45 CEST
There were some bugs found in MCreator 1.9.1 so we decided to release a patch update. If you are having one of the following bugs and downloaded MCreator before the time of the patch, consider reinstalling version 1.9.1:
- [Bugfix #53239] Mods did not contain any mod elements if they were located in a path or had a name containing any special character or whitespace
- [Bugfix] Custom blocks and items had logWood selected for ore dictionary by default
- Added ore dictionary to plants
- Added option to disable harvest level specification for blocks
To apply the patch (fix these bugs), uninstall MCreator 1.9.1, download it again and install it again. After reinstalling it, make sure to regenerate code in all the workspaces you already opened with MCreator 1.9.1 by clicking Build & run -> Regenerate code and build.
Could you attach your shareable zip workspace file here so I try to replicate this?