tModLoader How do I make an item in my mod give the player a modded item when it is used?

akleins

Terrarian
I am making a mod and I am making an item than, when used, will give me a sword from the same mod. I have the item made but I don't know how to give the player the sword. I am trying player.GetItem(ModItem.Sword); and it says that 'ModItem' does not contain a definition for 'Sword'. How do I make it so that the item can give me the sword that i made. I am making a mod and I am making an item than, when used, will give me a sword from the same mod. I have the item made but I don't know how to give the player the sword. I am trying player.GetItem(ModItem.Sword); and it says that 'ModItem' does not contain a definition for 'Sword'. How do I make it so that the item can give me the sword that i made.
 
Back
Top Bottom