-
Notifications
You must be signed in to change notification settings - Fork 74
Improve metadata / PDC usage #183
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
Conversation
- Improved some error messages, - Added a bridge DataType between strings and supported PDTs - Improved the meta_ placeholders - Made the type optional for meta_has_value placeholder - PMH#hasMeta now only checks the supported types if no type is specified.
The merge-base changed after approval.
Hello ! |
I have tested about 90% of the changes. I still have to test the meta placeholders and make sure they work properly and then we should be good to go. I'm not sure when I'll have time to do that. |
This PR is ready for code review. Tested on @NoltoxGit if you want to give this build a try before it is merged, you can use the following file (unzip it first): |
Hi, |
I've just tested the version, it's look work great! And have a suggestion:
|
It is possible to add such a command, but, unfortunately, due to how we store values, it would be buggy when determining what type a value is. This is the reason I did not add it in the first place. |
Hi, Because after several weeks of testing with this PR on our development server, and we had no special issues. But, we have had the impression that reloading with the |
HelpChat@a465d9a Fix light_level being overwritten for LIGHT item. (HelpChat#200) HelpChat@41b2476 Fix MMO-Items not working when item id contains colon(s). (HelpChat#194) HelpChat@87141c0 Improve metadata / PDC usage (HelpChat#183) HelpChat@bc699b8 improve bstats (HelpChat#202) HelpChat@a20c30d update adventure for 1.21.5 (HelpChat#201) HelpChat@f048028 Fix exception that occurs when trying to add metadata. (HelpChat#205) HelpChat@08fbb34 fix command event action (HelpChat#206) HelpChat@d512986 Added support for the new CustomModelDataComponent (HelpChat#195) HelpChat@4f05d70 Finally, a release (HelpChat#207) HelpChat@9fc732f Moved to 1.14.2-dev and added CODE_OF_CONDUCT.md & CONTRIBUTING.md files (HelpChat#212) HelpChat@6775b7f Add Menu Refresh Task and Command for Complete Menu Rebuilding (HelpChat#189) HelpChat@4ae3bf6 fix README.md link (HelpChat#214) HelpChat@d884d8d Add gitbook badge (HelpChat#215) HelpChat@944a113 Add [log] Action to Output Console Messages for Debugging/Testing, Closes HelpChat#199 (HelpChat#208) HelpChat@94d6632 fix for textures not showing on player name heads (HelpChat#213)
This PR improves the current PDC usage and adds new commands for handling use metadata.
For DeluxeMenus users:
Added:
show
: Gets the stored value at the specified key as long as it matches the specified typelist
: List all key-value pairs of a specified typeset
: Set a value of specified type at the specified key (if a value exists at the given key, it will override it only if the type matches)remove
: Remove a value of specified type from the specified key (as long as existent value matches the given type)add
: Used for addition on number types (If no value exists at the given key yet, the addition will be done on a 0 value)subtract
: Used for subtraction on number types (If no value exists at the given key yet, the subtraction will be done on a 0 value)switch
: Used for switching boolean values. Since BOOLEAN type is just an alias for String, it will also work for String types as long as the values are true or false (case insensitive)/papi info deluxemenus
)Changed:
%deluxemenus_meta_has_value_<key>_[type]%
placeholder no longer requires a type to be specified. If no type is specified, all supported types will be checked.For DeluxeMenus developers:
Closes #134