Jump to content

_bau5

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by _bau5

  1. What are you referring to?
  2. Looking to add my own custom textured particles to the game. Others have had success, but I can't quite get it. Here's what i've got: My effect that extends EntityFX Adding the effect itself to the game when it is tried to spawn: Any insight would be awesome, thanks. Also, this is where i followed someone's solution: http://www.minecraftforum.net/topic/1213462-adding-custom-texture-to-custom-particle-effect/ EDIT: Just as a note, they're rendering as white boxes in game. I know the texture is in the right place, already debugged that.
  3. I'm toying around with the config file idea, looked after cpw's IronChests source to figure it out. I noticed though that if I change the blockID or Item id from the file and go into a world where I had already, whatever item or block's ID I had changed would disappear. Perhaps something is wrong in the code? Thanks! Config loading code: @PreInit public void preLoad(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); try { config.load(); BnmStoneID = config.getOrCreateBlockIdProperty("Nightmare Stone Block", 145).getInt(145); InmAxe = config.getOrCreateIntProperty("Shifting Axe", Props.config.CATEGORY_ITEM, 6200).getInt(6200); InmPickAxe = config.getOrCreateIntProperty("Shifting Pick Axe", Props.config.CATEGORY_ITEM, 6201).getInt(6201); InmSword = config.getOrCreateIntProperty("Shifting Sword", Props.config.CATEGORY_ITEM, 6202).getInt(6202); InmMulti1 = config.getOrCreateIntProperty("Shifting Residue", Props.config.CATEGORY_ITEM, 6203).getInt(6203); InmOrb = config.getOrCreateIntProperty("Shifting Orb", Props.config.CATEGORY_ITEM, 6204).getInt(6204); InmSphere = config.getOrCreateIntProperty("Shifting Sphere", Props.config.CATEGORY_ITEM, 6205).getInt(6205); } catch(Exception e) { FMLLog.log(Level.SEVERE, e, "Alptraum: Difficulties loading config."); } finally { config.save(); } }
  4. perfect, that did it. thanks lex
  5. New to this whole Forge modding idea, but really interested in it. When I run Minecraft in eclipse i get this error: 2012-08-16 23:58:01 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2012-08-16 23:58:01 [sEVERE] [ForgeModLoader] Forge Mod Loader (coremods) Unloaded->Constructed->Pre-initialized->Initialized Alptraum (bin) Unloaded->Constructed->Pre-initialized->Errored Minecraft Forge (coremods) Unloaded->Constructed->Pre-initialized->Initialized More precise: 2012-08-16 15:42:20 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: Alptraum.NightmareStoneBlock cannot be cast to cpw.mods.fml.common.registry.BlockProxy 2012-08-16 15:42:20 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:179) 2012-08-16 15:42:20 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:149) 2012-08-16 15:42:20 [iNFO] [sTDERR] at Alptraum.Alptraum.registerAllBlocks(Alptraum.java:26) 2012-08-16 15:42:20 [iNFO] [sTDERR] at Alptraum.Alptraum.initAlptraum(Alptraum.java:21) 2012-08-16 15:42:20 [iNFO] [sTDERR] ... 30 more My code: package Alptraum; import net.minecraft.src.*; import net.minecraft.src.Block; import net.minecraftforge.client.MinecraftForgeClient; import net.minecraftforge.common.Property; import cpw.mods.fml.common.*; import cpw.mods.fml.common.Mod.*; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod( modid = "_bau5Alptraum", name = "Alptraum", version = "0.1") public class Alptraum { public static NightmareStoneBlock nightmareStone; @Init public void initAlptraum(FMLInitializationEvent event) { MinecraftForgeClient.preloadTexture("/Textures/AlptraumSheet.png"); registerAllBlocks(); } private void registerAllBlocks() { nightmareStone = new NightmareStoneBlock(150); GameRegistry.registerBlock(nightmareStone); ModLoader.addName(nightmareStone, "Nightmare Stone"); } static { Props.initProps("AlptraumProps"); } } It fails at GameRegistry.registerBlock(...) and I realize that, just don't know what the fix is. Thanks.
×
×
  • Create New...

Important Information

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