Posted June 29, 201411 yr Hey, eclipse deleted my original mod (of course!). So I am re-doing my mod. I always start of with a test block, however my one isn't appearing in game! here is the main code : package me.irule2222.theWWIImod; import me.irule2222.theWWIImod.blocks.Test; import net.minecraft.block.Block; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = WWIIMain.modid, name = WWIIMain.name, version = WWIIMain.version) public class WWIIMain { public static final String modid = "wwiimod"; public static final String name = "The World War 2 Mod"; public static final String version = "Pre Alpha 0.1.0"; public static Block test; @EventHandler public void preInit(FMLPreInitializationEvent event) { test = new Test().setBlockName("test"); GameRegistry.registerBlock(test, "test"); } } And the Test class is just: package me.irule2222.theWWIImod.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class Test extends Block{ public Test() { super(Material.iron); } } I have an en_US.lang in case that what was the problem, there are no errors in the console. Can anyone help?
June 29, 201411 yr you are not setting the creative tab so it is in game you just cant get it (unless you use the give command) I am the author of Draconic Evolution
June 29, 201411 yr Author you are not setting the creative tab so it is in game you just cant get it (unless you use the give command) Cool thanks, been modding for years don't know why that caught me out!
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.