Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.Xna.Framework;
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace testmod.Items
- {
- public class testitem : ModItem
- {
- public override void SetDefaults()
- {
- DisplayName.SetDefault("TestItem");
- item.damage = 500;
- item.melee = true;
- item.width = 60;
- item.height = 60;
- item.useTime = 10;
- item.useAnimation = 10;
- item.useStyle = 1;
- item.knockBack = 10;
- item.value = Item.buyPrice(0, 0, 0, 10);
- item.rare = 3;
- item.UseSound = SoundID.Item1;
- item.autoReuse = true;
- }
- public override void SetStaticDefaults()
- {
- Tooltip.SetDefault("ModdedItem");
- }
- public override void AddRecipes()
- {
- ModRecipe recipe = new ModRecipe(mod);
- recipe.AddIngredient(ItemID.DirtBlock, 1);
- recipe.AddTile(TileID.WorkBenches);
- recipe.SetResult(this);
- recipe.AddRecipe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement