-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
@ Script API@ Server / Client / Env.Concept approvedApproved by a core dev: PRs welcomed!Approved by a core dev: PRs welcomed!Feature requestIssues that request the addition or enhancement of a featureIssues that request the addition or enhancement of a feature
Description
Problem
Modders may want to store and track some data related to mapblocks in order to for example modify specific mapblocks especially with connection to the newly emerging block callbacks #15999
Currently the only way to do that is to keep that data in mod storage with hashed mapblock pos as the key.
There's a chance this way of storing data is not efficient.
Solutions
Introduce mapblock meta which would allow to store key-value pairs for mapblocks, similarly to node meta, etc.
Different functions would then help to search through the database or find mapblocks with specific information.
Alternatives
Leave it up to modders to reinvent the wheel which I'm already doing anyway.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@ Script API@ Server / Client / Env.Concept approvedApproved by a core dev: PRs welcomed!Approved by a core dev: PRs welcomed!Feature requestIssues that request the addition or enhancement of a featureIssues that request the addition or enhancement of a feature