#Adding A Possible Chunk Function

1 messages · Page 1 of 1 (latest)

serene trout
#

In Scripting If An Entity And Or Block Is Not In A Loaded Chunk, Could We Implement In The Dimension Class A "Chunk" Function. Like For Example

// The chunkForceLoad Will Have A Required Vector 3
world.getDimension('overworld').chunkForceLoad({x: x, y: y, z: z})
``` I Just Want Something Similar In Scripting That's Replicates The Minecraft Command "/tickingarea". So We Could Avoid Errors From Unloaded Chunks. And Maybe Have A Unload Chunk Function As Well Like This:
```js
// The chunkForceUnload Will Have A Required Vector 3
world.getDimension('overworld').chunkForceUnload({x: x, y: y, z: z})
clear terrace
#

or even adding scripting-driven "ticking areas"

valid aurora
#

That seems like a better way to about it ^

clear terrace
#

Yes, it probably is

#

Also adding a features port (in some way) will be great, like allowing noise queries access or allowing to manipulate worldgen directly with scripts

nocturne hemlock
cunning ingot
hallow oar
#

I think we wanted to try to live on a world where scripters didn't have to think about chunks, but I don't think that's possible lol. So I expect we might come to some basic APIs for chunk loading/unloading. I would imagine a scripting equivalent to the tickingarea command will probably be the first step. All disclaimers around commitments, and I don't think we'd have anything short-termish, but probably maybe medium-termish.