We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amount
display_fluid
treetap/src/main/resources/data/treetap/recipe/water_from_crying_obsidian.json
Lines 11 to 13 in 17ae9a3
Is missing an amount field since display_fluid is serialized as a FluidStack:
FluidStack
treetap/src/main/java/cy/jdkdigital/treetap/common/block/recipe/TapExtractRecipe.java
Line 93 in 17ae9a3
Since amount in FluidStack is now required:
public static final Codec<FluidStack> CODEC = Codec.lazyInitialized( () -> RecordCodecBuilder.create( instance -> instance.group( FLUID_NON_EMPTY_CODEC.fieldOf("id").forGetter(FluidStack::getFluidHolder), ExtraCodecs.POSITIVE_INT.fieldOf("amount").forGetter(FluidStack::getAmount), // note: no .orElse(1) compared to ItemStack DataComponentPatch.CODEC.optionalFieldOf("components", DataComponentPatch.EMPTY) .forGetter(stack -> stack.components.asPatch())) .apply(instance, FluidStack::new)));
This will cause deserialization error when adding recipe support for KubeJS:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
treetap/src/main/resources/data/treetap/recipe/water_from_crying_obsidian.json
Lines 11 to 13 in 17ae9a3
Is missing an
amount
field sincedisplay_fluid
is serialized as aFluidStack
:treetap/src/main/java/cy/jdkdigital/treetap/common/block/recipe/TapExtractRecipe.java
Line 93 in 17ae9a3
Since
amount
inFluidStack
is now required:This will cause deserialization error when adding recipe support for KubeJS:
The text was updated successfully, but these errors were encountered: