SHARE
TWEET

Terraria Modded Bow

SomeRandom21 Aug 25th, 2019 105 in 344 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Microsoft.Xna.Framework;
  2. using Terraria;
  3. using Terraria.ID;
  4. using Terraria.ModLoader;
  5.  
  6. namespace Minecraftmod.Items
  7. {
  8.     public class Bow : ModItem
  9.     {
  10.         public override void SetStaticDefaults()
  11.         {
  12.             DisplayName.SetDefault("Minecraft Bow");
  13.             Tooltip.SetDefault("The bow from minecraft.");
  14.         }
  15.  
  16.         public override void SetDefaults()
  17.         {
  18.             item.damage = 22;
  19.             item.ranged = true;
  20.             item.width = 40;
  21.             item.height = 40;
  22.             item.maxStack = 1;
  23.             item.useTime = 28;
  24.             item.useAnimation = 28;
  25.             item.useStyle = 5;
  26.             item.knockBack = 2;
  27.             item.value = 12000;
  28.             item.rare = 2;
  29.             item.UseSound = SoundID.Item5;
  30.             item.noMelee = true;
  31.             item.shoot = 1;
  32.             item.useAmmo = AmmoID.Arrow;
  33.             item.shootSpeed = 10f;
  34.             item.autoReuse = false;
  35.         }
  36.  
  37.         public override void AddRecipes()
  38.         {
  39.             ModRecipe recipe = new ModRecipe(mod);
  40.             recipe.AddIngredient(ItemID.Wood, 10);
  41.             recipe.AddTile(TileID.WorkBenches);
  42.             recipe.SetResult(this);
  43.             recipe.AddRecipe();
  44.         }
  45.     }
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top