Hi folks, I have been building a mod for a few weeks now, my first minecraft mod, and have been getting on great, but i have come across a problem I can't seem to get my head around.
When trying to run my mod server side I get the following Crash Report.
I read the forge docs and identified that my mod chest block is the problem because it's trying to register a TESR on the server side.
This is where i run into a problem, I'm unable to register the block on the client side no matter what i do.
I have used the following code from the forge docs
@SubscribeEvent
public static void registerBlocks(RegistryEvent.Register<Block> event)
{
event.getRegistry().registerAll(BlockInit.BLOCKS.toArray(new Block[0]));
TileEntityHandler.registerTileEntities();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCannaChest.class, new RenderCannaChest());
}
however I still can't get it working.
Could someone let me know where I've went wrong please? And if possible point me in the right direction to fix it?
Edit: forgot to add the github link
https://github.com/scottishcrafter/ScottysHerbalCraft
As i said this is my first minecraft mod, I had initially started on Mcreator, realised very quickly how bad an idea that was so completely abandoned that one and have started again from scratch.
Any and all help greatly appreciated,