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

External Level Additions #236

Open
2 tasks done
BONNe opened this issue Sep 24, 2021 · 0 comments
Open
2 tasks done

External Level Additions #236

BONNe opened this issue Sep 24, 2021 · 0 comments

Comments

@BONNe
Copy link
Member

BONNe commented Sep 24, 2021

Is your feature request related to a problem?

Currently, Level addon stores values from materials and initial-boost. However, there is no way how to add/reduce non-material-based things.

Like, increase the island level based on completed challenges, unlocked advancements, or any other external thing.

Describe the solution you'd like.

Level addon API should allow to add and remove non-material boosts.

It could be as simple as Map<String, Long> boostMap that contains booster name and booster value.
This value will be added to the level calculation and in level view, it will be displayed in a separate view (like materials).

The more advanced implementation could be:
Map<String, Record> boosterMap;
Record:

  • long value;
  • String displayName;
  • String description;
  • ItemStack icon;

This record would allow external sources to dictate the PanelItem format for Level View Panel.

Describe alternatives you've considered.

Well, another solution would be to catch every level event and change it manually, however, it would be a lot of effort.

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant