Posted November 1, 201212 yr I am new to modding, i already have mcp and eclipse set up and i have a simple block so my question is how do i make / use a custom texture and how do i set custom things like hardness and drops? my code test.common package test.common; import cpw.mods.fml.common.Mod; import net.minecraft.src.Block; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "Dus998_TestMod" , name = "Test" , version ="0.1") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class Test { public static Block TestBlock; @Init public void load(FMLInitializationEvent event) { TestBlock = new blockTestBlock(250, 0).setBlockName("TestBlock"); GameRegistry.registerBlock(TestBlock); LanguageRegistry.addName(TestBlock, "Test Block"); } } the block package test.common; import net.minecraft.src.Block; import net.minecraft.src.CreativeTabs; import net.minecraft.src.Material; public class blockTestBlock extends Block { public blockTestBlock(int id, int texture) { super(id, texture, Material.cloth); this.setCreativeTab(CreativeTabs.tabBlock); } }
November 1, 201212 yr use that link http://www.minecraftforge.net/wiki/Category:Generic_Mod and set up proxy client and common. and for drops and hardness look in net.minecraft.src.Block
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.