I have an item called Enchantment Shard, and I want to make it so that when I craft 4 around a book, it gives a random level 1 Enchanted book. Currently, I have, in pre-init,
GameRegistry.addRecipe(new EnchantShardHandler(enchantshard));
EnchantShardHandler looks like this:
I currently have it made so that, when I craft the enchanted book, it is the same until I start minecraft again. Then it makes it different. For instance, I will run my mod, and craft the recipe, and I get an Efficiency 1 book. Then I craft it again, and it always is Efficiency 1. I reboot the game, and it gives me Punch 1 each time.
I have no idea how to make the recipe change output each time.