Carpet

Carpet

2M Downloads

Infinite duration effects (1.19.4)

mageowl opened this issue ยท 2 comments

commented

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?

commented

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

commented

This was introduced in 1.4.128 and #1844.