Jump to content

Items not registering - Likely a Rookie mistake


Minothor

Recommended Posts

Could anyone possibly help me out with what is probably a really rookie error?

I started coding my mod in 1.6.4 and had the items loading, tab working etc.

I've since decided to scrap working on 1.6.4 since 1.8 is due soon among other things.

I've been watching ScratchForFun's 1.7 tuts (e.g.

)to get my head around the changes.

For some bizarre reason however, the code, while throwing out no errors in the editor or at Runtime, just isn't loading the items.

Nothing seems to appear in the creative tab or game, the tab and it's language localisation however, are working fine.

I'll admit, I haven't studied Java since uni so I'l rather rusty, but I really can't see what's going wrong and if it's a truly idiotic mistake I will gladly hang my head in shame. (Hey it's how we improve, no?)

Many thanks in advance,

-NJB (Minothor)

 

Main class:

 

package minothor.bab;

import java.util.logging.Logger;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraftforge.common.MinecraftForge;
import minothor.bab.proxy.*;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;


@Mod(modid="BigAssBarrels", name="Big Ass Barrels", version="1.7.2 - Alpha 0.0.1")

public class bab {
public static final String modid = "BigAssBarrels";
    public static final String name = "Bigass Barrels";
    public static final String version = "1.7.2 - Alpha 0.0.1";

@Instance(value = "BigAssBarrels")
    public static bab instance;
@SidedProxy(clientSide="minothor.bab.proxy.clientProxy", serverSide="minothor.bab.proxy.commonProxy")
    public static commonProxy proxy;


//Declare Tab
//Set Creative Tab Icon
public static CreativeTabs tabBAB = new CreativeTabs("tabBAB"){
	public Item getTabIconItem() {
        return Items.bucket;
	}
};
//public static CreativeTabs tabBAB;

//Declare Items
public static Item itemBark;
public static Item itemCork;



//Declare Blocks

//Declare Tools

//Declare Recipes

    
//public static logger;

    public void preInit(FMLPreInitializationEvent event) {
    	itemBark = new Item().setUnlocalizedName("StrippedBark").setTextureName(modid + ":" + "StrippedBark").setCreativeTab(tabBAB);
    	GameRegistry.registerItem(itemBark, "StrippedBark");
    	
    	itemCork= new Item().setUnlocalizedName("BottleCork").setTextureName(modid+":"+"BottleCork").setCreativeTab(tabBAB);
    	GameRegistry.registerItem(itemCork, "BottleCork");
    	
    	
    }
    public void load(FMLInitializationEvent event) {
    	  	
    	proxy.registerRenderers();
    	
    	//MinecraftForge.EVENT_BUS.register(new StripTree());
    	
    	
    	//GameRegistry.addRecipe(new ItemStack(itemCork), "X", "X", 'X', new ItemStack(itemBark));
    	
    }
    
    public void postInit(FMLPostInitializationEvent event) {
            // Stub Method
    }
    
    
}

 

 

minothor.bab.proxy:

(blank templates at the moment)

 

package minothor.bab.proxy;

public class commonProxy {

    // Client stuff
    public void registerRenderers() {
            // Nothing here as the server doesn't render graphics or entities!
    }

}

 

 

 

package minothor.bab.proxy;

import net.minecraftforge.client.MinecraftForgeClient;
import minothor.bab.proxy.commonProxy;

public class clientProxy extends commonProxy{
@Override
    public void registerRenderers() {
            // This is for rendering entities and so forth later on
    }
}

 

 

assets.BigAssBarrels.lang:

item.StrippedBark.name=Stripped Bark

item.BottleCork.name=Bottle Cork

itemGroup.tabBAB=Bigass Barrels

 

assets.BigAssBarrels.textures.items: (contents attached to post)

BottleCork.png:

BottleCork.png

StrippedBark.png:

width=16 height=16https://lh6.googleusercontent.com/-Pssc9gpqzg8/UyGlSVY_BmI/AAAAAAAABpU/bRo-u4y34Ao/s800/StrippedBark.png[/img]

 

Console Output (no errors from BAB as far as I can see):

 

[12:25:48] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[12:25:48] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[12:25:48] [main/INFO]: Forge Mod Loader version 7.2.116.1024 for Minecraft 1.7.2 loading

[12:25:48] [main/INFO]: Java is Java HotSpot 64-Bit Server VM, version 1.6.0_33, running on Windows NT (unknown):amd64:6.2, installed at E:\Program Files\eclipse\jre

[12:25:48] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[12:25:48] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[12:25:48] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[12:25:48] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[12:25:48] [main/ERROR]: The minecraft jar file:/C:/Users/NJB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeBin-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[12:25:48] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[12:25:48] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/NJB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeBin-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[12:25:48] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[12:25:48] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[12:25:49] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[12:25:50] [main/INFO]: Setting user: Player515

[12:25:50] [Client thread/INFO]: LWJGL Version: 2.9.0

[12:25:51] [Client thread/INFO]: Attempting early MinecraftForge initialization

[12:25:51] [Client thread/INFO]: MinecraftForge v10.12.0.1024 Initialized

[12:25:51] [Client thread/INFO]: Replaced 128 ore recipies

[12:25:51] [Client thread/INFO]: Completed early MinecraftForge initialization

[12:25:51] [Client thread/INFO]: Searching G:\Coding\Minecraft\Forge\BigAssBarrels\eclipse\mods for mods

[12:25:51] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[12:25:51] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[12:25:52] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load

[12:25:52] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Big Ass Barrels

[12:25:52] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: %s in %s

[12:25:53] [Client thread/INFO]: Configured a dormant chunk cache size of 0

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[12:25:53] [sound Library Loader/INFO]: Sound engine started

[12:25:54] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[12:25:54] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[12:25:54] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods

[12:26:16] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[12:26:22] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[12:26:22] [server thread/INFO]: Generating keypair

[12:26:22] [server thread/INFO]: Injecting new block and item data into this server instance

[12:26:22] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1598fec6)

[12:26:22] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1598fec6)

[12:26:22] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1598fec6)

[12:26:22] [server thread/INFO]: Preparing start region for level 0

[12:26:23] [Netty Client IO #0/INFO]: Server protocol version 1

[12:26:23] [Netty IO #1/INFO]: Client protocol version 1

[12:26:23] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected] - Alpha 0.0.1,[email protected],[email protected],[email protected]

[12:26:23] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT

[12:26:23] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER

[12:26:23] [server thread/INFO]: [server thread] Server side modded connection established

[12:26:23] [server thread/INFO]: Player515[local:E:f676965d] logged in with entity id 232 at (21.23955332446564, 70.0, 183.04659086237345)

[12:26:23] [server thread/INFO]: Player515 joined the game

[12:26:23] [Client thread/INFO]: [Client thread] Client side modded connection established

[12:26:26] [server thread/INFO]: Player515 has just earned the achievement [Taking Inventory]

[12:26:26] [Client thread/INFO]: [CHAT] Player515 has just earned the achievement [Taking Inventory]

 

 

p.s. if it's of any help to anyone wanting to look over the project as it stands within my environment, I also have the Saros plugin for eclipse installed.

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.

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

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

Announcements



×
×
  • Create New...

Important Information

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