Skip to content

Improved the CustomItem meta checks#47

Merged
WolfyScript merged 28 commits into
masterfrom
better_advanced_meta_settings
Nov 17, 2021
Merged

Improved the CustomItem meta checks#47
WolfyScript merged 28 commits into
masterfrom
better_advanced_meta_settings

Conversation

@WolfyScript
Copy link
Copy Markdown
Owner

The custom checks are now 100% modular.
For each saved (and registered) CustomItem you can set so called NBT checks, that can replace the default check or extend it.

By default the CustomItem will use a single check with the key wolfyutilities:customitem_tag, which will just check for the namespaced key of the item.
There must at least one check, if you don't set one the default one is used.

To add different checks you need to configure the config of the item or add them via the API.
It uses a new field in the config called nbtChecks with a child checks, that is the actual the array that contains the checks.

"nbtChecks" : {
    "checks" : [ {
      "key" : "wolfyutilities:customitem_tag"
    } ]
  }

You are also able to code and register your own checks (inside your plugins onLoad()).
There isn't any wiki page for it you would have to look at the other checks and see how they are registered.

…e settings already they will just be loaded as is. If it isn't it will clear them, to make sure they are configured correctly.
@WolfyScript WolfyScript merged commit 8432841 into master Nov 17, 2021
@WolfyScript WolfyScript deleted the better_advanced_meta_settings branch December 22, 2021 14:41
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

Successfully merging this pull request may close these issues.

1 participant