#More parameters in RayTrace

9 messages · Page 1 of 1 (latest)

fringe tulip
#

Since kubejs can be used for an unlimited number of tasks, the current RayTrace implementation severely restricts developers. It is designed to rest against liquids and return a block of liquid. ```java
HitResult hitResult = kjs$self().level.clip(new ClipContext(fromPos, toPos, ClipContext.Block.OUTLINE, ClipContext.Fluid.ANY, kjs$self()));

```js
raytrace(ditance,ClipContext.Block, ClipContext.Fluid)```
So that developers themselves can choose what they contact and what they don't.
fringe tulip
#

Or just one Boolean ignore_liquids, by default false.

minor hamlet
#

What about non-solid blocks?

fringe tulip
minor hamlet
#

like flowers/grass/other blocks that you can place a block to replace them

fringe tulip
minor hamlet
#

I mean an option to ignore them too

fringe tulip
graceful aspenBOT