meteor-client
meteor-client copied to clipboard
Place Helper module
This option checks to see if a block is next to the hit result. If enabled, it will loop through the max range to 1 to find the best hit result.
Yea, forgot to remove the Math.min when I was testing something else. Also I don't know if BlockUtils.getPlaceSide works, the current method checks to see if a block is next to it if not, then hit result gets set to null. This works well for anticheats that check if a block that is placed is next to anything else. The reason I loop through the range is to get the best placement. If you look straight down to the void while a block is under your feet, then the for loop will return the hit result of the block next to the one you're standing on.
Ah my bad, only now do I realize why the raycast needs to be in decrementing lengths.
Though my point about the air placing still stands. In my opinion this would be better off as a sort of "place helper" module instead of being in the air place module as it just goes against the module's name.
I agree with you, I made it into its own module.
i don't like this, it being in airplace would be better imo, you should just have a couple modes.
mode 1: only place if there is a block to place against mode 2: try to find a side, if not then just place in the air
i will probably just write this myself tho tbh
i will probably just write this myself tho tbh
10 months ago :trollface:
💀