Jump to content

[1.12.2] Missing fluid texture


GeoffrySkio

Recommended Posts

Hi,

I've been working on a custom fluid (no functionality at the moment), and am trying to get a basic texture implemented, it will only display the purple and black error texture.
If anyone can help with this issue that would be amazing.
I've had a look at several tutorials, but haven't got it working.

Github: https://github.com/Geoffry-Skionfinschii/IonicInnovations

plasma.json

{
	"forge_marker": 1,
	"defaults": {
		"model": "forge:fluid"
	},
	"variants": {
	"custom": {
				"fluid": "plasma"
			}
		}
}


FluidPlasma

package net.geoff.ionicinnovations.fluids;

import net.geoff.ionicinnovations.IonicInnovations;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.Fluid;

public class FluidPlasma extends Fluid {

	public FluidPlasma() {
		super("plasma", new ResourceLocation(IonicInnovations.modID, "plasma_still"), new ResourceLocation(IonicInnovations.modID, "plasma_flow"));
		
		this.setLuminosity(15);
		this.setDensity(-1000);
		this.setTemperature(10000000);
		this.setGaseous(true);
	}
	
}

 

IonicFluids

package net.geoff.ionicinnovations.fluids;

import net.minecraftforge.fluids.FluidRegistry;

public class IonicFluids {
	
	
	public static final FluidPlasma FLUID_PLASMA = new FluidPlasma();
	
	static {
		FluidRegistry.enableUniversalBucket();
	}
	
	public static void registerFluids() {
		FluidRegistry.registerFluid(FLUID_PLASMA);
		FluidRegistry.addBucketForFluid(FLUID_PLASMA);
	}
	
}

 

 

Thanks for any help.

Never trust the client.

Link to comment
Share on other sites

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.