Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make offsets easier #158

Open
MelanX opened this issue May 1, 2024 · 0 comments
Open

Make offsets easier #158

MelanX opened this issue May 1, 2024 · 0 comments
Labels
1.21 Will be added in 1.21+ enhancement New feature or request
Milestone

Comments

@MelanX
Copy link
Collaborator

MelanX commented May 1, 2024

Describe your idea

When implementing spreads, the offset was offset for a single offset (for min and max), or minOffset and maxOffset. It would be easier to have it like this:

{
  "constant_example": [0, 0, 0],
  "range_example": {
    "min": [-1, -1, -1],
    "max": [1, 1, 1]
  }
}

In this example, constant_example and range_example are just placeholders for the config entry name.
This could be used not only for spreads but for multiple configs:

  • spread offset
  • island offset in world.json5 (a bit useless here but possible)
  • item count in starter inventory (maybe a bit unfair, but hey, i don't judge)
  • spawn height in spawn.json5
@MelanX MelanX added enhancement New feature or request 1.21 Will be added in 1.21+ labels May 1, 2024
@MelanX MelanX added this to the 1.21 milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21 Will be added in 1.21+ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant