tModLoader Trying to make a custom drill for my mod, errors everywhere

Zeeks

Steampunker
So, ive been trying to make a mod and its really not working out at all, looking for ANY help at all (error details below code)

Drill:
Code:
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;

namespace BrilliantStarMod.Items
{
public class RainbriteDrill : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Rainbrite Drill");
Tooltip.SetDefault("Can mine Chlorophyte");
}

public override void SetDefaults()
{
item.damage = 45;
item.autoReuse = true;
item.melee = true;
item.width = 45;
item.height = 21;
item.useTime = 6;
item.useStyle = 5;
item.useAnimation = 6;
item.knockBack = 1;
item.value = 50000;
item.rare = 6;
item.pick = 210;
item.axe = 110;
item.shoot = mod.ProjectileType("Censored here too sorry");
item.shootSpeed = 40f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.ItemType("Place-holder"), 15);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}

Drill Projectile:

Code:
using Terraria;
using Terraria.ID;
using Microsoft.Xna.Framework;
using Terraria.ModLoader;

namespace BrilliantStarMod.Projectiles
{
public class (name here is censored because it involves el n-word) : ModProjectile
{
public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("you really should'nt be seeing this");
        }
public override void SetDefaults()
{
projectile.width = 22;
projectile.height = 22;
projectile.aiStyle = 20;
projectile.friendly = true;
projectile.penetrate = -1;
projectile.tileCollide = false;
projectile.hide = true;
projectile.ownerHitCheck = true;
projectile.melee = true;

}
}
}



Screen capture - 560201e320d65124c442eb54281cc670 - Gyazo
^
a gif of the actual "error" in question, the drill itself isnt synching up with the drill projectile animation, as in, the drill itself not only appears smaller then the projectile but it also doesnt mine any blocks (as shown in the gif), please help me here as i have no idea whats going wrong (i coded it just as i would a pickaxe or anything else)
 
Last edited:
Back
Top Bottom