Posted March 31, 201510 yr I want to know if I can make a custom fluid using the stock minecraft classes and if that would work as right now forges fluid rendering does not work.
April 1, 201510 yr I'm not sure, but I think you can create classes that extend BlockDynamicLiquid and BlockStaticLiquid and modify those so that the flowing part works in the updateTick() method. If you look at how lava and water are made, it is simply through this registration: new BlockDynamicLiquid(Material.water)).setHardness(100.0F).setLightOpacity(3).setUnlocalizedName("water").disableStats()); new BlockDynamicLiquid(Material.lava)).setHardness(100.0F).setLightLevel(1.0F).setUnlocalizedName("lava").disableStats()); And of course you can create your own materials if it makes sense. You'll note that the parent class BlockLiquid has a property called LEVEL which is the fluid level within the block from 0 to 15. You could use that to control the model used to display the liquid. Anyway, I think that could work. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.