Merged
Conversation
Absolutionism
requested changes
Aug 18, 2025
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
…g but delete and remove_all
Absolutionism
requested changes
Aug 19, 2025
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Absolutionism
requested changes
Aug 20, 2025
Contributor
Absolutionism
left a comment
There was a problem hiding this comment.
Last one, re-request for approval
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Contributor
Author
I will add the import when I get home and run some final tests then request review |
Efnilite
approved these changes
Aug 20, 2025
Contributor
Author
Absolutionism
approved these changes
Aug 21, 2025
erenkarakal
pushed a commit
to erenkarakal/Skript
that referenced
this pull request
Nov 26, 2025
* Add ExprTimeLived * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * space after method Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Remove unnecessary conditions Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Add casting back to condition * adjust acceptChange to only allow add/remove/set instead of everything but delete and remove_all * allow multiple entities to be changed * simpler examples * add reset to accepted changing methods * fix inconsistency in example * Remove unneeded quote blocks Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * blank last line Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Make sure it doesn't go above max integer limit Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Math2 import * remove start of interaction code moved to another branch * Update ExprTimeLived.java --------- Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
erenkarakal
pushed a commit
to erenkarakal/Skript
that referenced
this pull request
Nov 26, 2025
* Add ExprTimeLived * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * adjust annotation Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * space after method Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Remove unnecessary conditions Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Add casting back to condition * adjust acceptChange to only allow add/remove/set instead of everything but delete and remove_all * allow multiple entities to be changed * simpler examples * add reset to accepted changing methods * fix inconsistency in example * Remove unneeded quote blocks Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * blank last line Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Make sure it doesn't go above max integer limit Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> * Math2 import * remove start of interaction code moved to another branch * Update ExprTimeLived.java --------- Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Problem
There's no current way to get the time lived of an entity
Solution
Added ExprTimeLived
time lived of %entities%%entities%'s time aliveetc
Testing Completed
Test 1
expected off by a tick? I'm assuming since it doesn't wait for the cow to actually "start living"?
that's the reason I added the getTicksLived directly just to make sure this wasn't an error in the expression
Test 2 - edited provided example
Test 3
Supporting Information
No breaking changes

Just out of curiosity I checked back and from what I can tell even in ancient versions of the game getTicksLived and setTicksLived has stayed the same
Completes: none
Related: none