Skip to content
timbrigham edited this page Oct 27, 2015 · 7 revisions

Welcome to the trbdk3-recipe-cooker wiki!

This project is based on Wuppy29's excellent modding tutorials..

Prior to this project it has been a lot of years since the last time that I wrote any Java code, so be gentle. :)

My Recipes

As a starting point, the following are recipes that I have put together and tested successfully on my Minecraft server. See my trbdk3-recipes project for further details.

Issues and Drawbacks

"With great power comes great responsibility" - Uncle Ben

As a result of this mod users can inherently write their own recipes. This includes block duplication and all kinds of things that can inherently break game play (one wheat for one diamond anyone?). On a multiplayer server this would only work if my mod (and the associated configuration files) are loaded server side. Beyond that be careful who has rights to these locations.

The case of the null pointer

This code doesn't do any kind of error checking - you are expected to make sure that your recipes are properly formatted and valid. A mistake in a block ID - using 'endstone' versus 'end_stone' will trigger a null pointer exception. Depending on how and when this happens - notably if the error is on the output side of the recipe - this can cause the game to crash mid play.

Other issues starting Minecraft

When working with custom recipes the grid needs to remain exactly 3x3. As a result, the lines in the XML file denoted by 'XXX' etc all need to have exactly three characters between them. This can be spaces or letters. Without doing this you will receive an out of length / array out of bounds error when starting Minecraft.