Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
/ client Public archive

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update nofall and scaffold
Browse files Browse the repository at this point in the history
S-B99 committed Oct 6, 2019

Verified

This commit was signed with the committer’s verified signature.
reneme René Meusel
1 parent 44144e2 commit 1dfd304
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions diff.txt
Original file line number Diff line number Diff line change
@@ -581,6 +581,10 @@ index 879ab0a..4b85f9f 100644
+ Vec3d hitVec = new Vec3d(neighbor).addVector(0.5, 0.5, 0.5)
.add(new Vec3d(side2.getDirectionVec()).scale(0.5));


############ finished upto here as of commit 9:54am


// check if hitVec is within range (4.25 blocks)
diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/render/ChunkFinder.java b/src/main/java/me/zeroeightsix/kami/module/modules/render/ChunkFinder.java
index 96f7211..456bbe2 100644
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public class NoFall extends Module {
public void onUpdate() {
if (bucket.getValue() && mc.player.fallDistance >= distance.getValue() && !EntityUtil.isAboveWater(mc.player) && System.currentTimeMillis() - last > 100) {
Vec3d posVec = mc.player.getPositionVector();
RayTraceResult result = mc.world.rayTraceBlocks(posVec, posVec.addVector(0, -5.33f, 0), true, true, false);
RayTraceResult result = mc.world.rayTraceBlocks(posVec, posVec.add(0, -5.33f, 0), true, true, false);
if (result != null && result.typeOfHit == RayTraceResult.Type.BLOCK) {
EnumHand hand = EnumHand.MAIN_HAND;
if (mc.player.getHeldItemOffhand().getItem() == Items.WATER_BUCKET) hand = EnumHand.OFF_HAND;
Original file line number Diff line number Diff line change
@@ -135,16 +135,16 @@ public static boolean placeBlockScaffold(BlockPos pos) {

// check if side is visible (facing away from player)
if(eyesPos.squareDistanceTo(
new Vec3d(pos).addVector(0.5, 0.5, 0.5)) >= eyesPos
new Vec3d(pos).add(0.5, 0.5, 0.5)) >= eyesPos
.squareDistanceTo(
new Vec3d(neighbor).addVector(0.5, 0.5, 0.5)))
new Vec3d(neighbor).add(0.5, 0.5, 0.5)))
continue;

// check if neighbor can be right clicked
if(!canBeClicked(neighbor))
continue;

Vec3d hitVec = new Vec3d(neighbor).addVector(0.5, 0.5, 0.5)
Vec3d hitVec = new Vec3d(neighbor).add(0.5, 0.5, 0.5)
.add(new Vec3d(side2.getDirectionVec()).scale(0.5));

// check if hitVec is within range (4.25 blocks)

0 comments on commit 1dfd304

Please sign in to comment.