#Detect player is in a cave.

1 messages · Page 1 of 1 (latest)

pliant kite
#

What is the best way to detect if a player is inside a cave. I have 2 methods
First is to use 5 raycasts to detect certain blocks in certain distances.
Second is to use an area detector.

Keep in mind this is going to calculate per player which that info will get transferred into a cave density percentage...

steel epoch
#

use their y position value

pliant kite
#

You can be in a cave at y level 80

steel epoch
#

check the biome I guess?

warm valve
#

you might have to use some other method, but that should give a pretty decent estimate