Eetmorchikn Posted February 8, 2015 Posted February 8, 2015 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 Quote I may have over-thunk it...
Eetmorchikn Posted February 9, 2015 Author Posted February 9, 2015 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!! Quote I may have over-thunk it...
Eetmorchikn Posted February 9, 2015 Author Posted February 9, 2015 So I've just read that Forge for 1.8 does not yet support custom fluid rendering... oops! Quote I may have over-thunk it...
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.