Helper codecs.

Int Range Codec

A string codec that decodes from 5..10 to a Kotlin IntRange with the represented min and max. For unbounded minimum, use min..<some max> and for unbounded maximum, use <some min>..max.

Float Range Codec

A float version of the above.

Resource Location with Default Namespace Codec

This one’s as described on the tin, except it comes in the form of a function to which you provide the aforementioned default namespace, and get a codec that uses that in place of where the default one adds minecraft by default.