Jump to content

cad435_1

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by cad435_1

  1. 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
×
×
  • Create New...

Important Information

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