Advertisement
Guest User

Terraria paste

a guest
May 25th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. using TutorialMod.TutorialDusts;
  2. using Terraria.ID;
  3. using Terraria.ModLoader;
  4. using Terraria;
  5. using Microsoft.Xna.Framework;
  6.  
  7. namespace TutorialMod.Items
  8. {
  9. public class SpectraBlade : ModItem
  10. {
  11. public override void SetStaticDefaults()
  12. {
  13.  
  14. Tooltip.SetDefault("sexy man use sexy weapon");
  15. }
  16.  
  17. public override void SetDefaults()
  18. {
  19. item.damage = 75;
  20. item.melee = true;
  21. item.width = 10000;
  22. item.height = 10000;
  23. item.useTime = 16;
  24. item.useAnimation = 16;
  25. item.useStyle = 1;
  26. item.knockBack = 500;
  27. item.value = 100000000;
  28. item.rare = 4;
  29. item.shoot = ProjectileID.SpectreWrath;
  30. item.shootSpeed = 5;
  31. item.UseSound = SoundID.Item1;
  32. item.autoReuse = true;
  33.  
  34.  
  35. }
  36. public override void MeleeEffects(Player player, Rectangle hitbox) {
  37. if (Main.rand.NextBool(3)) {
  38. Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustType<TutorialDust>());
  39. }
  40. }
  41.  
  42.  
  43. public override void AddRecipes()
  44. {
  45. ModRecipe recipe = new ModRecipe(mod);
  46. recipe.AddIngredient(ItemID.DirtBlock, 10);
  47. recipe.AddTile(TileID.WorkBenches);
  48. recipe.SetResult(this);
  49. recipe.AddRecipe();
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement