2016-09-22 36 views

回答

1

重写Item#onLeftClickEntity(ItemStack, EntityPlayer, Entity)Item#hitEntity(ItemStack, EntityLivingBase, EntityLivingBase)。在该方法中,将目标的Y位置设置为任何你想要的。