tModLoader Coding Problems, Please Help.

Discussion in 'General Mod Discussion' started by TheTrueBrawler, Jun 17, 2016.

  1. TheTrueBrawler

    TheTrueBrawler Spazmatism

    Added it and it still isn't working.
  2. mouseas

    mouseas Steampunker

    Let's see your code. Also, did you save the file?
  3. TheTrueBrawler

    TheTrueBrawler Spazmatism

    Here is a Link to a Download if you would like to tinker with it in any way, shape, or form.
  4. mouseas

    mouseas Steampunker

    I assume by "doesn't work", that you mean the mod doesn't give any errors, but the recipe won't show up.

    I don't see any obvious things wrong in your code.

    I assume you have the ingredients in your inventory rather than in equipment slots?

    You might also need to make Lava Waders and Frostspark Boots count as being Materials, since they weren't previously used in any recipes. Lucky Horseshoe is used in some recipes already, so it should be fine.

    You could also try adding a second recipe, just for debugging purposes:

        recipe = new ModRecipe(mod);
        recipe.AddIngredient(ItemID.DirtBlock, 1);
    This should allow you to craft the boots from 1 dirt block, without being near any crafting stations. If that recipe doesn't show up, then "AddRecipes()" isn't being called, and the first recipe isn't being added in the first place.