Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. using Terraria.ID;
  2. using Terraria.ModLoader;
  3.  
  4. namespace DeathWeps.Items
  5. {
  6. public class SuperDeathSword : ModItem
  7. {
  8. public override void SetStaticDefaults()
  9. {
  10. // DisplayName.SetDefault("SuperDeathSword"); // By default, capitalization in classnames will add spaces to the display name. You can customize the display name here by uncommenting this line.
  11. Tooltip.SetDefault("Way better, but...");
  12. }
  13.  
  14. public override void SetDefaults()
  15. {
  16. item.damage = 70;
  17. item.melee = true;
  18. item.width = 45;
  19. item.height = 45;
  20. item.useTime = 15;
  21. item.useAnimation = 15;
  22. item.useStyle = 1;
  23. item.knockBack = 10;
  24. item.value = 10001;
  25. item.rare = 5;
  26. item.UseSound = SoundID.Item1;
  27. item.autoReuse = true;
  28. }
  29.  
  30. public override void AddRecipes()
  31. {
  32. ModRecipe recipe = new ModRecipe(mod);
  33. recipe.AddIngredient(ItemID.DeathSword, 1);
  34. recipe.AddIngredient(ItemID.BrokenHeroSword, 1);
  35. recipe.AddTile(TileID.MythrilAnvil);
  36. recipe.SetResult(this);
  37. recipe.AddRecipe();
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement