Jump to content

Why isnt my block appearing in game?


Recommended Posts

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;

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() {


I have an en_US.lang in case that what was the problem, there are no errors in the console. Can anyone help?

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.