Jump to content

[1.13.2] Tool attack damage broken?


Recommended Posts

No matter what I set my tool material's attack damage value to, it loads into the game as over 700 attack damage. Any ideas why or is this a bug?


ToolMaterialList class

public enum ToolMaterialList implements IItemTier
	TUTORIAL(1.7f, 5.0f, 25, 700, 3, ItemList.tutorial_item);
	private float attackDamage, efficiency;
	private int enchantability, durability, harvestLevel;
	private Item  repairMaterial;
	private ToolMaterialList(float attackDamage, float efficiency, int enchantability, int durability, int harvestLevel, Item repairMaterial)
		this.attackDamage = attackDamage;
		this.efficiency = efficiency;
		this.enchantability = enchantability;
		this.durability = durability;
		this.harvestLevel = harvestLevel;
		this.repairMaterial = repairMaterial;	

	public float getAttackDamage() { return this.attackDamage; }

	public float getEfficiency() { return this.efficiency; }

	public int getEnchantability() { return this.enchantability; }

	public int getHarvestLevel() { return this.harvestLevel; }

	public int getMaxUses() { return this.durability; }

	public Ingredient getRepairMaterial() { return Ingredient.fromItems(repairMaterial); }


Example of a tool class (they are all the same)

public class ItemTutorialAxe extends ItemAxe
	public ItemTutorialAxe(IItemTier tier, Item.Properties properties) 
		super(tier, tier.getMaxUses(), 0, properties);


Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.