• 0

    posted a message on Two Generate Suraface Lines
    May I suggest that instead of creating the variables and then setting them, you first replace var5 with i, then use "int var6 = var3+var2..." or whatever the code is. It's shorter. And for editing and reviewing purposes you may want to choose more intuitive variable names, like randX randY and randZ. I mean, look at how notch's code turned out. int i, float f, double d, it just looks messy.
    Posted in: Mods Discussion
  • 0

    posted a message on Strange Error
    Thanks to everyone who responded. It turned out I did forget to register my block. I always think I have it right and then the one thing happens... anyway thanks for all the help people, I really appreciate it.
    Posted in: Modification Development
  • 0

    posted a message on Strange Error
    So I have a very simple mod, just adds one block, and no compiler errors or anything. When I use startclient, everthing works fine until I craft my block, and as soon as I place the blocks next to each other on the crafting table, the client crashes and I get the following error:

    Mods loaded: 2
    ModLoader Beta 1.8.1
    net.minecraft.src.mod_Testing 1.0

    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.

    If you wish to report this, please copy this entire text and email it to [email protected].
    Please include a description of what you did when the error occured.



    --- BEGIN ERROR REPORT 6bf9cbdd --------
    Generated 11/3/11 8:15 PM

    Minecraft: Minecraft Beta 1.8.1
    OS: Mac OS X (x86_64) version 10.5.8
    Java: 1.6.0_26, Apple Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
    LWJGL: 2.4.2
    OpenGL: NVIDIA GeForce GT 120 OpenGL Engine version 2.0 NVIDIA-1.5.48, NVIDIA Corporation

    java.lang.NullPointerException
    at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:79)
    at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:189)
    at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:124)
    at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:57)
    at net.minecraft.src.GuiInventory.drawScreen(GuiInventory.java:51)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:710)
    at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:23)
    at net.minecraft.client.Minecraft.run(Minecraft.java:517)
    at java.lang.Thread.run(Thread.java:680)
    --- END ERROR REPORT 2f0312b0 ----------

    I think the problem might have something to do with the inventory icon, or ItemStack, because whenever that's supposed to appear, the crash happens.

    My question is, what can I do to my code to fix the problem? Or what am I doing wrong. My code is as follows:

    Mod file

    package net.minecraft.src;
    import java.util.Random;

    public class mod_Testing extends BaseMod
    {
    public static final Block testBlock = new BlockTesting(201,0).setHardness(1f).setResistance(5F).setLightValue(2F).setBlockName("test block");

    public mod_Testing()
    {
    testBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/test.png");
    ModLoader.AddName(testBlock, "Testing");
    ModLoader.AddRecipe(new ItemStack(testBlock, 1), new Object[]{
    "**", Character.valueOf('*'), Block.dirt
    });
    }

    public String Version()
    {
    return "1.0";
    }
    }

    BlockTesting.java
    package net.minecraft.src;
    import java.util.Random;

    public class BlockTesting extends Block
    {
    protected BlockTesting(int i, int j)
    {
    super(i, j, Material.cloth);
    }
    }
    Posted in: Modification Development
  • 0

    posted a message on [1.3.2] AdventureCraft - NPC Pathing Blocks [R1095]
    I have a problem... Is this supposed to work for Macintosh? Because whenever I click the installer, it opens up the frame with the install buttons, and this frame can be dragged around like any other frame, but the buttons don't work, and the close/hide/fullsize buttons don't work either, so I can't get rid of it. It doesn't show up as an application in the bar either... can anyone help?
    Posted in: Minecraft Mods
  • 0

    posted a message on Making Mobs
    I'm sure there's a tutorial out there explaining how to create custom mobs in minecraft via modding, but I definitely have had bad luck in finding such a tutorial. In fact, the closest thing I've found is a tutorial for mob making for 1.7.3, I'm looking for minecraft 1.8.

    That's great if you can explain it right here, though it would be a little messy, so I would prefer a good tutorial, so if someone has a link to one, or better yet a good youtube channel dedicated to such tutorials, that would be ideal, and I would much appreciate your putting it below. If you would rather explain it to me, you can start a private conversation, or else a spoiler button would be appreciated if you do want to post it on this topic.

    Once again, I am the humble beggar, but I'm learning, and I'm starting to understand this all.
    If I do end up creating a successful mod, I sure won't forget your help, and I won't hesitate to mention you.
    Posted in: Modification Development
  • 0

    posted a message on Need help with
    Is there any way to do like, an if(EnumToolMaterial == EMERALD){ whatToDo = 1 }
    or something like that? Like how do I get it to make water only if the tool is made of a certain material?
    Posted in: Modification Development
  • 0

    posted a message on Need help with
    Thanks, I'll try it out and let you know
    Posted in: Modification Development
  • 0

    posted a message on Need help with
    I would like some help on modding a few things. I would like to make it so that players can:
    -Spawn water on any block that is right clicked
    -Spawn lava on any block that is right clicked
    -Make lightning strike any block that is right clicked
    -Make an explosion happen at any block that I right click
    -Spawn a nether portal on any block that I right click

    These will be used in a mod I'm making , in a which a new tool type will make it so you can do these things when carrying that tool with a certain material.

    I don't have any compensation to offer, but I would really like some help, so thanks.
    (I don't need help with all the tool stuff, I can figure that out, but knowing how to make things explode and all that would be really useful.

    (Reposted because I got 0 views and replies on the last one :SSSS:
    Posted in: Modification Development
  • 0

    posted a message on Small Questions...
    I would like some help on modding a few things. I would like to make it so that players can:
    -Spawn water on any block that is right clicked
    -Spawn lava on any block that is right clicked
    -Make lightning strike any block that is right clicked
    -Make an explosion happen at any block that I right click
    -Spawn a nether portal on any block that I right click

    These will be used in a mod I'm making , in a which a new tool type will make it so you can do these things when carrying that tool with a certain material.

    I don't have any compensation to offer, but I would really like some help, so thanks.
    (I don't need help with all the tool stuff, I can figure that out, but knowing how to make things explode and all that would be really useful.
    Posted in: Modification Development
  • 0

    posted a message on Risugami's Mods - Updated.
    I think that this modloader can be appreciated much more from the mod maker's perspective; as a regular minecraft player you just think cool, I can add new blocks that people make. But as a mod maker, you think about how much of a pain in the ass it would have been to override the terrain.png and all that other stuff by yourself.
    Posted in: Minecraft Mods
  • 0

    posted a message on UTD: Union for Technological Development
    I'm back baby!

    I know it's been a while, and I know I left without notice, but I'm really sorry, and I'd like to come back to the group if you guys will have me. I made a little something for the server, it's not much, but it took a loooong time to make.
    Posted in: Discussion
  • 0

    posted a message on UTD Applications Thread (Apply Here!)
    I don't know if you guys remember me, I'm an old member of the UTD, from a looooong time ago. I worked on several redstone projects, and I left on short notice. I was hoping I could get back in, I used to be an admin. If you do let me back in, I have a special surprise, built by myself! It's not amazing but it was time consuming.

    Let me know, I would really like to see what's become of this group, and hopefully help out
    Posted in: Clans
  • 0

    posted a message on UTD: Union for Technological Development
    It may not seem like I have been contributing lately, but actually I've been working quite hard. With my internet being crap and all, I've gone into single player, and am working on a functional 24 hour alarm clock. Also, an even bigger project, I'm creating a texture pack!!! You may have seen a picture or two of some edited mobs, but I've got to work changing some of the blocks, and most of them have come out great! If you have any suggestions send me a private message, as I may not see it on the forum, although you can post it here too. When I'm finished I'll post a link to the file.

    I'd really like some feedback, I currently have changed stone, cobblestone, dirt, a couple color tweaks, and have glass doors, prison bar doors, and glass trapdoors. I'd really love to get some suggestions, so don't be shy!!!

    (The name will be LOL!craft, and I've already changed the tnt block to say LOL!
    Posted in: Discussion
  • 0

    posted a message on UTD: Union for Technological Development


    Monster cow edit! Email me for the pic, then make a backup of your cow pic in the "mob" folder of your minecraft.jar, then replace the original with the new pic. I'm gonna be making a bunch more edits and I'll put em all in a zip that you can stick in your minecraft folder to get all my edited mobs.
    Posted in: Discussion
  • 0

    posted a message on UTD: Union for Technological Development
    My brain is getting fried, so I think I'm gonna take a short break from redstone projects. Anyone wanna make some big ass cannons?
    Posted in: Discussion
  • To post a comment, please .