-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Active Item API #5365
Active Item API #5365
Conversation
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
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.
Tud stole my suggestions while I was lazy reviewing 😂 jk.
Nice PR ⚡
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
Co-authored-by: _tud <[email protected]> Co-authored-by: Ayham Al Ali <[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.
Hi again ⚡
I accidentally left this as comment instead of change request, but it's a change request
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Ayham Al Ali <[email protected]>
Building is failing due to my recent reviews not including braces due to the change of using a list inside Annotations. @Description({
"",
""
}) |
Yeah I just wanted to batch commit, it'll be fixed when i push the commit w/ updated import and version requirement :) |
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
Co-authored-by: LimeGlass <[email protected]>
May also be worth adding these events as it's related to the expressions |
Ooh good idea, I'll work on those too. |
Waiting on Spigot to fix the I'm planning on leaving it as ExprConsumedItem instead of a simple event-value for this reason. (returns the consumed item) |
Co-authored-by: Ayham Al Ali <[email protected]>
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
bd134d0
to
3f08853
Compare
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.
Looks good!
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.
looking pretty good!
src/main/java/ch/njol/skript/expressions/ExprMaxItemUseTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprEntityItemUseTime.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Patrick Miller <[email protected]>
Description
This PR adds syntaxes that supports getting and interacting with a living entity's active item.
Active items are those that have non-instant actions when used, like drawing a bow, eating food, blocking with a shield, or loading a crossbow.
Syntax added:
Target Minecraft Versions: 1.12+
Requirements: Paper 1.12.2+, EffCancelItemUse requires Paper 1.16.5+
Related Issues: #4185