1
Help modding minecraft
i used to mod minecraft, but i took a brake from it to take other interests. i come back now and they have compleatly changed how you load a texture! can someone plz tell me what .java file i need to edit to load a texture. (i use mcp)
Create an account or sign in to comment.
5
hello, I have been watching ScratchForFuns new liquid tutorial and I have tried to follow the exact same as him i even changed my variables to match and i have one error i don't under stand a semi colon that's erred
I will have @ sign on the line the errors on
|package Sandboxking27.LogicCraft.fluid;
|
| import net.minecraft.block.Block;
| import net.minecraft.block.material.Material;
| import net.minecraftforge.fluids.Fluid;
|
| public class Fluids {
| //liquids registery
| public static Block blockIronFluid;
|
| //fluid registery
| public static Fluid fluidIron;
|
|
| //material registry
| public static Material materialFluidIron;
|
| // fluid ids
@ public static final int idFluidIron = 240; < the error is this semicolon
|
| fluidIron = new Fluid("fluid").setBlockID(idFluidIron);
| FluidRegistry.registerFluid(fluidIron);
|
| materialFluidIron = new MaterialLiquid(MapColor.ironColor);
|
|
| blockIronFluid = new
| BlockIronFluid(dFluidIron).setUnlocalizedName("fluid_iron").setTexture("");
| }
| }
I will have @ sign on the line the errors on
|package Sandboxking27.LogicCraft.fluid;
|
| import net.minecraft.block.Block;
| import net.minecraft.block.material.Material;
| import net.minecraftforge.fluids.Fluid;
|
| public class Fluids {
| //liquids registery
| public static Block blockIronFluid;
|
| //fluid registery
| public static Fluid fluidIron;
|
|
| //material registry
| public static Material materialFluidIron;
|
| // fluid ids
@ public static final int idFluidIron = 240; < the error is this semicolon
|
| fluidIron = new Fluid("fluid").setBlockID(idFluidIron);
| FluidRegistry.registerFluid(fluidIron);
|
| materialFluidIron = new MaterialLiquid(MapColor.ironColor);
|
|
| blockIronFluid = new
| BlockIronFluid(dFluidIron).setUnlocalizedName("fluid_iron").setTexture("");
| }
| }
Woah, we got some great modders gettin' up in here.
Its a little confusing, but if you are using forge (which I highly recommend), then theres a tutorial here:
http://www.minecraftforge.net/wiki/Icons_and_Textures
That method MAY work in/with Vanilla and Modloader, but I'm not sure.
http://www.minecraftforge.net/wiki/Icons_and_Textures
That method MAY work in/with Vanilla and Modloader, but I'm not sure.
It'll all work perfectly, but thr custom texture path dosen't work. You have to remove the letters before the colon, and put the files in textures/blocks or textures/items
Sorry for this post being a little late: You can actually override /textures with the @Override signature and by extending a custom BaseItem class which extends Item. Just thought I would point it out.