Posted July 11, 20214 yr Is there an alternative way to do this in 1.16.4? I don't uderstand how because the entityHit no longer is a thing. @SubscribeEvent public static void tick(TickEvent.ClientTickEvent e) { if (mc.gameSettings.keyBindAttack.isKeyDown()) { if (mc.objectMouseOver.entityHit != null) { Entity entity = mc.objectMouseOver.entityHit; mc.playerController.attackEntity(mc.player, entity); } } }
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.