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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • rp.crazyheal.xyz mods  
    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
  • Topics

×
×
  • Create New...

Important Information

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