Skip to content
New issue

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

Potion NBT in Create Mixing Result is Missing #23

Open
stop-x13 opened this issue Sep 18, 2022 · 1 comment
Open

Potion NBT in Create Mixing Result is Missing #23

stop-x13 opened this issue Sep 18, 2022 · 1 comment

Comments

@stop-x13
Copy link

I tried to create recipe using potion fluid that create added:
event.recipes.createMixing(Fluid.of('create:potion', 1000, {Potion: "minecraft:regeneration"}), [
'create:honeyed_apple',
Fluid.of('create:potion', 1000, {Potion: "minecraft:awkward"})
]).heated()
but i get this error:
[WARN ] Error creating recipe create:kjs_bsgx6r45fehfywrczzk0j50y1[create:mixing]: {"processingTime":100,"heatRequirement":"heated","type":"create:mixing","ingredients":[{"item":"create:honeyed_apple"},{"fluid":"create:potion","nbt":{"Potion":"minecraft:awkward"},"amount":1000}],"results":[{"fluid":"create:potion","amount":1000,"nbt":null}]}: com.google.gson.JsonSyntaxException: Expected nbt to be a string, was null (json)

However, using potion nbt in ingredients is working
event.recipes.createMixing('createdeco:netherite_nugget', [
Fluid.of('create:potion', 50, {Potion: "minecraft:regeneration"}),
'create:cinder_flour',
'minecraft:magma_cream'
])
This works

@stop-x13
Copy link
Author

event.custom({
"processingTime": 100,
"heatRequirement":"heated",
"type":"create:mixing",
"ingredients":[
{"item":"create:honeyed_apple"},
{"fluid":"create:potion", "nbt":{"Potion":"minecraft:awkward"}, "amount":1000}
],
"results":[{"fluid":"create:potion","amount":1000,"nbt":{"Potion":"minecraft:regeneration"}}]
})
This does not work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant