tModLoader help!!!I made a bow, but it was offset

GoldenGinger

Terrarian
somebody to help!!
the situation is as follows

屏幕截图 2024-04-26 234007.png



Code:
using Microsoft.Xna.Framework; 
using Terraria; 
using Terraria.ID; 
using Terraria.ModLoader; 
using 碧蓝文件.Projectiles;
using Terraria.DataStructures;
 
namespace 碧蓝文件.Items
{ 
    public class 海蓝之弓 : ModItem 
    { 
        public override void SetDefaults() 
        { 
            Item.damage = 18;// 设置基础攻击力
            Item.width = 60;// 设置物品宽度
            Item.height = 72;// 设置物品高度
            Item.useTime = 5;// 设置使用时间(射击间隔)
            Item.useAnimation = 5;// 设置使用动画时间
            Item.useStyle = ItemUseStyleID.Shoot;// 设置使用风格为弓箭
            Item.knockBack = 3f;// 设置击退力
            Item.value = Item.buyPrice(0, 0, 70, 0);// 设置购买价格
            Item.rare = ItemRarityID.Blue;// 设置稀有度为蓝色(不常见)
            Item.shoot = 1;// 替换为您的 MOD 名称空间及对应的箭矢类
            Item.shootSpeed = 16f;// 设置射出箭矢的速度
            Item.useAmmo = AmmoID.Arrow;// 设置使用的弹药类型为箭矢
            Item.noMelee = true;// 禁止近战攻击
            Item.autoReuse = true;//自动挥舞开
        }   
    } 
}
and this is my code
 
somebody to help!!
the situation is as follows

View attachment 467545


Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using 碧蓝文件.Projectiles;
using Terraria.DataStructures;
 
namespace 碧蓝文件.Items
{
    public class 海蓝之弓 : ModItem
    {
        public override void SetDefaults()
        {
            Item.damage = 18;// 设置基础攻击力
            Item.width = 60;// 设置物品宽度
            Item.height = 72;// 设置物品高度
            Item.useTime = 5;// 设置使用时间(射击间隔)
            Item.useAnimation = 5;// 设置使用动画时间
            Item.useStyle = ItemUseStyleID.Shoot;// 设置使用风格为弓箭
            Item.knockBack = 3f;// 设置击退力
            Item.value = Item.buyPrice(0, 0, 70, 0);// 设置购买价格
            Item.rare = ItemRarityID.Blue;// 设置稀有度为蓝色(不常见)
            Item.shoot = 1;// 替换为您的 MOD 名称空间及对应的箭矢类
            Item.shootSpeed = 16f;// 设置射出箭矢的速度
            Item.useAmmo = AmmoID.Arrow;// 设置使用的弹药类型为箭矢
            Item.noMelee = true;// 禁止近战攻击
            Item.autoReuse = true;//自动挥舞开
        }  
    }
}
and this is my code
Cool arrow
 
Back
Top Bottom