Jump to content

I have a problem with my Forge mod


Adanos

Recommended Posts

I want to add to my mod a custom dimension. I was using Wuppy29's Forge Modding Tutorials (http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html). When I try to launch the client then the console prints me an error

 

 

2013-01-11 15:52:53 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.6.12.511 for Minecraft 1.4.6 loading

2013-01-11 15:52:54 [iNFO] [sTDOUT] 27 achievements

2013-01-11 15:52:54 [iNFO] [sTDOUT] 210 recipes

2013-01-11 15:52:54 [iNFO] [sTDOUT] Setting user: Player852, -

2013-01-11 15:52:54 [iNFO] [sTDERR] Client asked for parameter: server

2013-01-11 15:52:54 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

2013-01-11 15:52:55 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2013-01-11 15:52:55 [iNFO] [sTDOUT] MinecraftForge v6.5.0.471 Initialized

2013-01-11 15:52:55 [iNFO] [ForgeModLoader] MinecraftForge v6.5.0.471 Initialized

2013-01-11 15:52:55 [iNFO] [sTDOUT] Replaced 84 ore recipies

2013-01-11 15:52:55 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2013-01-11 15:52:55 [iNFO] [ForgeModLoader] Searching C:\Documents and Settings\Adanos020\Pulpit\living sponge mod\forge\mcp\jars\mods for mods

2013-01-11 15:52:56 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-01-11 15:52:56 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-01-11 15:52:56 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-01-11 15:52:56 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-01-11 15:52:56 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-01-11 15:52:56 [iNFO] [sTDOUT] OpenAL initialized.

2013-01-11 15:52:57 [WARNING] [ForgeModLoader] The mod Living sponge tried to register the entity class class LivingSponge.common.EntitySpongeMonster which was already registered - if you wish to override default naming for FML mod entities, register it here first

2013-01-11 15:52:57 [WARNING] [ForgeModLoader] The mod Living sponge tried to register the entity class class LivingSponge.common.EntitySpongeMonster which was already registered - if you wish to override default naming for FML mod entities, register it here first

2013-01-11 15:52:57 [WARNING] [ForgeModLoader] The mod Living sponge tried to register the entity class class LivingSponge.common.EntitySpongeMonster which was already registered - if you wish to override default naming for FML mod entities, register it here first

2013-01-11 15:52:57 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from POSTINITIALIZATION to AVAILABLE. Loading cannot continue

2013-01-11 15:52:57 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized

Living sponge [Living sponge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Errored

2013-01-11 15:52:57 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-01-11 15:52:57 [sEVERE] [ForgeModLoader] Caught exception from Living sponge

java.lang.IllegalArgumentException: Failed to register dimension for id 3, One is already registered

at net.minecraftforge.common.DimensionManager.registerDimension(DimensionManager.java:80)

at LivingSponge.common.Main.addDimension(Main.java:276)

at LivingSponge.common.Main.postInit(Main.java:129)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:478)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

at com.google.common.eventbus.EventBus.post(EventBus.java:268)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

at com.google.common.eventbus.EventBus.post(EventBus.java:268)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:659)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:744)

at java.lang.Thread.run(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] java.lang.IllegalArgumentException: Failed to register dimension for id 3, One is already registered

2013-01-11 15:52:57 [iNFO] [sTDERR] at net.minecraftforge.common.DimensionManager.registerDimension(DimensionManager.java:80)

2013-01-11 15:52:57 [iNFO] [sTDERR] at LivingSponge.common.Main.addDimension(Main.java:276)

2013-01-11 15:52:57 [iNFO] [sTDERR] at LivingSponge.common.Main.postInit(Main.java:129)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:478)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-01-11 15:52:57 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-01-11 15:52:57 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-01-11 15:52:57 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)

2013-01-11 15:52:57 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:659)

2013-01-11 15:52:57 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)

2013-01-11 15:52:57 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)

2013-01-11 15:52:57 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-01-11 15:52:57 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744)

2013-01-11 15:52:57 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-01-11 15:52:58 [iNFO] [sTDERR] Someone is closing me!

 

 

 

I think the error is here:

2013-01-11 15:52:57 [iNFO] [sTDERR] java.lang.IllegalArgumentException: Failed to register dimension for id 3, One is already registered.

but I don't know how to fix it. Could you help me?

Code of main class:

 

 

package LivingSponge.common;

import java.io.*;
import java.nio.charset.Charset;
import java.lang.reflect.*;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import java.util.*;
import java.util.Map.*;

import net.minecraft.potion.Potion;
import net.minecraft.src.*;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.BiomeGenMushroomIsland;
import net.minecraft.client.*;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBucketMilk;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.*;
import net.minecraftforge.oredict.*;
import cpw.mods.fml.common.*;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.network.*;
import cpw.mods.fml.common.registry.*;
import cpw.mods.fml.relauncher.*;
import cpw.mods.fml.common.registry.EntityRegistry;

@Mod(modid = "Living sponge", name = "Living sponge", version = Main.VERSION)
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class Main<Entity>
{
public static final String VERSION = "1.2";
@Instance("Living sponge")
public static Main instance;
public static Configuration CONFIG;
public static File LANGFILE_PREFIX;
public static HashMap<String, Configuration> LANG;
public static final String TEXTUREFILE = "/LivingSponge/gfx/";

// Blocks start
net.minecraft.block.Block blockSmallSponge;
net.minecraft.block.Block blockSmallWetSponge;
net.minecraft.block.Block blockWetSponge;
static net.minecraft.block.Block blockSpongeCake;
net.minecraft.block.Block blockTinyStar;
net.minecraft.block.Block blockSpongePortalFrame;
public static net.minecraft.block.Block blockSpongePortal;
// Blocks end
//Items start
net.minecraft.item.Item itemSpongeMaterial;
net.minecraft.item.Item itemSpongeCookie;
net.minecraft.item.Item itemSpongeCake;
//Items end
//Entities start
Entity entitySpongeMonster;
Entity entityJumpingSpongeMouseHead;
//Entities end
//Dimensions start
public static int SpongeDimension = 3;
//Dimensions end
public ModContainer cont;
private IGuiHandler guiHandlerObject;
public Main(){}
@SidedProxy(clientSide = "LivingSponge.common.ClientProxyBS", serverSide = "LivingSponge.common.CommonProxyBS")
public static CommonProxyBS proxy;
@PreInit
public void preInit(FMLPreInitializationEvent event) throws IOException
{
  instance = this;
  cont = Loader.instance().activeModContainer();
  if(cont.getMod() != this){throw new RuntimeException("Loader activeModContainer isn't current mod container! "+cont.getModId());}
  setMetadata();
  File cfgf = new File(Loader.instance().getConfigDir(),"LivingSponges/SS.cfg");
  if(!cfgf.getParentFile().exists())
   cfgf.getParentFile().mkdirs();
  if(!cfgf.exists())
   cfgf.createNewFile();
  CONFIG = new Configuration(cfgf);
  CONFIG.load();
  LANGFILE_PREFIX = new File(Loader.instance().getConfigDir(),"LivingSponges/lang/");
  if(!LANGFILE_PREFIX.exists())
   LANGFILE_PREFIX.mkdir();
  for(File f : LANGFILE_PREFIX.listFiles(new FilenameFilter() {
   
   @Override
   public boolean accept(File dir, String name) {
    return name.endsWith(".cfg");
   }
  }))
  {
   String fnm = f.getName(), lang = fnm.trim().substring(0, fnm.length()-4);
   Properties prs = new Properties();
   prs.load(new InputStreamReader(new FileInputStream(f), Charset.forName("UTF8")));
   for(Entry<Object,Object> ent: prs.entrySet())
   {
    String k = (String)ent.getKey(), v = (String)ent.getValue();
    LanguageRegistry.instance().addStringLocalization(k, lang, v);
   }
  }
  loadConfig();
}

@Init
public void init(FMLInitializationEvent event) throws Throwable
{
  addBlocks();
  addItems();
  addEntities();
  addGen();
  addDimension();
}

@PostInit
public void postInit(FMLPostInitializationEvent event)
{
  addRecipes();
  addSmelting();
  addEntities();
  addGen();
  addDimension();
  proxy.registerRenderThings();
  }

public String getVersion() {
  return VERSION;
}

protected void setMetadata()
{
  cont.getMetadata().autogenerated=false;
  cont.getMetadata().authorList.add("Adanos020 [on YouTube: MinecraftAdanos]");
  cont.getMetadata().credits = "";
  cont.getMetadata().description = "Sponges are achieveable now! To get sponges you have to kill sponge monsters! Now you can build a portal and travel to the mysterious Sponge World!";
}

protected void loadConfig()
{
  CONFIG.save();
}

protected void addBlocks() throws IllegalArgumentException, IllegalAccessException
{
 int tid;

 tid = CONFIG.getBlock("Small wet sponge", 1550).getInt();
 blockSmallWetSponge = new BlockSmallWetSponge(1550).setStepSound(net.minecraft.block.Block.soundGrassFootstep).setHardness(0.5F).setResistance(1.0F).setBlockName("Wet small sponge"); 
 GameRegistry.registerBlock(blockSmallWetSponge);
 LanguageRegistry.addName(blockSmallWetSponge, "Wet small sponge");

 tid = CONFIG.getBlock("Small sponge", 1551).getInt();
 blockSmallSponge = new BlockSmallSponge(1551).setStepSound(net.minecraft.block.Block.soundGrassFootstep).setHardness(0.5F).setResistance(1.0F).setBlockName("Small sponge"); 
 GameRegistry.registerBlock(blockSmallSponge);
 LanguageRegistry.addName(blockSmallSponge, "Small sponge");

 tid = CONFIG.getBlock("Wet sponge", 1552).getInt();
 blockWetSponge = new BlockWetSponge(1552).setStepSound(net.minecraft.block.Block.soundGrassFootstep).setHardness(0.5F).setResistance(1.0F).setBlockName("Wet sponge"); 
 GameRegistry.registerBlock(blockWetSponge);
 LanguageRegistry.addName(blockWetSponge, "Wet sponge");

 tid = CONFIG.getBlock("Sponge cake", 1553).getInt();
 blockSpongeCake = new BlockSpongeCake(1553, 48).setStepSound(net.minecraft.block.Block.soundGrassFootstep).setHardness(0.5F).setResistance(1.0F).setBlockName("Sponge cake"); 
 GameRegistry.registerBlock(blockSpongeCake);
 LanguageRegistry.addName(blockSpongeCake, "Sponge cake");

 tid = CONFIG.getBlock("Sponge portal frame", 1554).getInt();
 blockSpongePortalFrame = new BlockSpongePortalFrame(1554).setStepSound(net.minecraft.block.Block.soundStoneFootstep).setHardness(1F).setResistance(1.0F).setBlockName("Sponge portal frame"); 
 GameRegistry.registerBlock(blockSpongePortalFrame);
 LanguageRegistry.addName(blockSpongePortalFrame, "Sponge portal frame");

 tid = CONFIG.getBlock("Sponge portal", 1555).getInt();
 blockSpongePortal = new BlockSpongePortal(1555, 1).setBlockName("Sponge portal");
 GameRegistry.registerBlock(blockSpongePortal, "Sponge portal");
 LanguageRegistry.addName(blockSpongePortal, "Sponge portal");

 tid = CONFIG.getBlock("Tiny star", 1556).getInt();
 blockTinyStar = new BlockTinyStar(1556).setStepSound(net.minecraft.block.Block.soundStoneFootstep).setHardness(1F).setResistance(1.0F).setBlockName("Tiny star"); 
 GameRegistry.registerBlock(blockTinyStar);
 LanguageRegistry.addName(blockTinyStar, "Tiny star");

 CONFIG.save();
}
protected void addEntities()
{
 addEntityName(registerEntity(EntitySpongeMonster.class, "Sponge", ModLoader.getUniqueEntityId(), 0xffff00, 0x000000), "Sponge");
 EntityRegistry.registerModEntity(EntitySpongeMonster.class, "Sponge", 44, this, 40, 1, true);
 EntityRegistry.addSpawn(EntitySpongeMonster.class, 2, 3, 5, EnumCreatureType.ambient, BiomeGenBase.beach, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.river, BiomeGenBase.swampland);

 addEntityName(registerEntity(EntitySpongeMonster.class, "Jumping sponge mouse head", ModLoader.getUniqueEntityId(), 0xffff00, 0xff00aa), "Jumping sponge mouse head");
 EntityRegistry.registerModEntity(EntityJumpingSpongeMouseHead.class, "Jumping sponge mouse head", 45, this, 41, 1, true);
 EntityRegistry.addSpawn(EntitySpongeMonster.class, 2, 3, 5, EnumCreatureType.ambient, BiomeGenBase.beach, BiomeGenBase.desert);
}
public static int registerEntity(Class class1, String str1, int i1, int i2, int i3)
{
 ModLoader.registerEntityID(class1, str1, i1, i2, i3);
 return i1;
}

public static void addEntityName(int i1, String str2)
{
 ModLoader.addLocalization("entity." + EntityList.getStringFromID(i1) + ".name", str2);
}

protected void addRecipes()
{
 GameRegistry.addRecipe(new ItemStack(blockSmallSponge), new Object[]
		    {
		     "XXX", "XXX", "XXX", 'X', itemSpongeMaterial
		    });
 GameRegistry.addRecipe(new ItemStack(net.minecraft.block.Block.sponge, 1), new Object[]
		    {
		     "XX", "XX", 'X', blockSmallSponge
		    });
 GameRegistry.addRecipe(new ItemStack(itemSpongeCake, 1), new Object[]
		    {
		     "ZAZ", "YBY", "XXX", 'X', blockSmallSponge, 'Z', Item.bucketMilk, 'Y', Item.sugar, 'B', Item.egg, 'A', itemSpongeMaterial
		    });
 GameRegistry.addShapelessRecipe(new ItemStack(blockSmallWetSponge), new Object[]
		    {
	 		 new ItemStack(Item.bucketWater), new ItemStack(blockSmallSponge)
		    });
 GameRegistry.addShapelessRecipe(new ItemStack(blockWetSponge), new Object[]
		    {
		     new ItemStack(Item.bucketWater), new ItemStack(net.minecraft.block.Block.sponge)
		    });
 GameRegistry.addRecipe(new ItemStack(itemSpongeCookie, 1), new Object[]
		    {
     		 "XYX", 'X', itemSpongeMaterial, 'Y', new ItemStack(Item.dyePowder, 1, 3)
		    });
 GameRegistry.addRecipe(new ItemStack(blockSpongePortalFrame), new Object[]
		    {
		     "XYX", "YZY", "XYX", 'X', Item.diamond, 'Y', net.minecraft.block.Block.sponge, 'Z', blockTinyStar
		    });
 GameRegistry.addRecipe(new ItemStack(blockTinyStar), new Object[]
		    {
		     "0X0", "XYX", "0X0", 'X', Item.diamond, 'Y', Item.netherStar
		    });
}
protected void addItems()
{
 int tid;

 tid = CONFIG.getItem("Sponge material", 5550).getInt();
 itemSpongeMaterial = new ItemSpongeMaterial(5550).setItemName("Sponge material"); 
 LanguageRegistry.addName(itemSpongeMaterial, "Sponge material");

 tid = CONFIG.getItem("Sponge cookie", 5551).getInt();
 itemSpongeCookie = new ItemSpongeCookie(5551, 1, true).setItemName("Sponge cookie"); 
 LanguageRegistry.addName(itemSpongeCookie, "Sponge cookie");

 tid = CONFIG.getItem("Sponge cake", 5552).getInt();
 itemSpongeCake = new ItemSpongeCake(5552, 1, true, blockSpongeCake).setItemName("Sponge cake"); 
 LanguageRegistry.addName(itemSpongeCake, "Sponge cake");

 CONFIG.save();
}
protected void addSmelting()
{

}
public void addGen()
{
 GameRegistry.registerWorldGenerator(new WorldGenTinyStar());
}
private void addDimension() 
{
 DimensionManager.registerProviderType(SpongeDimension, WorldSpongeDimension.class, false);
 DimensionManager.registerDimension(SpongeDimension, SpongeDimension);
}
@ServerStarting
public void onServerStarting(FMLServerStartingEvent ev)
{

}

}

 

 

 

PS: I tried to use another dimension ID but it's still crashing!

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

    • https://pastebin.com/VwpAW6PX My game crashes upon launch when trying to implement the Oculus mod to this mod compilation, above is the crash report, I do not know where to begin to attempt to fix this issue and require assistance.
    • https://youtube.com/shorts/gqLTSMymgUg?si=5QOeSvA4TTs-bL46
    • CubeHaven is a SMP server with unique features that can't be found on the majority of other servers! Java: MC.CUBEHAVEN.NET Bedrock: MC.CUBEHAVEN.NET:19132 3 different stores: - CubeHaven Store: Our store to purchase using real money. - Bitcoin Store: Store for Bitcoin. Bitcoin can be earned from playing the server. Giving options for players if they want to spend real money or grind to obtain exclusive packages. - Black Market: A hidden store for trading that operates outside our traditional stores, like custom enchantments, exclusive items and more. Some of our features include: Rank Up: Progress through different ranks to unlock new privileges and perks. 📈 Skills: RPG-style skill system that enhances your gaming experience! 🎮 Leaderboards: Compete and shine! Top players are rewarded weekly! 🏆 Random Teleporter: Travel instantly across different worlds with a click! 🌐 Custom World Generation: Beautifully generated world. 🌍 Dungeons: Explore challenging and rewarding dungeons filled with treasures and monsters. 🏰 Kits: Unlock ranks and gain access to various kits. 🛠️ Fishing Tournament: Compete in a friendly fishing tournament! 🎣 Chat Games: Enjoy games right within the chat! 🎲 Minions: Get some help from your loyal minions. 👥 Piñata Party: Enjoy a festive party with Piñatas! 🎉 Quests: Over 1000 quests that you can complete! 📜 Bounty Hunter: Set a bounty on a player's head. 💰 Tags: Displayed on nametags, in the tab list, and in chat. 🏷️ Coinflip: Bet with other players on coin toss outcomes, victory, or defeat! 🟢 Invisible & Glowing Frames: Hide your frames for a cleaner look or apply a glow to it for a beautiful look. 🔲✨[ Player Warp: Set your own warp points for other players to teleport to. 🌟 Display Shop: Create your own shop and sell to other players! 🛒 Item Skins: Customize your items with unique skins. 🎨 Pets: Your cute loyal companion to follow you wherever you go! 🐾 Cosmetics: Enhance the look of your character with beautiful cosmetics! 💄 XP-Bottle: Store your exp safely in a bottle for later use! 🍶 Chest & Inventory Sorting: Keep your items neatly sorted in your inventory or chest! 📦 Glowing: Stand out from other players with a colorful glow! ✨ Player Particles: Over 100 unique particle effects to show off. 🎇 Portable Inventories: Over virtual inventories with ease. 🧳 And a lot more! Become part of our growing community today! Discord: https://cubehaven.net/discord Java: MC.CUBEHAVEN.NET Bedrock: MC.CUBEHAVEN.NET:19132
    • # Problematic frame: # C [libopenal.so+0x9fb4d] It is always the same issue - this refers to the Linux OS - so your system may prevent Java from working   I am not familiar with Linux - check for similar/related issues  
  • Topics

×
×
  • Create New...

Important Information

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