Jump to content

Recommended Posts

Posted

I have been working on my mod for a while and one of the last problems is getting my dimension to work. I currently am getting the following crash in the eclipse console, it is not generating one in the jars/crash-reports file.

 

Crash:

 

 

2013-01-17 18:16:41 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading
2013-01-17 18:16:42 [iNFO] [sTDOUT] 27 achievements
2013-01-17 18:16:42 [iNFO] [sTDOUT] 210 recipes
2013-01-17 18:16:42 [iNFO] [sTDOUT] Setting user: Player260, -
2013-01-17 18:16:42 [iNFO] [sTDERR] Client asked for parameter: server
2013-01-17 18:16:42 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2013-01-17 18:16:43 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2013-01-17 18:16:43 [iNFO] [sTDOUT] MinecraftForge v6.6.0.497 Initialized
2013-01-17 18:16:43 [iNFO] [ForgeModLoader] MinecraftForge v6.6.0.497 Initialized
2013-01-17 18:16:43 [iNFO] [sTDOUT] Replaced 84 ore recipies
2013-01-17 18:16:43 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2013-01-17 18:16:43 [iNFO] [ForgeModLoader] Config directory created successfully
2013-01-17 18:16:43 [iNFO] [ForgeModLoader] Searching C:\Users\Will\Documents\Playing\modding\1.4.7 modding\forge\mcp\jars\mods for mods
2013-01-17 18:16:44 [iNFO] [ForgeModLoader] Attempting to reparse the mod container bin
2013-01-17 18:16:44 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-01-17 18:16:44 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-01-17 18:16:44 [iNFO] [sTDOUT] Loading Version 1.0.4 of Mystic Additions
2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Mod attempted to get a block ID with a default in the Terrain Generation section, mod authors should make sure there defaults are above 256 unless explicitly needed for terrain generation. Most ores do not need to be below 256.
2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Config "/config/MysticAdditions.cfg" Category: "block" Key: "InertMysticGrass" Default: 149
2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Mod attempted to get a block ID with a default in the Terrain Generation section, mod authors should make sure there defaults are above 256 unless explicitly needed for terrain generation. Most ores do not need to be below 256.
2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Config "/config/MysticAdditions.cfg" Category: "block" Key: "InertMysticCobblestone" Default: 148
2013-01-17 18:16:45 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-01-17 18:16:45 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-01-17 18:16:45 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-01-17 18:16:45 [iNFO] [sTDOUT] OpenAL initialized.
2013-01-17 18:16:46 [iNFO] [sTDOUT] 0 recipes
2013-01-17 18:16:46 [iNFO] [sTDOUT] 0 recipes
2013-01-17 18:16:46 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-01-17 18:16:54 [iNFO] [sTDOUT] Scanning folders...
2013-01-17 18:16:54 [iNFO] [sTDOUT] Total conversion count is 0
2013-01-17 18:16:54 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@51369b2c)
2013-01-17 18:16:54 [iNFO] [sTDOUT] Unable to find spawn biome
2013-01-17 18:16:54 [iNFO] [ForgeModLoader] Loading dimension 2 (New World) (net.minecraft.server.integrated.IntegratedServer@51369b2c)
2013-01-17 18:16:54 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@51369b2c)
2013-01-17 18:16:54 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@51369b2c)
2013-01-17 18:17:19 [iNFO] [sTDERR] java.lang.NoClassDefFoundError: net/minecraft/crash/CrashReportCategory
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.crash.CrashReport.<init>(CrashReport.java:27)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.crash.CrashReport.makeCrashReport(CrashReport.java:319)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:673)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
2013-01-17 18:17:19 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-01-17 18:17:22 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-01-17 18:17:22 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-01-17 18:17:22 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-01-17 18:17:22 [iNFO] [ForgeModLoader] Unloading dimension 2
2013-01-17 18:17:22 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-01-17 18:17:22 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
MysticAdditions [Mystic Additions] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-01-17 18:17:22 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-01-17 18:17:22 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException
2013-01-17 18:17:22 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
2013-01-17 18:17:22 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:752)
2013-01-17 18:17:22 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:459)
2013-01-17 18:17:22 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559)
2013-01-17 18:17:22 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-01-17 18:17:24 [iNFO] [sTDOUT] Stopping!
2013-01-17 18:17:24 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-01-17 18:17:24 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com


 

 

 

 

@mod file:

 

package com.sudwood.MysticAdditions;

import java.util.List;
import java.util.Map;
import java.util.Random;
import java.io.File;

import com.sudwood.MysticAdditions.blocks.MysticModBlocks;
import com.sudwood.MysticAdditions.blocks.TileEntityMysticBud;

import client.sudwood.MysticAdditions.MysticClientProxy;
import client.sudwood.MysticAdditions.RenderMysticArrow;
import client.sudwood.MysticAdditions.RenderMysticExplosiveArrow;
import client.sudwood.MysticAdditions.RenderMysticFireArrow;
import client.sudwood.MysticAdditions.RenderMysticTeleArrow;
import client.sudwood.MysticAdditions.RenderSteelShuriken;
import com.sudwood.MysticAdditions.items.MysticModItems;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.client.registry.RenderingRegistry;
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.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;


import net.minecraftforge.*;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.liquids.LiquidDictionary;
import net.minecraftforge.liquids.LiquidStack;
import net.minecraftforge.oredict.OreDictionary;
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.SidedProxy;




@Mod( modid = "MysticAdditions", name="Mystic Additions", version="1.0.4")
@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels=("MysticFurnace"), packetHandler = MysticPacketHandler.class)
public class mod_MysticAdditions 
{
public static BiomeGenBase Mysticbiome;
@Instance("MysticAdditions")
public static mod_MysticAdditions instance;

@SidedProxy(clientSide="client.sudwood.MysticAdditions.MysticClientProxy", serverSide="com.sudwood.MysticAdditions.MysticCommonProxy" )
public static MysticCommonProxy proxy;

public static int DimID;
private GuiHandlerMystic guiHandler = new GuiHandlerMystic();

//block ids
	 public static int compressedcoalid;
	 public static int compressedredstoneid;
	 public static int refinedcarbonid;
	 public static int refinedredstoneid;
	 public static int refinedironblockid;
	 public static int csteelblockid;
	 public static int mysticglassid;
	 public static int mysticglowglassid;
	 public static int mysticspeedglassid;
	 public static int mysticlandmineglassid;
	 public static int mysticfireglassid;
	 public static int redlogid;
	 public static int redplanksid;
	 public static int ironlogid;
	 public static int ironplanksid;
	 public static int redsaplingid;
	 public static int ironsaplingid;
	 public static int redleavesid;
	 public static int ironleavesid;
	 public static int mysticdirtid;
	 public static int mysticgrassid;
	 public static int mysticgenstoneid;
	 public static int mysticcobblestoneid;
	 public static int mysticportalid;
	 public static int elevatorid;
	 public static int stopperid;
	 public static int dropperid;
	 public static int mysticbricksid;
	 public static int mysticportalblockid;
	 public static int mysticportalspawnerid;
	 public static int mysticingotblockid;
	 public static int mysticfurnaceid;
	 public static int mysticcraftingtableid;
	 public static int inertmysticgrassid;
	 public static int inertmysticdirtid;
	 public static int inertmysticgenstoneid;
	 public static int inertmysticcobblestoneid;
	 public static int mysticbudswitchid;
	 public static int mysticwirefirstid;
	//item ids
	 public static int refinedironingotid;
	 public static int csteelingotid;
	 public static int redstoneshardsid;
	 public static int moltenredstoneid;
	 public static int mysticplatingid;
	 public static int mysticstoneid;
	 public static int mysticbowid;
	 public static int mysticarrowid;
	 public static int mystictelearrowheadid;
	 public static int mysticexplosivearrowheadid;
	 public static int mysticfirearrowheadid;
	 public static int mystictelearrowid;
	 public static int mysticexplosivearrowid;
	 public static int mysticfirearrowid;
	 public static int woodenreinforcementsid;
	 public static int regulararrowchooserid;
	 public static int stoneplatingid;
	 public static int reinforcedstoneid;
	 public static int cruderedoreid;
	 public static int crudeironid;
	 public static int cruderedstoneid;
	 public static int crudeironchunkid;
	 public static int steelshurikenid;
	 public static int mysticshurikenid;
	 public static int enchantedboneid;
	 public static int enchantedbonemealid;
	 public static int csteeldustid;
	 public static int moltencsteelid;
	 public static int mysticingotid;
	 public static int moltenmysticalloyid;
	 public static int mysticknighteggid;
	 public static int mysticfeatherid;
	 public static int mystichardenedcarbonid;
		//tool ids
	 public static int csteelpickid;
	 public static int csteelaxeid;
	 public static int csteelswordid;
	 public static int csteelhoeid;
	 public static int csteelspadeid;
	//mystic tool ids
	 public static int mysticpickid;
	 public static int mysticaxeid;
	 public static int mysticswordid;
	 public static int mystichoeid;
	 public static int mysticspadeid;
		//armor ids
	 public static int csteelchestid;
	 public static int csteelhelmid;
	 public static int csteellegsid;
	 public static int csteelbootsid;
	 public static int stonechestid;
	 public static int stonehelmid;
	 public static int stonelegsid;
	 public static int stonebootsid;
	 public static int mysticchestid;
	 public static int mystichelmid;
	 public static int mysticlegsid;
	 public static int mysticbootsid;

//creative tab
	 public static CreativeTabs mysticTab = new MysticAdditionsTab("mysticTab");






@PreInit
public void preInit(FMLPreInitializationEvent event){
System.out.println("Loading Version 1.0.4 of Mystic Additions");
Configuration config = new Configuration(event.getSuggestedConfigurationFile());

config.load();
//block ids
     compressedcoalid = config.getBlock("CompressedCoal", 2171).getInt();
     compressedredstoneid = config.getBlock("CompressedRedstone", 2172).getInt();
     refinedcarbonid = config.getBlock("RefinedCarbon", 2173).getInt();
     refinedredstoneid = config.getBlock("RefinedRedstone", 2174).getInt();
     refinedironblockid = config.getBlock("RefinedIronBlock", 2175).getInt();
     csteelblockid = config.getBlock("SteelBlock", 2176).getInt();
     mysticglassid = config.getBlock("MysticGlass", 2177).getInt();
     mysticglowglassid = config.getBlock("MysticGlowGlass", 2178).getInt();
     mysticspeedglassid = config.getBlock("MysticSpeedGlass", 2179).getInt();
     mysticlandmineglassid = config.getBlock("MysticLandMineGlass", 2180).getInt();
     mysticfireglassid = config.getBlock("MysticFireGlass", 2181).getInt();
     redlogid = config.getBlock("RedstoneLog", 2182).getInt();
     redplanksid = config.getBlock("RedstonePlanks", 2183).getInt();
     ironlogid = config.getBlock("IronLog", 2184).getInt();
     ironplanksid = config.getBlock("IronPlanks", 2185).getInt();
     redsaplingid = config.getBlock("RedstoneSapling", 2186).getInt();
     ironsaplingid = config.getBlock("IronSapling", 2187).getInt();
     redleavesid = config.getBlock("RedstoneLeaves", 2188).getInt();
     ironleavesid = config.getBlock("IronLeaves", 2189).getInt();
     mysticdirtid = config.getBlock("MysticDirt", 2190).getInt();
     mysticgrassid = config.getBlock("MysticGrass", 2191).getInt();
     mysticgenstoneid = config.getBlock("MysticGeneratedStone", 2192).getInt();
     mysticcobblestoneid = config.getBlock("MysticCobbleStone", 2193).getInt();
     mysticportalid = config.getBlock("MysticPortal", 2194).getInt();
     elevatorid = config.getBlock("Elevator", 2195).getInt();
     stopperid = config.getBlock("Stopper", 2196).getInt();
     dropperid = config.getBlock("Dropper", 2197).getInt();
     mysticbricksid = config.getBlock("MysticBricks", 2198).getInt();
     mysticportalblockid = config.getBlock("MysticPortalFrame", 2199).getInt();
     mysticportalspawnerid = config.getBlock("MysticPortalSpawner", 2200).getInt();
     mysticingotblockid = config.getBlock("MysticIngotBlock", 2201).getInt();
     mysticfurnaceid = config.getBlock("MysticFurnace", 2202).getInt();
     mysticcraftingtableid = config.getBlock("MysticCraftingTable", 2203).getInt();
     inertmysticgrassid = config.getBlock("InertMysticGrass", 149).getInt();
     inertmysticdirtid = config.getBlock("InertMysticDirt", 2205).getInt();
     inertmysticgenstoneid = config.getBlock("InertMysticStone", 2206).getInt();
     inertmysticcobblestoneid = config.getBlock("InertMysticCobblestone", 148).getInt();
     mysticbudswitchid = config.getBlock("MysticBudSwitch", 2208).getInt();
    
//item ids
     refinedironingotid = config.getItem("RefinedIronIngot", 31000).getInt();
     csteelingotid = config.getItem("SteelIngot", 31001).getInt();
     redstoneshardsid = config.getItem("RedstoneShards", 31002).getInt();
     moltenredstoneid = config.getItem("MoltenRedstone", 31003).getInt();
     mysticplatingid = config.getItem("MysticPlating", 31004).getInt();
     mysticstoneid = config.getItem("MysticStone", 31005).getInt();
     mysticbowid = config.getItem("MysticBow", 31006).getInt();
     mysticarrowid = config.getItem("MysticArrow", 31007).getInt();
     mystictelearrowheadid = config.getItem("MysticTeleArrowHead", 31008).getInt();
     mysticexplosivearrowheadid = config.getItem("MysticExplosiveArrowHead", 31009).getInt();
     mysticfirearrowheadid = config.getItem("MysticFireArrowHead", 31010).getInt();
     mystictelearrowid = config.getItem("MysticTeleArrow", 31011).getInt();
     mysticexplosivearrowid = config.getItem("MysticExplosiveArrow", 31012).getInt();
     mysticfirearrowid = config.getItem("MysticFireArrow", 31013).getInt();
     woodenreinforcementsid = config.getItem("WoodenReinforcements", 31014).getInt();
     regulararrowchooserid = config.getItem("RegularArrowChooser", 31015).getInt();
     stoneplatingid = config.getItem("StonePlating", 31016).getInt();
     reinforcedstoneid = config.getItem("ReinforcedStone", 31017).getInt();
     cruderedoreid = config.getItem("CrudeRedOre", 31018).getInt();
     crudeironid = config.getItem("CrudeIron", 31019).getInt();
     cruderedstoneid = config.getItem("CrudeRedstone", 31020).getInt();
     crudeironchunkid = config.getItem("CrudeIronChunk", 31021).getInt();
     steelshurikenid = config.getItem("SteelShuriken", 31022).getInt();
     mysticshurikenid = config.getItem("MysticShuriken", 31023).getInt();
     enchantedboneid = config.getItem("EnchantedBone", 31024).getInt();
     enchantedbonemealid = config.getItem("EnchantedBonemeal", 31025).getInt();
     csteeldustid = config.getItem("SteelDust", 31026).getInt();
     moltencsteelid = config.getItem("MoltenSteel", 31027).getInt();
     mysticingotid = config.getItem("MysticIngot", 31028).getInt();
     moltenmysticalloyid = config.getItem("MoltenMysticAlloy", 31029).getInt();
     mysticknighteggid = config.getItem("MysticKnightEgg", 31053).getInt();
     mysticfeatherid = config.getItem("MysticFeather", 31030).getInt();
     mystichardenedcarbonid = config.getItem("MysticHardenedCarbon", 31053).getInt();
	//tool ids
     csteelpickid = config.getItem("SteelPickaxe", 31031).getInt();
     csteelaxeid = config.getItem("SteelAxe", 31032).getInt();
     csteelswordid = config.getItem("SteelSword", 31033).getInt();
     csteelhoeid = config.getItem("SteelHoe", 31034).getInt();
     csteelspadeid = config.getItem("SteelShovel", 31035).getInt();
//mystic tool ids
     mysticpickid = config.getItem("MysticPickaxe", 31036).getInt();
     mysticaxeid = config.getItem("MysticAxe", 31037).getInt();
     mysticswordid = config.getItem("MysticSword", 31038).getInt();
     mystichoeid = config.getItem("MysticHoe", 31039).getInt();
     mysticspadeid = config.getItem("MysticShovel", 31040).getInt();
	//armor ids
     csteelchestid = config.getItem("SteelChestplate", 31041).getInt();
     csteelhelmid = config.getItem("SteelHelm", 31042).getInt();
     csteellegsid = config.getItem("SteelLegs", 31043).getInt();
     csteelbootsid = config.getItem("SteelBoots", 31044).getInt();
     stonechestid = config.getItem("StoneChestplate", 31045).getInt();
     stonehelmid = config.getItem("StoneHelm", 31046).getInt();
     stonelegsid = config.getItem("StoneLegs", 31047).getInt();
     stonebootsid = config.getItem("StoneBoots", 31048).getInt();
     mysticchestid = config.getItem("MysticChestplate", 31049).getInt();
     mystichelmid = config.getItem("MysticHelm", 31050).getInt();
     mysticlegsid = config.getItem("MysticLegs", 31051).getInt();
     mysticbootsid = config.getItem("MysticBoots", 31052).getInt();
config.save();
MysticERegistration.registerMysticEnergyID(mysticwirefirstid);
}



@Init
public void load(FMLInitializationEvent event) 
{

MysticModBlocks.init();
MysticModItems.init();
MysticModBlocks.initBlockRecipes();
OreDictionary.registerOre("ingotRefinedIron", new ItemStack(MysticModItems.refinedIronIngot));
OreDictionary.registerOre("ingotSteel", new ItemStack(MysticModItems.cSteelIngot));
OreDictionary.registerOre("ingotMystic", new ItemStack(MysticModItems.mysticIngot));

//entity 
//creative tab
LanguageRegistry.instance().addStringLocalization("itemGroup.mysticTab", "en_US", "Mystic Additions");


 proxy.registerRenderInformation();
//	 Parameters are: entClass, entName, ID, mod, trackingRange, updateFrequency, sendVelocityUpdates
 EntityRegistry.registerModEntity(EntityMysticArrow.class, "Mystic Arrow", 1, this, 250, 20, true);
 EntityRegistry.registerModEntity(EntityMysticTeleArrow.class, "Mystic Teleport Arrow", 2, this, 250, 20, true);
 EntityRegistry.registerModEntity(EntityMysticExplosiveArrow.class, "Mystic Explosive Arrow", 3, this, 250, 20, true);
 EntityRegistry.registerModEntity(EntityMysticFireArrow.class, "Mystic Fire Arrow", 4, this, 250, 20, true);
 EntityRegistry.registerModEntity(EntityMysticKnight.class, "Mystic Knight", 5, this, 30, 1, true);
 DimensionManager.registerProviderType(14, WorldProviderMystic.class, false);
 DimID = DimensionManager.getNextFreeDimId();

 DimensionManager.registerDimension(DimID, 14);

	//biome stuff
	Mysticbiome = new BiomeGenMystic(50);

		//mob stuff
		 EntityRegistry.addSpawn(EntityMysticKnight.class, 10, 4, 10, EnumCreatureType.creature, Mysticbiome);
		 LanguageRegistry.instance().addStringLocalization("entity.MysticAdditions.MysticKnight.name", "Mystic Knight");
//furnace stuff
		 GameRegistry.registerTileEntity(TileEntityMysticFurnace.class, "MysticInfuser");
		 GameRegistry.registerTileEntity(TileEntityMysticCraftingTable.class, "Distortion Integrator");
		 GameRegistry.registerTileEntity(TileEntityMysticBud.class, "Mystic Detector");
		 NetworkRegistry.instance().registerGuiHandler(this, guiHandler);





}







public void generateSurface(World world, Random rand, int baseX, int baseZ)
{	
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(baseX, baseZ); 
        WorldGenRedTree tree = new WorldGenRedTree(true); 
        if((biome instanceof BiomeGenMystic))
        { 
        	for(int x = 0; x < 2; x++)
        	{
        		int Xcoord = baseX + rand.nextInt(16); 
        		int Zcoord = baseZ + rand.nextInt(16); 
        		int i = world.getHeightValue(Xcoord, Zcoord); 
        		tree.generate(world, rand, Xcoord, i, Zcoord); 
        	}
        } 		
        for(int a = 0; a < 2; a++)
            {
             int RandPosX = baseX + rand.nextInt(16);
             int RandPosY = rand.nextInt(150);
             int RandPosZ = baseZ + rand.nextInt(16);
             (new WorldGenTowerBoss()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
            }
        for(int b = 0; b < 2; b++)
            {
             int RandPosX = baseX + rand.nextInt(16);
             int RandPosY = rand.nextInt(150);
             int RandPosZ = baseZ + rand.nextInt(16);
             (new WorldGenJumpTower()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
            }
        WorldGenIronTree tree1 = new WorldGenIronTree(true); 
        if((biome instanceof BiomeGenMystic))
        { 
        	for(int x = 0; x < 2; x++)
        	{
        		int Xcoord = baseX + rand.nextInt(16); 
        		int Zcoord = baseZ + rand.nextInt(16); 
        		int i = world.getHeightValue(Xcoord, Zcoord); 
        		tree1.generate(world, rand, Xcoord, i, Zcoord); 
        	}
        } 		
}	

public String getVersion()
{
	return "1.0.0";
}
}


 

 

WoldProvider:

 

package com.sudwood.MysticAdditions;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.Vec3;
import net.minecraft.world.WorldProvider;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.ChunkProviderHell;

public class WorldProviderMystic extends WorldProvider
{
    /**
     * creates a new world chunk manager for WorldProvider
     */
    public void registerWorldChunkManager()
    {
        this.worldChunkMgr = new WorldChunkManagerHell(mod_MysticAdditions.Mysticbiome, 1.0F, 0.0F);
        this.isHellWorld = false;
        this.hasNoSky = false;
        this.dimensionId = mod_MysticAdditions.DimID;
    }

    @SideOnly(Side.CLIENT)

    /**
     * Return Vec3D with biome specific fog color
     */
    public Vec3 getFogColor(float par1, float par2)
    {
        return this.worldObj.getWorldVec3Pool().getVecFromPool(0.20000000298023224D, 0.029999999329447746D, 0.029999999329447746D);
    }

    /**
     * Creates the light to brightness table
     */
    protected void generateLightBrightnessTable()
    {
        float var1 = 0.1F;

        for (int var2 = 0; var2 <= 15; ++var2)
        {
            float var3 = 1.0F - (float)var2 / 15.0F;
            this.lightBrightnessTable[var2] = (1.0F - var3) / (var3 * 3.0F + 1.0F) * (1.0F - var1) + var1;
        }
    }

    /**
     * Returns a new chunk provider which generates chunks for this world
     */
    public IChunkProvider createChunkGenerator()
    {
        return new ChunkProviderMysticA(this.worldObj, this.worldObj.getSeed(), false);
    }

    /**
     * Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions.
     */
    public boolean isSurfaceWorld()
    {
        return false;
    }

    /**
     * Will check if the x, z position specified is alright to be set as the map spawn point
     */
    public boolean canCoordinateBeSpawn(int par1, int par2)
    {
        return true;
    }

    /**
     * Calculates the angle of sun and moon in the sky relative to a specified time (usually worldTime)
     */
    public float calculateCelestialAngle(long par1, float par3)
    {
        return 0.5F;
    }

    /**
     * True if the player can respawn in this dimension (true = overworld, false = nether).
     */
    public boolean canRespawnHere()
    {
        return true;
    }

    @SideOnly(Side.CLIENT)

    /**
     * Returns true if the given X,Z coordinate should show environmental fog.
     */
    public boolean doesXZShowFog(int par1, int par2)
    {
        return true;
    }

    /**
     * Returns the dimension's name, e.g. "The End", "Nether", or "Overworld".
     */
    public String getDimensionName()
    {
        return "The Dimensional Warp";
    }
}

 

 

Biome:

 

package com.sudwood.MysticAdditions;

import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry;

import com.sudwood.MysticAdditions.blocks.MysticModBlocks;


public class BiomeGenMystic extends BiomeGenBase
{

        protected BiomeGenMystic(int par1)
        {
                super(par1);
                this.spawnableMonsterList.clear();
                this.spawnableCreatureList.clear();
                this.spawnableWaterCreatureList.clear();
                topBlock = (byte) MysticModBlocks.mysticGrass.blockID;
                fillerBlock = (byte)MysticModBlocks.mysticDirt.blockID;
                theBiomeDecorator.treesPerChunk = 2;
                //theBiomeDecorator.deadBushPerChunk = 0;
                //theBiomeDecorator.reedsPerChunk = 0;
                //theBiomeDecorator.cactiPerChunk = 0;
                waterColorMultiplier = 0xFF0000;
                spawnableMonsterList.add(new SpawnListEntry(EntityMysticKnight.class, 18, 12, 16));
            
                
        }
                
     /*   public int func_48415_j()
        {
                double d = func_48411_i();
                double d1 = func_48414_h();
                return ((ColorizerGrass.getGrassColor(d, d1) & 0xFFC2C2) + 0xFFC2C2) / 2;
        }

        public int func_48412_k()
        {
                double d = func_48411_i();
                double d1 = func_48414_h();
                return ((ColorizerFoliage.getFoliageColor(d, d1) & 0xFFC2C2) + 0xFFC2C2) / 2;
        }*/
}

 

If anything other files are needed just ask. Thanks for any help you can give :)

  • 1 month later...
Posted

I have found a fix for this, because I have this too.

 

Forge has a 4096 Index Code for Blocks.

 

That means you block ID codes should be around 2000-4096.

 

Two of your blocks are below 256. :D

 

Change them to something above 2000 and you should be good.

 

In your error code:

2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Mod attempted to get a block ID with a default in the Terrain Generation section, mod authors should make sure there defaults are above 256 unless explicitly needed for terrain generation. Most ores do not need to be below 256.

2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Config "/config/MysticAdditions.cfg" Category: "block" Key: "InertMysticGrass" Default: 149

2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Mod attempted to get a block ID with a default in the Terrain Generation section, mod authors should make sure there defaults are above 256 unless explicitly needed for terrain generation. Most ores do not need to be below 256.

2013-01-17 18:16:44 [WARNING] [ForgeModLoader] Config "/config/MysticAdditions.cfg" Category: "block" Key: "InertMysticCobblestone" Default: 148

 

It is something with InertMysticGlass and InertMysticCobblestone.

ID 148, ID 149. Change it :)

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.