Closed mageowl closed 10 months ago
In 1.19.4 the ability to add infinite duration to an effect was added. modify(e, 'effect') should reflect that, perhaps passing true as the duration = infinity?
modify(e, 'effect')
the game use -1 to represent infinity.
to query it , scarpet could return -1 normally. but when i want to modify it, <=0 will remove the effect...
https://github.com/gnembon/fabric-carpet/blob/master/src/main/java/carpet/script/value/EntityValue.java#L1486
This was introduced in 1.4.128 and #1844.
In 1.19.4 the ability to add infinite duration to an effect was added.
modify(e, 'effect')
should reflect that, perhaps passing true as the duration = infinity?