meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

Place Helper module

Open ghaph opened this issue 3 years ago • 4 comments

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.

ghaph avatar Dec 12 '21 05:12 ghaph

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.

ghaph avatar Dec 12 '21 23:12 ghaph

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.

sbxte avatar Dec 12 '21 23:12 sbxte

I agree with you, I made it into its own module.

ghaph avatar Dec 13 '21 01:12 ghaph

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

gigglingbed avatar Dec 13 '21 01:12 gigglingbed

i will probably just write this myself tho tbh

10 months ago :trollface:

sbxte avatar Oct 16 '22 00:10 sbxte

💀

I-Got-You-Dead avatar Nov 06 '22 09:11 I-Got-You-Dead