Skip to content

Commit

Permalink
Wait for player to reach ground and confirms the powder snow block
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandBhasme committed Jul 21, 2024
1 parent e7c94a0 commit 1300d95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ else if (mode.get() == Mode.Place) {
timer++;
if (mc.player.getBlockStateAtPos().getBlock() == placedItem1.block) {
useItem(InvUtils.findInHotbar(Items.BUCKET), false, targetPos, true);
} else if (mc.world.getBlockState(mc.player.getBlockPos().down()).getBlock() == placedItem1.block) { //check if the block is still there
} else if (mc.world.getBlockState(mc.player.getBlockPos().down()).getBlock() == Blocks.POWDER_SNOW && mc.player.fallDistance==0){ //check if the powder snow block is still there and the player is on the ground
useItem(InvUtils.findInHotbar(Items.BUCKET), false, targetPos.down(), true);
}
}
Expand Down

0 comments on commit 1300d95

Please sign in to comment.