Jump to content

[Solved] Lemming's Fluid System


mardiff

Recommended Posts

Does anyone know how to make a new liquid with King Lemming's new BlockFluid class? I've been messing around a little and I can only manage to do this by making my own BlockFluid class, and even then textures don't work... any ideas?

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Link to comment
Share on other sites

it's pretty simple. just use this as a guideline and register the fluid before the block if the fluid is binded to a block. most of the methods in the BlockDigitalSeaLiquid file just add custom things to it. you only need the constructor (and you only need the super() line of it).

	@EventHandler
    public void CodeLyokoLoad(FMLInitializationEvent evt)
    {
	ModFluids.init();
	ModItems.init();
	ModBlocks.init();

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/fluids/ModFluids.java

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/fluids/BlockDigitalSeaLiquid.java

Link to comment
Share on other sites

Thanks! How would I then do custom textures? I get kind of confused around the arrays and I'm not sure which method actually registers it, considering I can't find a registerIcons function.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Link to comment
Share on other sites

Note: I don't think the system I described for setting the Fluid textures in that post is how it's intended to be done. I simply can't find any other solution, and the documentation for that area is quite poor. This new Fluid system is very convenient, but I don't think it's finished.

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.