Jump to content

[Solved]Issue on server side with my mod :\


Tsundare

Recommended Posts

hello everyone i'm working with latest forge for 1.5.2 ( 737 i think ? ). I just made some new block and items and he work on clien side with no issue ( to my mind ) But when i put this mod i just create on my server. This one crash so i need to understand what the issue with my mod maybe some missing code but i dont know.

 

this is what you want to check :

2013-07-05 00:38:03 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.23.738 for Minecraft 1.5.2 loading
2013-07-05 00:38:03 [iNFO] [ForgeModLoader] Java is OpenJDK 64-Bit Server VM, version 1.7.0_03, running on Linux:amd64:2.6.38.3-mc, installed at /usr/lib/jvm/java-7-openjdk-amd64/jre
2013-07-05 00:38:03 [FINE] [ForgeModLoader] Java classpath at launch is serv.jar
2013-07-05 00:38:03 [FINE] [ForgeModLoader] Java library path at launch is /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
2013-07-05 00:38:03 [FINE] [ForgeModLoader] Enabling runtime deobfuscation
2013-07-05 00:38:11 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-07-05 00:38:11 [iNFO] [ForgeModLoader] MinecraftForge v7.8.1.738 Initialized
2013-07-05 00:38:11 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-07-05 00:38:11 [iNFO] [ForgeModLoader] Reading custom logging properties from /home/games/minecraft/openmod/config/logging.properties
2013-07-05 00:38:11 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Found a minecraft related file at /home/games/minecraft/openmod/serv.jar, examining for mod candidates
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/argo-small-3.2.jar
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/guava-14.0-rc3.jar
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/asm-all-4.1.jar
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/bcprov-jdk15on-148.jar
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/deobfuscation_data_1.5.2.zip
2013-07-05 00:38:11 [FINER] [ForgeModLoader] Skipping known library file /home/games/minecraft/openmod/lib/scala-library.jar
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2013-07-05 00:38:11 [iNFO] [ForgeModLoader] Searching /home/games/minecraft/openmod/mods for mods
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Found a candidate zip or jar file Dynmap-1.7.1-forge-7.8.0.jar
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Found a candidate zip or jar file Tsundare.zip
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Found a candidate zip or jar file mccapes-0.0.4b.jar
2013-07-05 00:38:11 [FINE] [ForgeModLoader] Examining file serv.jar for potential mods
2013-07-05 00:38:11 [FINE] [ForgeModLoader] The mod container serv.jar appears to be missing an mcmod.info file
2013-07-05 00:38:12 [FINE] [ForgeModLoader] Examining file Dynmap-1.7.1-forge-7.8.0.jar for potential mods
2013-07-05 00:38:12 [FINE] [ForgeModLoader] The mod container Dynmap-1.7.1-forge-7.8.0.jar appears to be missing an mcmod.info file
2013-07-05 00:38:12 [FINE] [ForgeModLoader] Identified a class org.dynmap.forge.mod_Dynmap following modloader naming convention but not directly a BaseMod or currently seen subclass
2013-07-05 00:38:12 [FINE] [ForgeModLoader] Identified an FMLMod type mod org.dynmap.forge.mod_Dynmap
2013-07-05 00:38:12 [FINEST] [Dynmap] Parsed dependency info : [] [] []
2013-07-05 00:38:13 [iNFO] [ForgeModLoader] Attempting to reparse the mod container Dynmap-1.7.1-forge-7.8.0.jar
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Examining file Dynmap-1.7.1-forge-7.8.0.jar for potential mods
2013-07-05 00:38:13 [FINE] [ForgeModLoader] The mod container Dynmap-1.7.1-forge-7.8.0.jar appears to be missing an mcmod.info file
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Identified a class org.dynmap.forge.mod_Dynmap following modloader naming convention but not directly a BaseMod or currently seen subclass
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Identified an FMLMod type mod org.dynmap.forge.mod_Dynmap
2013-07-05 00:38:13 [FINEST] [Dynmap] Parsed dependency info : [] [] []
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Examining file Tsundare.zip for potential mods
2013-07-05 00:38:13 [FINE] [ForgeModLoader] The mod container Tsundare.zip appears to be missing an mcmod.info file
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Identified an FMLMod type mod Tsundare.Mod_Tsundare
2013-07-05 00:38:13 [FINEST] [Tsundare_mod] Parsed dependency info : [] [] []
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Examining file mccapes-0.0.4b.jar for potential mods
2013-07-05 00:38:13 [FINER] [ForgeModLoader] Located mcmod.info file in file mccapes-0.0.4b.jar
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Identified an FMLMod type mod com.jadarstudios.MCCapesForge.MCCapesForge
2013-07-05 00:38:13 [FINEST] [MCCapesForge] Parsed dependency info : [] [] []
2013-07-05 00:38:13 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load
2013-07-05 00:38:13 [FINER] [ForgeModLoader] Received a system property request ''
2013-07-05 00:38:13 [FINER] [ForgeModLoader] System property request managing the state of 0 mods
2013-07-05 00:38:13 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Reloading logging properties from /home/games/minecraft/openmod/config/logging.properties
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Reloaded logging properties
2013-07-05 00:38:13 [FINE] [mcp] Mod Logging channel mcp configured at default level.
2013-07-05 00:38:13 [iNFO] [mcp] Activating mod mcp
2013-07-05 00:38:13 [FINE] [FML] Mod Logging channel FML configured at default level.
2013-07-05 00:38:13 [iNFO] [FML] Activating mod FML
2013-07-05 00:38:13 [FINE] [Forge] Mod Logging channel Forge configured at default level.
2013-07-05 00:38:13 [iNFO] [Forge] Activating mod Forge
2013-07-05 00:38:13 [FINE] [Dynmap] Enabling mod Dynmap
2013-07-05 00:38:13 [FINE] [Dynmap] Mod Logging channel Dynmap configured at default level.
2013-07-05 00:38:13 [iNFO] [Dynmap] Activating mod Dynmap
2013-07-05 00:38:13 [FINE] [Tsundare_mod] Enabling mod Tsundare_mod
2013-07-05 00:38:13 [FINE] [Tsundare_mod] Mod Logging channel Tsundare_mod configured at default level.
2013-07-05 00:38:13 [iNFO] [Tsundare_mod] Activating mod Tsundare_mod
2013-07-05 00:38:13 [FINE] [MCCapesForge] Enabling mod MCCapesForge
2013-07-05 00:38:13 [FINE] [MCCapesForge] Mod Logging channel MCCapesForge configured at default level.
2013-07-05 00:38:13 [iNFO] [MCCapesForge] Activating mod MCCapesForge
2013-07-05 00:38:13 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied
2013-07-05 00:38:13 [FINER] [ForgeModLoader] All mod requirements are satisfied
2013-07-05 00:38:13 [FINER] [ForgeModLoader] Sorting mods into an ordered list
2013-07-05 00:38:13 [FINER] [ForgeModLoader] Mod sorting completed successfully
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Mod sorting data
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	Dynmap(Dynmap:1.7.1-21): Dynmap-1.7.1-forge-7.8.0.jar ()
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	Tsundare_mod(Mod_Tsundare:0.0.1): Tsundare.zip ()
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	MCCapesForge(MCCapes:0.0.4): mccapes-0.0.4b.jar ()
2013-07-05 00:38:13 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp
2013-07-05 00:38:13 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp
2013-07-05 00:38:13 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML
2013-07-05 00:38:13 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML
2013-07-05 00:38:13 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge
2013-07-05 00:38:13 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2013-07-05 00:38:13 [FINEST] [ForgeModLoader] Testing mod Forge to verify it accepts its own version in a remote connection
2013-07-05 00:38:13 [FINEST] [ForgeModLoader] The mod Forge accepts its own version (7.8.1.738)
2013-07-05 00:38:13 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2013-07-05 00:38:13 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge
2013-07-05 00:38:13 [FINEST] [Dynmap] Sending event FMLConstructionEvent to mod Dynmap
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into Dynmap
2013-07-05 00:38:13 [FINEST] [Dynmap] Sent event FMLConstructionEvent to mod Dynmap
2013-07-05 00:38:13 [FINEST] [Tsundare_mod] Sending event FMLConstructionEvent to mod Tsundare_mod
2013-07-05 00:38:13 [FINEST] [ForgeModLoader] Testing mod Tsundare_mod to verify it accepts its own version in a remote connection
2013-07-05 00:38:13 [FINEST] [ForgeModLoader] The mod Tsundare_mod accepts its own version (0.0.1)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into Tsundare_mod
2013-07-05 00:38:13 [FINEST] [Tsundare_mod] Sent event FMLConstructionEvent to mod Tsundare_mod
2013-07-05 00:38:13 [FINEST] [MCCapesForge] Sending event FMLConstructionEvent to mod MCCapesForge
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into MCCapesForge
2013-07-05 00:38:13 [FINEST] [MCCapesForge] Sent event FMLConstructionEvent to mod MCCapesForge
2013-07-05 00:38:13 [FINE] [ForgeModLoader] Mod signature data
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	mcp(Minecraft Coder Pack:7.51): minecraft.jar (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	FML(Forge Mod Loader:5.2.23.738): coremods (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	Forge(Minecraft Forge:7.8.1.738): coremods (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	Dynmap(Dynmap:1.7.1-21): Dynmap-1.7.1-forge-7.8.0.jar (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	Tsundare_mod(Mod_Tsundare:0.0.1): Tsundare.zip (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINE] [ForgeModLoader] 	MCCapesForge(MCCapes:0.0.4): mccapes-0.0.4b.jar (NO VALID CERTIFICATE FOUND)
2013-07-05 00:38:13 [FINEST] [mcp] Sending event FMLPreInitializationEvent to mod mcp
2013-07-05 00:38:13 [FINEST] [mcp] Sent event FMLPreInitializationEvent to mod mcp
2013-07-05 00:38:13 [FINEST] [FML] Sending event FMLPreInitializationEvent to mod FML
2013-07-05 00:38:13 [FINEST] [FML] Sent event FMLPreInitializationEvent to mod FML
2013-07-05 00:38:13 [FINEST] [Forge] Sending event FMLPreInitializationEvent to mod Forge
2013-07-05 00:38:13 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-07-05 00:38:13 [FINEST] [Forge] Sent event FMLPreInitializationEvent to mod Forge
2013-07-05 00:38:13 [FINEST] [Dynmap] Sending event FMLPreInitializationEvent to mod Dynmap
2013-07-05 00:38:13 [FINEST] [Dynmap] Sent event FMLPreInitializationEvent to mod Dynmap
2013-07-05 00:38:13 [FINEST] [Tsundare_mod] Sending event FMLPreInitializationEvent to mod Tsundare_mod
2013-07-05 00:38:13 [FINEST] [Tsundare_mod] Sent event FMLPreInitializationEvent to mod Tsundare_mod
2013-07-05 00:38:13 [FINEST] [MCCapesForge] Sending event FMLPreInitializationEvent to mod MCCapesForge
2013-07-05 00:38:13 [FINEST] [MCCapesForge] Sent event FMLPreInitializationEvent to mod MCCapesForge
2013-07-05 00:38:18 [FINEST] [mcp] Sending event FMLInitializationEvent to mod mcp
2013-07-05 00:38:18 [FINEST] [mcp] Sent event FMLInitializationEvent to mod mcp
2013-07-05 00:38:18 [FINEST] [FML] Sending event FMLInitializationEvent to mod FML
2013-07-05 00:38:18 [FINEST] [FML] Sent event FMLInitializationEvent to mod FML
2013-07-05 00:38:18 [FINEST] [Forge] Sending event FMLInitializationEvent to mod Forge
2013-07-05 00:38:18 [FINEST] [Forge] Sent event FMLInitializationEvent to mod Forge
2013-07-05 00:38:18 [FINEST] [Dynmap] Sending event FMLInitializationEvent to mod Dynmap
2013-07-05 00:38:18 [FINEST] [Dynmap] Sent event FMLInitializationEvent to mod Dynmap
2013-07-05 00:38:18 [FINEST] [Tsundare_mod] Sending event FMLInitializationEvent to mod Tsundare_mod
2013-07-05 00:38:18 [FINEST] [Tsundare_mod] Sent event FMLInitializationEvent to mod Tsundare_mod
2013-07-05 00:38:18 [FINEST] [MCCapesForge] Sending event FMLInitializationEvent to mod MCCapesForge
2013-07-05 00:38:18 [FINEST] [MCCapesForge] Sent event FMLInitializationEvent to mod MCCapesForge
2013-07-05 00:38:18 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-07-05 00:38:18 [sEVERE] [ForgeModLoader] 
mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.23.738} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.1.738} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Dynmap{1.7.1-21} [Dynmap] (Dynmap-1.7.1-forge-7.8.0.jar) Unloaded->Constructed->Pre-initialized->Initialized
Tsundare_mod{0.0.1} [Mod_Tsundare] (Tsundare.zip) Unloaded->Constructed->Pre-initialized->Errored
MCCapesForge{0.0.4} [MCCapes] (mccapes-0.0.4b.jar) Unloaded->Constructed->Pre-initialized->Initialized
2013-07-05 00:38:18 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-07-05 00:38:18 [sEVERE] [ForgeModLoader] Caught exception from Tsundare_mod
java.lang.NoSuchMethodError: net.minecraft.block.Block.func_94330_A()Ljava/lang/String;
at Tsundare.Mod_Tsundare.load(Mod_Tsundare.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:93)
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:168)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:574)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)

 

The mod is named tsundare like my name and i see the first issue here :

2013-07-05 00:38:18 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

 

So i try many thing to correct but none work

Link to comment
Share on other sites

its not latest but it should work anyway

java.lang.NoSuchMethodError: net.minecraft.block.Block.func_94330_A()Ljava/lang/String;

this is the error, meaning server cannot find the method func_94330_A (it probably has @Sideonly(Side.CLIENT)

can you show us your main mod class and Bblock class ?

 

please use

code

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

Main class Mod_Tsundare

package Tsundare;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid=Mod_Tsundare.modid, name="Mod_Tsundare", version="0.0.1")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class Mod_Tsundare {
// The instance of your mod that Forge uses.
public static final String modid="Tsundare_mod";

public static Block ArgentBlock;

public static Item TestItem;
@Init
    public void load(FMLInitializationEvent event) {
/*		ArgentBlock=new BlockArgentBlock(500,Material.rock).setUnlocalizedName("Argentblock");
	GameRegistry.registerBlock(ArgentBlock,ItemTutorialblock.class,modid+ArgentBlock.getUnlocalizedName2());
	//LanguageRegistry.addName(ArgentBlock, "Bloc d'argent");
	//item meta comme la laine
	LanguageRegistry.addName(new ItemStack(ArgentBlock,1,0),"bloc d'argent");
	LanguageRegistry.addName(new ItemStack(ArgentBlock,1,1),"bloc d'argent2");


	TestItem=new ItemTest(5000).setUnlocalizedName("TestItem");
	LanguageRegistry.addName(TestItem,"testtest");

	CraftingRecipes.registerRecipes();
	*/
	ArgentBlock=new BlockArgentBlock(500,Material.rock).setUnlocalizedName("Argentblock");
	GameRegistry.registerBlock(ArgentBlock,modid+ArgentBlock.getUnlocalizedName2());
	LanguageRegistry.addName(ArgentBlock, "Bloc d'argent");

	TestItem=new ItemTest(5000).setUnlocalizedName("TestItem");
	LanguageRegistry.addName(TestItem,"testtest");

	CraftingRecipes.registerRecipes();

    }
}

 

BlockArgentBlock :

 

package Tsundare;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;

public class BlockArgentBlock extends BlockGeneralMod{

public BlockArgentBlock(int id, Material par2Material) 
{
	super(id, par2Material);
}		
@SideOnly(Side.CLIENT)
	private Icon[] icons;

 

and other stuff for block :

 

package Tsundare;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;

public class BlockGeneralMod extends Block{

public BlockGeneralMod(int par1, Material par2Material) {
	super(par1, par2Material);
	this.setCreativeTab(CreativeTabs.tabBlock);
}
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister test)
{
	this.blockIcon= test.registerIcon(Mod_Tsundare.modid+":"+this.getUnlocalizedName().substring(5));
}

}

 

but yeah they have side only that's why server going down when i put it on ?

Link to comment
Share on other sites

yeah, basicly if it has @Sideonly(side.CLIENT) it will not exists on the server

 

try hardcoding the file instead

 

GameRegistry.registerBlock(ArgentBlock,ItemTutorialblock.class,modid+ArgentBlock.getUnlocalizedName2());

to

GameRegistry.registerBlock(ArgentBlock,ItemTutorialblock.class,"argentBlock or wtv");

 

it should fix it

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

maybe if i cut the @SideOnly will be work better ?

 

i try what you put but minecraft say :

 
2013-07-05 01:14:10 [sEVERE] [fml.ItemTracker] Mismatched items : {500=(Item 500, Type Tsundare.BlockArgentBlock, owned by Tsundare_mod, ordinal 0, name Tsundare_modArgentblock, claimedModId null, Item 500, Type Tsundare.ItemTutorialblock, owned by Tsundare_mod, ordinal 0, name argentBlock or wtv, claimedModId null)}

from eclipse

Link to comment
Share on other sites

dont remove the @Sideonly, youll fuck up everything

 

2013-07-05 01:14:10 [sEVERE] [fml.ItemTracker] Mismatched items : {500=(Item 500, Type Tsundare.BlockArgentBlock, owned by Tsundare_mod, ordinal 0, name Tsundare_modArgentblock, claimedModId null, Item 500, Type Tsundare.ItemTutorialblock, owned by Tsundare_mod, ordinal 0, name argentBlock or wtv, claimedModId null)}

 

ya basicly it looks like its trying to use both item at the same time. delete the world and refresh every reference to the "older" item

 

also when i said

 

"argentBlock or wtv"

i meant that you put the name you want

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

I just have an issue with forge and i made instal again -_- loosing all my code .

 

when he dont find it how can i solve this sissue ? maybe i do the wrong reobfuscate ? edit : just try dont change anything

 

i just made the code back to my eclipse, i read on other post @SideOnly are very bad for modding ? if it's true what can i do to change that ?

 

and this is what server telling like you said earlier an issue with block :o

 

13:12:50 [sEVERE] cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.block.Block.func_94330_A()Ljava/lang/String;

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.