Silent Server-side rotating and Checking for the Block beneath you
-
Hello everyone!
It will be important for me if anybody will answer in this topic/1/ In the first case, I'm making a huge script which can bypass some 1.12 servers, so I need to rotate the player's yaw only server-side because it looks awful when your screen is rotating with your head :d
/2/ Secondly, my new noFall bypass needs to check is there any block in the player's posY-0.01 which will doesn't use mc.thePlayer.onGround class
Thanks for everyone who know how to solve this and decided to help me! <З
-
@dont_doubt
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 0.01, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(0)) { // Check air block
-
@dont_doubt
if (event.getPacket() instanceof CPacketPlayer) {
event.getPacket().setYaw(yaw);
} -
idk if its correct but
var RotationUtils = Java.type('net.ccbluex.liquidbounce.utils.RotationUtils'); var Rotation = Java.type('net.ccbluex.liquidbounce.utils.Rotation'); RotationUtils.setTargetRotation(new Rotation(0, 70));