Jump to content

Fluid Texture wont show up (Forge 1.12.2 14.23.2.2619)


Recommended Posts

Posted

Hello,

Im currently trying to setup a fluid. It works fine just now, the only thing is that no custom tex will be loaded

 

Here is my fluid class:

import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;

public class FluidDung extends Fluid {
    public FluidDung() {
        super("dung", new ResourceLocation("renergy:blocks/fluid/dung_still"), new ResourceLocation("renergy:blocks/fluid/dung_flow"));
        setColor(new java.awt.Color(128, 64, 0));
        setDensity(1100);
        setGaseous(false);
        setLuminosity(0);
        setViscosity(25000);
        setTemperature(300);

        FluidRegistry.registerFluid(this);
    }
}

 

 

And this is the class were I register the fluid:

public class RFluids {
    public static FluidDung DUNG;

    public static void registerFluids()
    {
        DUNG = new FluidDung();
    }

}

 

"RegsiterFluids()" will be called in common FMLProxy:

@Proxied
public class FMLProxy {

    public void onPreInit(FMLPreInitializationEvent event) {
        RFluids.registerFluids();

    }
...
}

 

the textures are located in:

resources\assets\renergy\textures\blocks\fluid\dung_still.png

resources\assets\renergy\textures\blocks\fluid\dung_flow.png

as well as the MCMeta files.

 

the fluid works as intended, only without texture (the MissingTexture-Texture will be displayed)

I tried to figure it out for at least two hours now and can't get it working...

 

Coding on Intellij IDEA Community Edition 2017.3.4

 

 

Any suggestions?

cad435

 

 

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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