Posted November 2, 201311 yr My Liquid Isn't Being Added To The Game Even Though There Are No Errors Hello everyone! I tried to add a custom liquid to the game, but when I loaded up the game there were no errors, but my liquid didn't get added. I don't know how to fix this so I came here for help! This is the code is my mod's main class that has to do with the liquid: //Define Fluids public static Fluid fluidCorrosiveAcid; public static Block blockCorrosiveAcid; //Initialize Fluids fluidCorrosiveAcid = new FluidCorrosiveAcid(); blockCorrosiveAcid = new BlockCorrosiveAcid(3201); //Register Fluids To The Game GameRegistry.registerBlock(blockCorrosiveAcid); This is the code for the FluidCorrosiveAcid class: package com.leonardude.zether.blocks; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; public class FluidCorrosiveAcid extends Fluid { public FluidCorrosiveAcid() { super("fluidCorrosiveAcid"); this.setDensity(10); this.setViscosity(1000); FluidRegistry.registerFluid(this); } } And this is the code for the BlockCorrosiveAcid class: package com.leonardude.zether.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraftforge.fluids.BlockFluidClassic; import com.leonardude.zether.main.Zether; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCorrosiveAcid extends BlockFluidClassic { public BlockCorrosiveAcid(int id) { super(id, Zether.fluidCorrosiveAcid, Material.water); Zether.fluidCorrosiveAcid.setBlockID(id); } @Override @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return Block.waterMoving.getIcon(side, meta); } @Override public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) { return 0x66FF00; } } Please help me as I have no idea what to do! Thanks in advance! ;D ;D Leonardude
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.