-
-
Notifications
You must be signed in to change notification settings - Fork 400
Expand Custom Model Data syntaxes to support new CMD component #7807
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
Expand Custom Model Data syntaxes to support new CMD component #7807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like this :) lgtm
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondHasCustomModelData.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Efnilite <[email protected]>
src/main/java/ch/njol/skript/conditions/CondHasCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprItemWithCustomModelData.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Efnilite <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't been keeping as up-to-date on new stuff like this, but just some general thoughts.
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
Co-authored-by: cheeezburga <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool stuff
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprCustomModelData.java
Outdated
Show resolved
Hide resolved
Adding breaking change label since bad remove all changer was removed |
Description
All previous behavior should remain the same.
In 1.21.4+:
with model data %...%
now supports numbers, strings, booleans, and colors.custom model data of {_x}
. This remains the same as previous versions, a single int value. Setting this will remove any other CMD data on the item.custom model data (floats|flags|strings|colors) of {_x}
. This returns a list of the given type from the custom model data and supports all changers.(full|complete) custom model data of {_x}
. This returns a list of all the values in the CMD, in float-flag-string-color order. This supports all changers.Target Minecraft Versions: any
Requirements: none
Related Issues: #7782