Posted October 17, 20205 yr Hi, I was working on making a TE. But, when I place it down, the game crashes. Here is the crash log: https://gist.github.com/KidKoder09923/2d0ac3ddfd76360d2b825a315615fe4c EDIT: Here is line 23-25: public TileEntity createTileEntity(BlockState state, IBlockReader world) { final TileEntity tileEntity = ModTileEntityTypes.COPPER_CORE.get().create(); return tileEntity; } Thank in advance Edited October 17, 20205 yr by KidKoderMod033109 Added code Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
October 17, 20205 yr Quote java.lang.NullPointerException: Registry Object not present: simplycopper:copper_core My guess is that you called a registry object instance before it was loaded, probably COPPER_ORE.get() within some sort of method handling without deferring the instance such that it only gets called when the TE type is registered and not when the static final variable is defined. Please show the repository where this code is linked to.
October 17, 20205 yr Author The code is here https://github.com/KidKoder09923/SimplyCopper Edited October 17, 20205 yr by KidKoderMod033109 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
October 17, 20205 yr You never register your DeferredRegister to the mod event bus. Also, pick one method to register your objects and not two. Edited October 17, 20205 yr by ChampionAsh5357
October 17, 20205 yr Author Ahh. That would explain it Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
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.