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

I having difficulty setting up textures for a custom fluid in Forge  1.8...

The fluid works fine, except it is invisible. Boats will rise to the top of the invisible fluid and it removes grass blocks as it spreads, though I very much would like to add my own custom texture!!

 

I've noticed that these errors come up as my mod gets pre-initialized:

 

[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=8 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=9 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=4 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=5 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=6 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=7 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=0 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=1 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=2 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=3 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=14 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=13 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=15 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=10 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=12 not found
[14:25:22] [Client thread/ERROR] [FML]: Model definition for location mymod:fluid_custom#level=11 not found

 

I have a block model JSON file in "assets/mymod/models/block"  set up as follows, and I'm not sure what i need to change/add....

 

{
    "parent": "block/cube_all",
    "textures": {
        "all": "mymod:blocks/fluid_custom"
    }
}

 

I also have my 16x16 texture here: "assets/mymod/textures/blocks/fluid_custom.png"

 

How do I get a basic 16x16 texture to wrap like the water texture does??

(just with the same texture for each block, and no animations)

 

 

 

My class setup:

 

In my MainRegistry class:

@EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
    	fluidCustom = new FluidCustom("Custom Fluid");
    	FluidRegistry.registerFluid(fluidCustom);    	
        blockFluidCustom = new BlockFluidCustom().setUnlocalizedName("blockFluidCustom");
    	GameRegistry.registerBlock(blockFluidCustom, ((BlockFluidCustom) blockFluidCustom).name );
    }

 

FluidCustom:

public class FluidCustom extends Fluid {

public FluidCustom(String fluidName) {
	super(fluidName);
	this.setDensity(100);
	this.setViscosity(3000);
}

}

 

BlockFluidCustom:

public class BlockFluidCustom extends BlockFluidClassic {

public static final String name = "fluid_custom";

public BlockFluidCustom() {
	super(MainRegistry.fluidCustom, Material.water);
}

}

 

I've also noticed that there is the method  setIcons(TextureAtlasSprite arg0) in the Fluid class..  would I need to use that to set my texture??

 

helpppp plissss

 

I may have over-thunk it...

  • Author

Ok so I've figured out why the error was happening... but the fluid still renders invisible...

inside my assets/mymod/blockstates/fluid_custom.json, I added all of the variants that a fluid block looks for:

 

{
    "variants": {
        "normal": { "model": "mymod:fluid_custom" },
        "level=0": { "model": "mymod:fluid_custom" },
        "level=1": { "model": "mymod:fluid_custom" },
        "level=2": { "model": "mymod:fluid_custom" },
        "level=3": { "model": "mymod:fluid_custom" },
        "level=4": { "model": "mymod:fluid_custom" },
        "level=5": { "model": "mymod:fluid_custom" },
        "level=6": { "model": "mymod:fluid_custom" },
        "level=7": { "model": "mymod:fluid_custom" },
        "level=8": { "model": "mymod:fluid_custom" },
        "level=9": { "model": "mymod:fluid_custom" },
        "level=10": { "model": "mymod:fluid_custom" },
        "level=11": { "model": "mymod:fluid_custom" },
        "level=12": { "model": "mymod:fluid_custom" },
        "level=13": { "model": "mymod:fluid_custom" },
        "level=14": { "model": "mymod:fluid_custom" }
    }
}

 

I appreciate anyone who is trying to help with this issue, as I haven't seen anyone else implement custom fluids in Forge for 1.8!!

I may have over-thunk it...

  • Author

So I've just read that Forge for 1.8 does not yet support custom fluid rendering... :(

oops!

I may have over-thunk it...

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.