cabaletta / cabaletta/baritone
Cache a list of blocks present in each chunk
- Dominant language
- Java
- Stars
- 9.2k
- Forks
- 2.1k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 3
Description
## Describe your suggestion
Make a list of every block present in a chunk (overall) and save it alongside the cache data. When the user searches for a block that isn't in any of the loaded chunks, it'll find some cached chunk that has the block, path near enough to the chunk to load it, then path to the actual block, since we now know where it is.
This wouldn't take up that much space, since it won't actually be tracking which blocks are which, just which blocks are present within each chunk, and once it gets near enough to load that chunk, it will re-path to it.
## Settings
If applicable, what settings/customizability should be offered to tweak the functionality of your suggestion.
searchCacheForBlocks (Boolean) - Enable or disable the feature overall
cacheBlockBlacklist (List[Block]) - Blocks to avoid caching, since they're so common (grass, dirt, stone, etc.) to reduce size.
## Context
If I play on a server for a while, I have a lot of chunks cached, but none of them contain block data. I could have run across a certain block (or, more specifically, loaded it's chunk) dozens of times, but .mine won't be able to find any.
This would improve the .goto and .mine commands, especially for rare blocks like end_portal_frame.
## Final checklist
- [x] I know how to properly use check boxes
- [x] I have not used any OwO's or UwU's in this issue.
(also, as a complete side note, how does .find work? for me it just echoes the command back and does nothing.)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.