How do I fix it so there isn't a massive space between the weapon and the player

SouzouOokami

Terrarian
How do I fix it so that way the weapon doesn't have a bunch of space between it and the player when swung? Here's the code:

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NoClassMod.Content.Items.AnEntireTree
{
public class AnEntireTree : ModItem
{

public override void SetDefaults()
{
Item.damage = 48;
Item.crit = 10;
Item.width = 250;
Item.height = 250;
Item.useTime = 80;
Item.useAnimation = 80;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 12;
Item.value = 1000;
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;

}
public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ItemID.LivingWoodWand, 1);
recipe.AddIngredient(ItemID.LeafWand, 1);
recipe.AddIngredient(ItemID.Acorn, 50);
recipe.AddIngredient(ItemID.Bone, 3);
recipe.AddRecipeGroup("Wood", 200);
recipe.AddTile(TileID.Trees);
recipe.Register();
}
}
}
 

Attachments

  • WhyIsItSoSpaced.png
    WhyIsItSoSpaced.png
    32.9 KB · Views: 50
The height / width are too big. Any broadsword like weapon that's above about 85x85 won't be properly held in the hand anymore.

Your only options are to make the sprite smaller, or to change it to a held projectile.
 
The height / width are too big. Any broadsword like weapon that's above about 85x85 won't be properly held in the hand anymore.

Your only options are to make the sprite smaller, or to change it to a held projectile.
how would I make a held projectile that still functions like a normal sword?
 
Back
Top Bottom