Jump to content

Dwargkiller

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Dwargkiller's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Much progress! It is working! I implemented it wrong. My code declared that there was a new recipe, but didn't actually register it. For others with similar problem, here's what I did: GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"}));
  2. Okay, some progress. The game no longer crashes when the mod is included. It is however not adding the recipe, as far as I can tell. new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"});
  3. Thank you! That gives me something to work with. If you are so inclined you can save me quite a bit of googling, trial and error and give me either a code snippet or a brief explanation, but you've already provided more than enough! Thank you!
  4. The "logWood" is an attempt to use the oredictionary entry for wood, in order to convert any type of wood added by mods into the dictionary into oak wood. It's an attempt to work around the fact that some mods don't use oredictionary in their recipes.
  5. Hello! I understand it may be frustrating when someone doesn't know what the hell they are doing, but I'm at my wits end. I'm getting an exception when I launch the game with my mod after trying to add oredictionary to my recipe. Below is my code that is causing the crash. GameRegistry.addRecipe(new ItemStack(Block.wood,3),"x ","xx", 'x', "logWood"); Below is working code (that doesn't do what I'm trying to accomplish) GameRegistry.addRecipe(new ItemStack(Block.wood,3),"x ","xx", 'x', Block.wood); The error is below. Thank you for any help you can give me. Sometimes I make myself tired.. EDIT: Here's what I was supposed to do: GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"}));
×
×
  • Create New...

Important Information

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