Advertisement
Guest User

Cumam sosis so nice

a guest
Feb 19th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 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 YourModName.Items.Weapons
  8. {
  9. public class MagicWeapon : ModItem
  10. {
  11. public override void SetDefaults()
  12. {
  13. item.name = "Magic";
  14. item.damage = 34;
  15. item.magic = true; //this make the item do magic damage
  16. item.width = 24;
  17. item.height = 28;
  18. item.toolTip = "Casts a fire bolt.";
  19. item.useTime = 30;
  20. item.useAnimation = 30;
  21. item.useStyle = 5; //this is how the item is holded
  22. item.noMelee = true;
  23. item.knockBack = 2;
  24. item.value = 1000;
  25. item.rare = 6;
  26. item.mana = 5; //mana use
  27. item.UseSound = SoundID.Item21; //this is the sound when you use the item
  28. item.autoReuse = true;
  29. item.shoot = mod.ProjectileType ("MagicProjectile"); //this make the item shoot your projectile
  30. item.shootSpeed = 8f; //projectile speed when shoot
  31. }
  32. }
  33. }
  34. RAW Paste Data
  35.  
  36. using System;
  37. using Microsoft.Xna.Framework;
  38. using Terraria;
  39. using Terraria.ID;
  40. using Terraria.ModLoader;
  41.  
  42. namespace YourModName.Items.Weapons
  43. {
  44. public class MagicWeapon : ModItem
  45. {
  46. public override void SetDefaults()
  47. {
  48. item.name = "Magic";
  49. item.damage = 34;
  50. item.magic = true; //this make the item do magic damage
  51. item.width = 24;
  52. item.height = 28;
  53. item.toolTip = "Casts a fire bolt.";
  54. item.useTime = 30;
  55. item.useAnimation = 30;
  56. item.useStyle = 5; //this is how the item is holded
  57. item.noMelee = true;
  58. item.knockBack = 2;
  59. item.value = 1000;
  60. item.rare = 6;
  61. item.mana = 5; //mana use
  62. item.UseSound = SoundID.Item21; //this is the sound when you use the item
  63. item.autoReuse = true;
  64. item.shoot = mod.ProjectileType ("MagicProjectile"); //this make the item shoot your projectile
  65. item.shootSpeed = 8f; //projectile speed when shoot
  66. }
  67. }
  68. }
  69. We use cookies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement