[CORE] Removing client-sidely invisiblity effect.
-
Perhaps on Minecraft version. I'm using 1.12.2 b73 so I use custom .srg produced by b73 1.12.2 build and so on 1.12.2 mappings.
Why onTick? If you will use it in onUpdate you'll be somehow visible-invisible, every ten ticks you'll get invisibility for a tick so player's hand will disappear (and player model) for a tick.onTick: function(e) { setFlagMethod = Entity.class.getDeclaredMethod("func_70052_a", java.lang.Integer.TYPE, java.lang.Boolean.TYPE) setFlagMethod.setAccessible(true) mc.thePlayer && mc.theWorld && mc.thePlayer.isInvisible() && setFlagMethod.invoke(mc.thePlayer, 5, false) && mc.thePlayer.removePotionEffect(MobEffects.INVISIBILITY) }