#[1.20.6] - How to get potion length from itemstack ?
1 messages · Page 1 of 1 (latest)
Do you mean the duration of the potion or something else
You may need to use the method getStatueEffect (...). getDuration in PlayerEntity if you want to get the duration of the potion
I mean a potion in inventory, before using it, detecting which duration the potion has. Is it possible ? because i found nothing on docs
I'm sorry, there doesn't seem to be such a function, but you can try nbt