Jump to content

scottishcrafter

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

scottishcrafter's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Damn, I realised the first tutorial I picked wasn't showing best practice, thought the Harry Talks ones were okay. Never mind, thanks for pointing out some better ones, I'll look into those two and get rewriting. Thanks for the fix for the shoddy code I have now though, it worked and it now boots on servers. I'll also sort the repo out and tidy it up. Thanks for your help.
  2. 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,
×
×
  • Create New...

Important Information

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