• 0

    posted a message on [1.5.2 / 1.5.1 / 1.4.7 / 1.3.2] Creating Mods - Modloader/Forge ~SCMowns [Src & Video]
    Quote from slayerain
    Hey man. Nice work. But forge part of tutorial doesn't work for 1.4.7. I tried add item and solid block so far. I get item with no texture and no block adding even tho there is no syntaxis errors. Here is code i use - just basic part
    main script:
    public class Infinity {
    public static Item OSIngot;
    public static Block OsmiumOre;
    @Initpublic void load(FMLInitializationEvent event){
    OSIngot = new NewItems(3001).setItemName("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");OsmiumOre = new NewBlocks(3002,"OsmiumOre").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F).setTextureFile("/Textures/Blocks/osore.png");
    LanguageRegistry.addName(OSIngot, "Osmium Ingot");
    LanguageRegistry.addName(OsmiumOre, "Osmium Ore");
    }
    }
    Newitem class:
    package SlayeRAIN.Infinity;
    import net.minecraft.item.Item;
    import cpw.mods.fml.relauncher.*;
    import net.minecraft.creativetab.CreativeTabs;
    public class NewItems extends Item {
    public NewItems(int par1) {
    super(par1);
    setCreativeTab(CreativeTabs.tabMaterials);
    }
    }
    Newblock class:
    package SlayeRAIN.Infinity;
    import java.util.Random;
    import cpw.mods.fml.common.Mod.Init;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.registry.LanguageRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    public class NewBlocks extends Block {
    public NewBlocks(int par1, String texture) {
    super(par1, Material.rock);
    setCreativeTab(CreativeTabs.tabBlock);
    }
    public int idDropped(int par1, Random par2Random, int par3){
    return Infinity.OsmiumOre.blockID;
    }
    public int quantityDropped(Random random){
    return 1;
    }
    public String getTextureFile(){
    return "/Textures/Blocks/osore.png";
    }
    }
    I made folder in minecraft.jar Textures/Blocks(Items) and put there your renamed png files for test. Well, as i said item has no texure and block doesnt pop up at all. I couldn't use .setUnlocalizedName i guess forg 6.2.2 don't have it. Could i have some assistance with it? I tried figure on my own but failed.
    Put your Forge log in Pastebin and link to it. Logs are useful. Also, giving fields Capitalized names makes it hard to tell what's a type and what's an instance. One more thing. Please put long pieces of code in code tags and spoiler tags like so:
    Main Script:
    public class Infinity {
        public static Item OSIngot;
        public static Block OsmiumOre;
        @Init
        public void load(FMLInitializationEvent event) {
            OSIngot = new NewItems(3001).setItemName("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");
            OsmiumOre = new NewBlocks(3002,"OsmiumOre").setHardness(2.0F)
                    .setStepSound(Block.soundMetalFootstep).setResistance(10.0F)
                    .setTextureFile("/Textures/Blocks/osore.png");
            LanguageRegistry.addName(OSIngot, "Osmium Ingot");
            LanguageRegistry.addName(OsmiumOre, "Osmium Ore");
        }
    }
    NewItems class:
    package SlayeRAIN.Infinity;
    import net.minecraft.item.Item;
    import cpw.mods.fml.relauncher.*;
    import net.minecraft.creativetab.CreativeTabs;
    public class NewItems extends Item {
        public NewItems(int par1) {
            super(par1);
            setCreativeTab(CreativeTabs.tabMaterials);
        }
    }
    NewBlocks class:
    package SlayeRAIN.Infinity;
    import java.util.Random;
    import cpw.mods.fml.common.Mod.Init;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.registry.LanguageRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    public class NewBlocks extends Block {
        public NewBlocks(int par1, String texture) {
            super(par1, Material.rock);
            setCreativeTab(CreativeTabs.tabBlock);
        }
        public int idDropped(int par1, Random par2Random, int par3){
            return Infinity.OsmiumOre.blockID;
        }
        public int quantityDropped(Random random){
            return 1;
        }
        public String getTextureFile(){
            return "/Textures/Blocks/osore.png";
        }
    }
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [1.5.2 / 1.5.1 / 1.4.7 / 1.3.2] Creating Mods - Modloader/Forge ~SCMowns [Src & Video]
    Quote from ZeScratch

    I added the block in the exact same way as SCMowns did but my client crashes on start up. My error log tells me that it was my "Material.rock" in my block class. Anyone know the way to do it in 1.6.4? Btw it also seems to say there's an error on my 82nd line of my base class which to me is the basic block parametres rubyblock = new RubyBlock(8008, "rubyblock").setUnlocalizedName("RubyBlock").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(1.0F);

    So if anyone knows how to do it for 1.6.4 that would help a bunch. :D

    Sincerely, ZeScratch

    PS: Pinch and a Punch for the first complaint of the month :D

    First, there is a code tag, so you can put your code in that, and second, you need to post the error log to get any help, otherwise we can't really tell you anything.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Colourful Portals Mod - v.1.4.3
    You shouldn't use anonymous objects for Items and Blocks; Forge says they won't survive an upgrade to 1.7, and I would trust it since it's the api that your mod is built on.
    Posted in: Minecraft Mods
  • 0

    posted a message on [CTM][Collection] Vechs' SUPER HOSTILE Series
    Quote from Snivy456

    You say that nightmare realm is incompatible with SMP, does that explain the game crashing when I load it up?

    I don't think so. I thought that the only problem was the fact that the default spawn point is above an unleavable area, so it is broken in SMP. When your game crashes and you ask for help, you should post a pastebin or equivalent online service link to your crash report so that we can see what MC thinks the problem is.
    Posted in: Maps
  • 0

    posted a message on Forge Question
    Th8re is no MCForge for 1.7.2 yet, since the ch8nge from 1.6 was 500,000 lines.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [1.5.2 / 1.5.1 / 1.4.7 / 1.3.2] Creating Mods - Modloader/Forge ~SCMowns [Src & Video]
    H8y, Steven. Are you going to upd8 the tutorials to MC 1.6.x? If so, when. If not, is someone going to continue the series, and are you going to link to them in the m8n post?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [1.5.2 / 1.5.1 / 1.4.7 / 1.3.2] Creating Mods - Modloader/Forge ~SCMowns [Src & Video]
    Quote from Violet5100
    I've consulted with a proper coder already and he told me the same thing. I redownloaded my modloader from a different DLsite and it works now. (Well, I should say to some form or extent. lol) But thank you for your help none the less.
    *outr8ged* I am a proper coder! :P Also, to use spoilers, just type [ spoiler ]stuff in spoiler[ /spoiler ] without the sp8ces after the [ and 8efore the ]
    EDIT: Why can't I stop the BBCode from 8eing parsed?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [1.5.2 / 1.5.1 / 1.4.7 / 1.3.2] Creating Mods - Modloader/Forge ~SCMowns [Src & Video]
    Quote from Violet5100

    Hi, I've been following your tutorials here and I was wondering if you may have some advice about a particular error I've been getting.

    I've been able to get around some of this on my own, But I don't quite understand whats wrong...
    (forgive me for not using a spoiler. I'm fairly new to the website.)


     C:\Users\Takashi\AppData\Roaming\.minecraft\bin\minecraft.jar;bin/jinput.jar;bin/lwjgl.jar;bin/lwjgl_util.jar
    InactiveExtMods: minecraft.zip
    MainClass: net.minecraft.client.Minecraft
    Restoring disabled mods: mods
    Disable inactive mods: mods
    Can not disable: minecraft.zip
    Restoring disabled mods: coremods
    Disable inactive mods: coremods
    229 recipes
    27 achievements
    2013-11-04 21:29:22 [CLIENT] [INFO] Setting user: violet5100
    (Session ID is -2032312304)
    Client asked for parameter: server
    *** Main class main() finished ***
    2013-11-04 21:29:22 [CLIENT] [INFO] LWJGL Version: 2.4.2
    ModLoader 1.5.2 Initializing...
    Register ModLoader mods
    java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0x522303c8)
    at java.util.zip.ZipInputStream.read(Unknown Source)
    at java.util.zip.ZipInputStream.closeEntry(Unknown Source)
    at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
    at ModLoader.readFromClassPath(ModLoader.java:1093)
    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 magic.launcher.Launcher.a(Unknown Source)
    at magic.launcher.k.a(Unknown Source)
    at magic.launcher.s.println(Unknown Source)
    at ModLoader.init(ModLoader.java:731)
    at ModLoader.addAllRenderers(ModLoader.java:205)
    at bgy.<init>(RenderManager.java:97)
    at bgy.<clinit>(RenderManager.java:14)
    at net.minecraft.client.Minecraft.a(SourceFile:261)
    at avv.a(SourceFile:56)
    at net.minecraft.client.Minecraft.run(SourceFile:507)
    at java.lang.Thread.run(Unknown Source)
    Someone is closing me!
    
    
    " java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0x522303c8) " That is the part thats been confusing me. I'm assuming that it has something to do with ModLoader? If anybody could offer a bit of help, That would be amazing.

    What zips have you added to MC? It seems like one of them got corrupted.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [CTM] [Collection] Sketch's Journey of Creation Series ("The Painter" fully released!)
    Your mini-map link is 8roken
    Posted in: Maps
  • 0

    posted a message on Glowstone dust like Redstone dust - Glow effect
    I m8y try to code this. The pl8cea8le glowstone for sure, 8ut would you like the torches or pl8cea8le gunpowder? I don't have any ideas for what glowstone machines there could 8e, 8ut if you have any ideas for me to code, quote me so I see it.
    Posted in: Suggestions
  • 0

    posted a message on modding 1.6
    Here's a link to the Minecraft API
    Posted in: Modification Development
  • 0

    posted a message on How will mods be installed in 1.6.1?
    That will 8e part of resource packs, although it is NYI (Not Yet Implemented)
    Posted in: Mods Discussion
  • 0

    posted a message on [1.4.7] Simple Mod System
    Quote from flamingbooks

    You should update this to 1.5.

    I will, I'm just having trouble updating to 1.5 due to the major change in mod coding techniques.
    EDIT: There, updated.
    Posted in: Minecraft Mods
  • 0

    posted a message on [IDEA] Homestuck-related mods. Looking for help!
    Can I help?I asked on here, but I haven't gotten an answer yet, so I thought "hm... I might as well ask on the MCForums thread as well"
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on [WIP]Scraft- Homestuck mod (Sburb Alpha- Gushers)
    I am looking into making a Homestuck mod, and when I have done all I can, I could send you my src if you would like to look at my ideas/take on how to make it.Two things that I am useless at: World gen, mobsI could never make this mod by myself, so I'm pretty happy that someone is working on it
    Posted in: WIP Mods
  • To post a comment, please .