I went through a gold gate, had to run though some pistons that were trying to crush me, and the lever at the end won't work after I grabbed the gold block.
I've been trying to get a Fluid to work but I always get errors with my block id. Here are my class files:
[spoiler]
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
public class RootBeerFluid extends Fluid {
public RootBeerFluid() {
super("RootBeer");
public static Fluid [u]RootBee[/u]r;
// and before blocks are initialized:
RootBeer = new RootBeerFluid();
setDensity(10); // How tick the fluid is, affects movement inside the liquid.
setViscosity(1000); // How fast the fluid flows.
FluidRegistry.registerFluid(this); // Registering inside it self, keeps things neat
}}
And this is the Block
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
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;
public class BlockRootBeerFluid extends BlockFluidClassic {
public BlockRootBeerFluid(int Id) {
super(2010, [u]ModTutorial[/u].RootBeer, Material.water);
[u]ModTutorial[/u].RootBeer.setBlockID(2010); // Set the fluids block ID to this block.
}
public static Block RootBeer;
// and before blocks are initialized:
RootBeer = new BlockRootBeerFluid();
// Use Register Icon as usual to get the block's icon.
// If you want you can reuse the water texture and change the color of it by doing as I have below:
@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; // HEX color code as indicated by the 0x infront. This is a greenish color.
}}
How do I fix the underlined problems? Do I need to add anything into my main mod class?
I'm a little new at modding and I haven't been able to find a tutorial for adding your own water in-game and having a bucket be able to use it. Can anyone make one? Preferably a video one?
1
Has anyone figured out how to have add a Lens Flare effect from the sun in v11 yet? It has been done in v10.1: http://www.neocodex.us/forum/topic/126112-guide-add-lens-flare-to-seus-shader-pack/
0
I went through a gold gate, had to run though some pistons that were trying to crush me, and the lever at the end won't work after I grabbed the gold block.
0
0
[spoiler]
And this is the Block
How do I fix the underlined problems? Do I need to add anything into my main mod class?
0
0
0
0
0
Sssssssssssss .
0
0
0
0
I didn't say I was requesting one, I just check here almost everyday for atleast half a year.
0
Haha, minecraft joke.
0