Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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!

  • 3 months later...

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)

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.

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.

  • Author

How do I make a json for both of my fluids?

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!

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.

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.

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.