Jump to content

Creative tabs not working :(


vandy22

Recommended Posts

Ok so I thought finally I had my mod finished but no there always has to be something and this time its the creative tabs. I recompiled and rebofuscated and installed everything in the correct directory and this is the error I get from a forge log off of the minecraft client:

 

2013-04-02 17:00:30 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading
2013-04-02 17:00:30 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2013-04-02 17:00:30 [FINE] [ForgeModLoader] Java classpath at launch is C:\Users\jacks_000\Documents\My Games\Minecraft\Minecraft.exe
2013-04-02 17:00:30 [FINE] [ForgeModLoader] Java library path at launch is C:\Program Files\Java\jre7\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\D3DGear;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Java\jre7\bin;.
2013-04-02 17:00:30 [FINE] [ForgeModLoader] Enabling runtime deobfuscation
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] All core mods are successfully located
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Discovering coremods
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugins
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2013-04-02 17:00:30 [iNFO] [ForgeModLoader] Found valid fingerprint for Minecraft Forge. Certificate fingerprint de4cf8a3f3bc15635810044c39240bf96804ea7d
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Validating minecraft
2013-04-02 17:00:31 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2013-04-02 17:00:33 [iNFO] [sTDOUT] 229 recipes
2013-04-02 17:00:33 [iNFO] [sTDOUT] 27 achievements
2013-04-02 17:00:33 [iNFO] [Minecraft-Client] Setting user: vandy22
2013-04-02 17:00:33 [iNFO] [sTDOUT] (Session ID is 2516573331987915611)
2013-04-02 17:00:33 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-04-02 17:00:34 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-04-02 17:00:34 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized
2013-04-02 17:00:34 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized
2013-04-02 17:00:34 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-04-02 17:00:34 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\jacks_000\AppData\Roaming\.minecraft\config\logging.properties
2013-04-02 17:00:34 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\lwjgl.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\jinput.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\lwjgl_util.jar
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\argo-small-3.2.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\guava-14.0-rc3.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\asm-all-4.1.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\bcprov-jdk15on-148.jar
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\deobfuscation_data_1.5.1.zip
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\scala-library.jar
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Searching C:\Users\jacks_000\AppData\Roaming\.minecraft\mods for mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Found a candidate zip or jar file JV'sToolPack.zip
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file JV'sToolPack.zip for potential mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container JV'sToolPack.zip appears to be missing an mcmod.info file
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified a class tutorialtest.mod_tutorial following modloader naming convention but not directly a BaseMod or currently seen subclass
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified an FMLMod type mod tutorialtest.mod_tutorial
2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Parsed dependency info : [] [] []
2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Attempting to reparse the mod container JV'sToolPack.zip
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file JV'sToolPack.zip for potential mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container JV'sToolPack.zip appears to be missing an mcmod.info file
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified a class tutorialtest.mod_tutorial following modloader naming convention but not directly a BaseMod or currently seen subclass
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified an FMLMod type mod tutorialtest.mod_tutorial
2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Parsed dependency info : [] [] []
2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Received a system property request ''
2013-04-02 17:00:34 [FINER] [ForgeModLoader] System property request managing the state of 0 mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Reloading logging properties from C:\Users\jacks_000\AppData\Roaming\.minecraft\config\logging.properties
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Reloaded logging properties
2013-04-02 17:00:34 [FINE] [mcp] Mod Logging channel mcp configured at default level.
2013-04-02 17:00:34 [iNFO] [mcp] Activating mod mcp
2013-04-02 17:00:34 [FINE] [FML] Mod Logging channel FML configured at default level.
2013-04-02 17:00:34 [iNFO] [FML] Activating mod FML
2013-04-02 17:00:34 [FINE] [Forge] Mod Logging channel Forge configured at default level.
2013-04-02 17:00:34 [iNFO] [Forge] Activating mod Forge
2013-04-02 17:00:34 [FINE] [JV's ToolPack] Enabling mod JV's ToolPack
2013-04-02 17:00:34 [FINE] [JV's ToolPack] Mod Logging channel JV's ToolPack configured at default level.
2013-04-02 17:00:34 [iNFO] [JV's ToolPack] Activating mod JV's ToolPack
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied
2013-04-02 17:00:34 [FINER] [ForgeModLoader] All mod requirements are satisfied
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Sorting mods into an ordered list
2013-04-02 17:00:34 [FINER] [ForgeModLoader] Mod sorting completed successfully
2013-04-02 17:00:34 [FINE] [ForgeModLoader] Mod sorting data
2013-04-02 17:00:34 [FINE] [ForgeModLoader] 	JV's ToolPack(JV's ToolPack:1.4.7): JV'sToolPack.zip ()
2013-04-02 17:00:34 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp
2013-04-02 17:00:34 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp
2013-04-02 17:00:34 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML
2013-04-02 17:00:34 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML
2013-04-02 17:00:34 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge
2013-04-02 17:00:34 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge
2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Sending event FMLConstructionEvent to mod JV's ToolPack
2013-04-02 17:00:34 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: net.minecraft.item.ItemBucket.getNextID()I
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at tutorialtest.mod_tutorial.<clinit>(mod_tutorial.java:29)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at java.lang.Class.forName0(Native Method)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at java.lang.Class.forName(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-04-02 17:00:34 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)

 

It refers to line 29 in my mod_tutorial.java class so here it is:

public static CreativeTabs tabJVCraft = new CreativeTabJVCraft(CreativeTabs.getNextID(), "tabJVCraft", "LALA");

 

And also just in case here is my CreativeTabJVCraft.java class:

package tutorialtest;

import net.minecraft.creativetab.CreativeTabs;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class CreativeTabJVCraft extends CreativeTabs{

private int tabIndexID;
private String tabName;


CreativeTabJVCraft(int par1, String par3Str, String par4String ) {
	super(par1, par3Str);

	this.tabName = par4String;

}

@SideOnly(Side.CLIENT)
public int getTabIconItemIndex(){
	return mod_tutorial.BasicCube.blockID;
}

public String getTranslatedTabLabel(){
	return this.tabName;
}

}

 

Hope you can help! Thanks guys! I really want my mod to work!!!!!!!!!!!!

Link to comment
Share on other sites

2013-04-02 17:00:34 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: net.minecraft.item.ItemBucket.getNextID()I

2013-04-02 17:00:34 [iNFO] [sTDERR] at tutorialtest.mod_tutorial.<clinit>(mod_tutorial.java:29)

 

I bet It's not about creative tab ;-)

 

And why you your class like it uses ModLoader? :P

Link to comment
Share on other sites

2013-04-02 17:00:34 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: net.minecraft.item.ItemBucket.getNextID()I

2013-04-02 17:00:34 [iNFO] [sTDERR] at tutorialtest.mod_tutorial.<clinit>(mod_tutorial.java:29)

 

I bet It's not about creative tab ;-)

 

And why you your class like it uses ModLoader? :P

 

This runs fine in eclipse everytime. I don't understand what you mean with my class like it uses ModLoader? Also every block/item in my mod is put into this creativetab to answer jordan30001's question.

Link to comment
Share on other sites

This runs fine in eclipse everytime. I don't understand what you mean with my class like it uses ModLoader? Also every block/item in my mod is put into this creativetab to answer jordan30001's question.

 

Well, I didn't get catch you get the error after placing in Minecraft.

 

Mods which are using ModLoader have the main classes starting with mod_ just like yours. Java convention wants it to start with capital.

 

But as you can see on the error log, game trye to find getNextId() method in ItemBucket not in CreativeTabs. That's because the code is "wrong" deobfuscated. You probably have created a mod on 1.5.0 and run the files on 1.5.1 or vice versa. It can be also made by using unstable build of Forge. Try use updateMCP.bat and updateNames.bat or how it was called.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
  • Topics

×
×
  • Create New...

Important Information

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