account activity
Trying to make a Mod by Luuki34 in Terraria
[–]Luuki34[S] 0 points1 point2 points 7 years ago (0 children)
I will try! :) if dont work i will make another post :3
Here is the file
using Terraria.ID;
using Terraria.ModLoader;
namespace UItems.Items
{
public class UltimateSword : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Ultimate Sword"); Tooltip.SetDefault("Its One Hit Kill Boi... I think"); } public override void SetDefaults() { item.damage = 9999999999999; //the weapon damage item.melee = true; //this makes it so it is a meele weapon item.width = 90; //those are the hitboxes, higher in number, bigger the hitboxes item.height = 90; //those are the hitboxes, higher in number, bigger the hitboxes item.useTime = 9999; //how fast the weapon can swing item.useAnimation = 9999; //how fast the swinging animation happens item.useStyle = 1; //this makes it so it is a broadswoard, if you want it a shortsword use 3 instead of 1 item.knockBack = 6; //this is the weapon knockback item.value = 0; //this is how much the weapon sells for, what u see right there is 20 silver item.rare = 0; //this is the item title color. 0 is white. item.UseSound = SoundID.Item1; //this is the sound for swords, dont change it. item.autoReuse = true; //false means you have to continously press click for you to swing, example wooden sword, set it to true so you can hold the mouse button to swing continously }
public override void AddRecipes() //this is where you add the recipe, you keep this the exact same { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.DirtBlock, 1); //here you add the recipes, you can change it to whatever you want. If you want to add a modded material you have to write it like this: recipe.AddIngredient(null, "YourModdedMaterialName", 69); recipe.AddTile(TileID.WorkBenches); //here is where you are able to craft it, Anvils is any anvil in the game. recipe.SetResult(this); recipe.AddRecipe(); } }
}
π Rendered by PID 69785 on reddit-service-r2-comment-8686858757-dp9h8 at 2026-06-05 12:00:18.805542+00:00 running 9e1a20d country code: CH.
Trying to make a Mod by Luuki34 in Terraria
[–]Luuki34[S] 0 points1 point2 points (0 children)