Posted June 17, 20196 yr Hi, Looking for some help with this. package com.kwpugh.gobber2.items.armor; import com.kwpugh.gobber2.lists.ItemList; import net.minecraft.entity.LivingEntity; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.ArmorItem; import net.minecraft.item.IArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ItemCustomBoots extends ArmorItem { public ItemCustomBoots(IArmorMaterial materialIn, EquipmentSlotType slots, Properties builder) { super(materialIn, slots, builder); } public void onArmorTick(World world, LivingEntity entity, ItemStack itemStack) { ItemStack boots = entity.getItemStackFromSlot(EquipmentSlotType.FEET); if(boots.getItem() == ItemList.gobber2_boots) { entity.stepHeight = 3.0F; } else { entity.stepHeight = 0.0F; } } } The step height does not appear to be kicking in, any suggestions to what I am doing wrong? I thought you normally have to @Override it, but that creates an error: "The method onArmorTick(World, LivingEntity, ItemStack) of type ItemCustomBoots must override or implement a supertype method" Thank you in advance.
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.