senseiwells / EssentialClient

EssentialClient is a client side mod originally forked from Carpet Client for 1.15.2 that implements new client side features
MIT License
77 stars 14 forks source link

Block breaking / InteractBlock / allow Accurateblockplacement at script side #30

Closed aria1th closed 2 years ago

senseiwells commented 2 years ago

Is this ready for merge?

aria1th commented 2 years ago

Yes, I only tested this at 1.18.1 server and 1.16.5 singleplayer, but no crashes / problem. Tested & implemented functions: OtherPlayer.getItemForPlayerSlot(slot); Block.isReplaceable(); Block.rotateYClockwise(); Block.rotateYCounterClockwise(); Block.mirrorFrontBack(); Block.mirrorLeftRight(); Block.isFluid(); Player.fakeLook(yaw, pitch, direction, duration); Player.updateBreakingBlock(x,y,z); Player.interactBlock(x,y,z, direction, px, py, pz, insideBlock); Player.attackBlock(x,y,z); Player.getBlockBreakingSpeed(blockState); Player.swapPlayerSlotWithHotbar(slot); World.isAir(x,y,z);

aria1th commented 2 years ago

World.getEmittedRedstonePower(x,y,z,direction); Block.sideCoversSmallSquare(direction); Block.isSideSolidFullSquare(direction);

senseiwells commented 2 years ago

Already merged