Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.16 KB | None | 0 0
  1. using System;
  2. using Microsoft.Xna.Framework;
  3. using Terraria;
  4. using Terraria.ID;
  5. using Terraria.ModLoader;
  6.  
  7. namespace testmod.Items
  8. {
  9.     public class testitem : ModItem
  10.     {
  11.  
  12.         public override void SetDefaults()
  13.         {
  14.             DisplayName.SetDefault("TestItem");
  15.             item.damage = 500;
  16.             item.melee = true;
  17.             item.width = 60;
  18.             item.height = 60;
  19.             item.useTime = 10;
  20.             item.useAnimation = 10;
  21.             item.useStyle = 1;
  22.             item.knockBack = 10;
  23.             item.value = Item.buyPrice(0, 0, 0, 10);
  24.             item.rare = 3;
  25.             item.UseSound = SoundID.Item1;
  26.             item.autoReuse = true;
  27.         }
  28.  
  29.         public override void SetStaticDefaults()
  30.         {
  31.             Tooltip.SetDefault("ModdedItem");
  32.         }
  33.  
  34.  
  35.         public override void AddRecipes()
  36.         {                                        
  37.             ModRecipe recipe = new ModRecipe(mod);
  38.             recipe.AddIngredient(ItemID.DirtBlock, 1);
  39.             recipe.AddTile(TileID.WorkBenches);
  40.             recipe.SetResult(this);
  41.             recipe.AddRecipe();
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement