Posted April 7, 201411 yr This could be anything. (currently I am trying to make a new MaterialLiquid (i'd be fine with Material.water, save for the splash sound and flying blue particles, which seem to be controlled by the material....) anyway, is this even possible? or is there a different way of doing this?
April 7, 201411 yr Look at the sources in net.minecraftforge.fluids package. It has all the stuff you need for custom fluids and gases. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
April 7, 201411 yr Author With all due respect, The classes in the net.minecraftforge.fluid package do not contain any info on materials other than the basic registering of a material in the BlockFluid. (I just looked through every single fluid class {as you requested} and failed to find anything that would help me. (I currently have a forge fluid with Material.water. I would like to change this and make a new material) @Sequituri: Though your answer was not what I was looking for, thank you for responding promptly
April 7, 201411 yr EnumHelper then. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
April 7, 201411 yr While I haven't done anything specifically with fluids, you should be able to just make a new Material. Here's an example from one of my own blocks: public class BlockPeg extends Block { // two static material fields to hold my custom Materials // these are both in my Block class, and I use them when I call the constructor from pre-init public static final MaterialPeg pegWoodMaterial = new MaterialPeg(MapColor.woodColor); public static final MaterialPeg pegRustyMaterial = new MaterialPeg(MapColor.ironColor); // rest of the peg class } // nested class in my BlockPeg class, but it doesn't have to be: class MaterialPeg extends Material { public MaterialPeg(MapColor color) { super(color); setRequiresTool(); setImmovableMobility(); setAdventureModeExempt(); } } I imagine it would be just about exactly the same to make a new fluid Material. http://i.imgur.com/NdrFdld.png[/img]
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.