[Feature Request] Check if block is in loaded chunk
Closed this issue · 2 comments
Krutoy242 commented
Using CraftTweaker
and ZenUtils
I made Portal Spread mechanic.
When portal is spawned, it saved with setCustomWorldData()
. Then I iterate all portals in onWorldTick
event.
javaw_YkYWCxOVPS.mp4
The problem is that CraftTweaker
's functions always load chunks for calls like world.getBlockState()
. So, each time i want to tick the portal, it would call getBlockState
and actually work as chunk loader.
Please, add function to check if block is in loaded chunk.
With such function I could check if portal is in loaded chunk and tick it only if loaded.
friendlyhj commented
Added in CraftTweaker/CraftTweaker#1685
Krutoy242 commented
Incredible! 😲