0.2.0 commit
This commit is contained in:
37
Content/Items/tMxSword.cs
Normal file
37
Content/Items/tMxSword.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace tMx.Content.Items
|
||||
{
|
||||
// This is a basic item template.
|
||||
// Please see tModLoader's ExampleMod for every other example:
|
||||
// https://github.com/tModLoader/tModLoader/tree/stable/ExampleMod
|
||||
public class tMxSword : ModItem
|
||||
{
|
||||
// The Display Name and Tooltip of this item can be edited in the 'Localization/en-US_Mods.tMx.hjson' file.
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 50;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.width = 40;
|
||||
Item.height = 40;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 6;
|
||||
Item.value = Item.buyPrice(silver: 1);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ItemID.DirtBlock, 10);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user