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

Hello guys, so I have never done a fluid before, but I think I got it right, except the rendering.

 

I have the fluid block (BlockFluidClassic), I can place it and it can normally flow; However, it is invisible (with default RenderType = -1) or untextured blocks (with RenderType = 3).

 

Does anyone know how to properly register a fluid in 1.8?

You need to use Forge's fluid model. Use the default render type of 3 (model specified by blockstates file). -1 stops the block being rendered at all (used by vanilla

TESR

blocks).

 

Forge has an example here (blockstates file) and I have an example here (blockstates file).

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

I see... for some reason my forge Fluid class is different from those, it doesn't have the ResourceLocation. What version are you using?

 

Edit: I was using the recommended version 11.14.3.1450. I changed to version 11.14.3.1502 and it worked beautifully!

 

Thanks Choonster! :)

Choonster,

can you confirm the need to move up to 1502?  I followed some of your suggestions on this issue before and finally gave up because I could never get it to render.

Long time Bukkit & Forge Programmer

Happy to try and help

Fluid Renderer wasn't added until build 1464, 1502 is just the last build before forge gradle 2.0

 

This is correct. I've just been updating to the latest Forge version occasionally, since it's just a test mod I don't worry about compatibility with older versions of Java or Forge.

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.

That explains a few problems.  Thanks.

Long time Bukkit & Forge Programmer

Happy to try and help

  • 1 month later...

Thanks so much for the post, it has really helped me with fluids in 1.8.  However, I am having an issue with getting the texture hooked up correctly.  I am currently getting a texture error saying that I am missing 2 textures (the flow and still) in DOMAIN minecraft, however I have it of course with my mod's assets.  It seems like it is looking for it in the Minecraft asset structure.

 

log below

 

[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN minecraft
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:   domain minecraft is missing 2 textures
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     domain minecraft has 3 locations:
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       mod FML resources at C:\Users\Jerrbear\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.3.1502\snapshot\20141130\forgeSrc-1.8-11.14.3.1502.jar
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       mod Forge resources at C:\Users\Jerrbear\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.3.1502\snapshot\20141130\forgeSrc-1.8-11.14.3.1502.jar
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain minecraft are:
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/lifestream_flow.png
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/lifestream_still.png
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain minecraft
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN makomod
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:   domain makomod is missing 1 texture
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     domain makomod has 1 location:
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       mod makomod resources at C:\Users\Jerrbear\Desktop\Minecraft\makomod\build\libs\makomod-1.0.jar
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain makomod are:
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/makoReactor.png
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain makomod
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:07:28] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

 

 

NOTE: I have textures working for other items and blocks, I just haven't gotten around to making a texture for the reactor, so ignore that one please.

 

EDIT: I shouldn't blindly use source code :P  for anyone else that might encounter this problem, make sure to include "modid:path/to/texture" in your constructor for your fluid, instead of just "path/to/texture"

example:

public FluidLifestream() {
        super(NAME, new ResourceLocation("makomod:blocks/lifestream_still"), new ResourceLocation("makomod:blocks/lifestream_flow"));
}

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.