This is why I suggested you to use Visual Studio, because the hook isn't "AddRecipe" but "AddRecipes"
You should give a read to this thread to get started:
I suggest you to use an IDE like Visual Studio to code so you can easily see these errors, and the errors themselves are quite descrivtive.
Here you wrote a "-" insted of "="
item.rare - 1;
As you can see in the CanUseItem hook you have two returns, that's not possible because after the first...
A good place to start getting information is the Example Mod and the tModLoader documentation (You can find links in the first post). In the Example Mod there is pretty much every thing you can do so I suggest having a look at its source code, as long as you have some basis in C# you shouldn't...
How do you check what is the frame of a wall? Looking in the source I found Tile.wallFrameX(), Tile.wallFrameY() and Tile.wallFrameNumber() but I haven't understand exactely how to use them, someone knows how to check if tile's wall frame is a determined frame?
It's been a while, but now I'm back. Sorry for leaving the mod behind for so much time. I've updated the first post with new info, time to work on this mod again. Thanks all of you for your feedbacks and suggestions
Have a look at the exampleMod GlobalNPC class it is always useful to check the examples :)
The correct code would be:
public class MyPlayer : ModPlayer
public override void SetupStartInventory(IList<Item> items)...