Custom Weapon Damage not changing

Published by ardele on Mon, 02/12/2018 - 11:57
Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Weapon Damage is not working.  Changing Maxdamage  does not increase damage.

 


	static class ItemwarriorSword extends Item {

		public ItemwarriorSword() {
			setMaxDamage(100);           
			maxStackSize = 64;
			setUnlocalizedName("warriorsword");
			setRegistryName("warriorsword");
			ForgeRegistries.ITEMS.register(this);
			setCreativeTab(CreativeTabs.COMBAT);
		}

		@Override
		public int getItemEnchantability() {
			return 85;
		}

		@Override
		public int getMaxItemUseDuration(ItemStack par1ItemStack) {
			return 1000;
		}

		@Override
		public float getDestroySpeed(ItemStack par1ItemStack, IBlockState par2Block) {
			return 0.01F;
		}

		@Override
		public void addInformation(ItemStack itemstack, World world, List<String> list, ITooltipFlag flag) {
			list.add("Soul Infused Weapon");
		}

	}
}

 

Attachment Size
rpg_test.jar70.96 KB 70.96 KB

Issue comments

Hello Klemen,

 

This is where User error came into play.  Item damage is working :)  Thank you.  



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.