Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

  • 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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.