NovaViper Posted June 18, 2015 Posted June 18, 2015 Hey, I noticed that there was a commit on Github that added fluid renderers. How do I access them and use them to render the textures of my liquids? Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
hibikutek Posted October 15, 2015 Posted October 15, 2015 All you need to do is update your fluid class to use the new constructor. Example public FluidMyFluid() { super("myfluid", new ResourceLocation("mymod:blocks/myfluid_still"), new ResourceLocation("mymod:blocks/myfluid_flow")); } in the ResourceLocation constructor, it follows the "modid:path/to/texture" Do note, you don't have to do the full path (assets/modname/path/to/texture) Quote
Choonster Posted October 16, 2015 Posted October 16, 2015 You also need to use the forge:fluid model in your blockstates file with the fluid name in the custom data section provided by the Forge blockstates format. You can see examples of this in Forge here (blockstates file) and my mod here (blockstates file). Note that the MeshDefinitionFix interface in my mod is just a workaround that allows a lambda to be used as an ItemMeshDefinition (ForgeGradle doesn't know how to reobfuscate lambdas properly), you can also use an anonymous class like in Forge's example. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
NovaViper Posted October 16, 2015 Author Posted October 16, 2015 How do I make a json for both of my fluids? Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
Choonster Posted October 16, 2015 Posted October 16, 2015 How do I make a json for both of my fluids? Both of the examples I provided use a single blockstates JSON for all the mod's fluids. Each variant is a single fluid. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
hibikutek Posted October 16, 2015 Posted October 16, 2015 I totally forgot about the blockstates file, and the model bakery stuff. Choonster, I feel like you should just make a short 1.8 fluid tutorial, and just link it to all of these questions about fluids. Though honestly, looking at your mod and the forge debug file was enough for me to figure it out. Quote
Recommended Posts
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.