Jump to content

Recommended Posts

Posted

Hello,

I have been working on some custom recipe types and have gotten stuck when handling fluids. I need some guidance on which classes I need to be using when working with fluids. I know Fluidstack is the corresponding class for ItemStack, but that's about it. In all, I have these questions:

  • What would the fluid variant of Ingredient be?
  • How should I go about overriding the methods public ItemStack getCraftingResult(RecipeWrapper inv) and public ItemStack getRecipeOutput() in my Recipe class?
  • How should I structure my JSON objects for reading? I can assume it would be something like what I have put below.

 

For a fluid input: (1000 mb of water as an example)

"fluidInput":{

     "fluid":"forge:fluids/water",

     "amount":1000

}

 

For a fluid output: (water as an example)

"fluidOutput":{

     "fluid":"forge:fluids/water",

     "amount":1000

}

 

Thanks for the help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.