Ah yes, matter slots
This commit is contained in:
parent
e13ab9f087
commit
5299c20970
@ -48,7 +48,7 @@ class MatterDustItem : Item(Properties().stacksTo(64)), IMatterItem {
|
||||
companion object {
|
||||
val CODEC: MapCodec<Randomizer> = RecordCodecBuilder.mapCodec {
|
||||
it.group(
|
||||
DecimalProvider.CODEC.fieldOf("slots").forGetter(Randomizer::matter),
|
||||
DecimalProvider.CODEC.fieldOf("matter").forGetter(Randomizer::matter),
|
||||
IntProvider.CODEC.optionalFieldOf("luck_bias", ConstantInt.ZERO).forGetter(Randomizer::luckBias),
|
||||
).apply(it, ::Randomizer)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user