#Loading chunks and reading data!

1 messages · Page 1 of 1 (latest)

visual salmon
#

Hey guys I basically wanna make a mod for my survival world for finding specific blocks. For example a chest in a 12chunk radius, I have tried this but its super slow. Does anybody have any ideas?

dense needle
#
  1. #1212018757791252540
  2. I'm very sure that also here hacks aren't allowed
visual salmon
#

This isn't for hacking purposes thooo

#

But if its considered like a hack then I am sorry and yall dont have to answer to this

celest juniper
#

i dont think this counts as a cheat

#

the code seems to be server side

cold swift
#

common thing for stuff like this is to go through every chunk in the radius individually, then look through that chunk

#

just so you're not having to 'get' the chunk every getBlockState

#

also if it's specifically chests you can look at every block entity in the chunk instead and see if it's a chest in range, much faster than every block

carmine moon
#

are chests considered a point of interest?

#

then it would be even faster

visual salmon
#

Okay so I wann only check the block entities

#

ill try that

cold swift
visual salmon
#

Thanks!