Advertisement
itsmenick_

Making a modded Chestplate! Terraria, 2019, UPDATED!

Dec 15th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using Terraria;
  2. using Terraria.ID;
  3. using Terraria.ModLoader;
  4. using static Terraria.ModLoader.ModContent;
  5.  
  6. namespace TestMod.Items.Armor
  7. {
  8.     [AutoloadEquip(EquipType.Body)]
  9.     public class ModdedChestplate : ModItem
  10.     {
  11.         public override void SetStaticDefaults()
  12.         {
  13.             base.SetStaticDefaults();
  14.             DisplayName.SetDefault("Modded Chestplate");
  15.             Tooltip.SetDefault("This is a modded chestplate.");
  16.  
  17.         }
  18.  
  19.         public override void SetDefaults()
  20.         {
  21.             item.width = 18;
  22.             item.height = 18;
  23.             item.value = 10;
  24.             item.rare = 1;
  25.             item.defense = 2;
  26.         }
  27.  
  28.         public override void UpdateEquip(Player player)
  29.         }
  30.  
  31.         public override void AddRecipes()
  32.         {
  33.             ModRecipe recipe = new ModRecipe(mod);
  34.             recipe.AddIngredient(ItemID.DirtBlock, 10);
  35.             recipe.SetResult(this);
  36.             recipe.AddRecipe();
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement