Hi,
I am trying to make a sword that damages the player when they swing the sword. So far, I have been unable to figure out how to do that. If anyone could help point me in the right direction, that would be great.
Thanks!
EDIT: I figured out how to check if the player is swinging the sword. You use the method
@Override
public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack) {
//What you want here
return false;
}
in the new sword class. However, I still need to figure out how to damage the player.