• 1

    posted a message on [WIP]The Everfrost [1.1]
    Quote from MrCompost

    Please stop attempting to advertise this mod on other threads. It is against the rules, and just annoys others. Nobody ever falls for it.


    It's funny when you said that you helped this mod out by putting at the top for most recent replies.
    The people who post here, like the person above this post, probably only saw this mod because there are so many replies to it.
    Posted in: WIP Mods
  • 1

    posted a message on RenderBlock?
    no the best way is:
        public int getBlockTextureFromSide(int par1)
        {
    	    if (par1 == 1)//if on bottom
    	    {
    		    return ModLoader.addOverride("/terrain.png", "whateveryouwanthere.png");;
    	    }
    	    if (par1 == 0)//if on top
    	    {
    		    return ModLoader.addOverride("/terrain.png", "whateveryouwanthere.png");;
    	    }
    	    if (par1 == 2 || par1 == 4)//if on left or right
    	    {
    			 return ModLoader.addOverride("/terrain.png", "whateveryouwanthere.png");;
    	    }
    	    else//if on front or back
    	    {
    			 return ModLoader.addOverride("/terrain.png", "whateveryouwanthere.png");;
    	    }
        }
    Posted in: Modification Development
  • 1

    posted a message on [API] Minecraft Forge
    No, it is not updated because ModLoaderMP has not been updated yet.
    Posted in: Minecraft Mods
  • 32

    posted a message on [V1.1/V1.7.3]CamelMod Alpha 3.3.0[WIP]
    CamelMod has now been moved to this thread because Methuselah96 has started/joined a new modding team called Magma Modding.
    Posted in: Minecraft Mods
  • 2

    posted a message on [1.13.2] Dynamic Lights - portable and moving lightsources
    Quote from Tweecee

    the MCPatcher can't install all the Mods with Modloader.

    That is false information.
    Posted in: Minecraft Mods
  • 1

    posted a message on [Creating Mods] Methuselah96's Tutorials [8/2/12]
    Quote from LethalComboFilms

    I know you're not god, but a way to make a power system like in buildcraft or IC2 would be crazy.


    That's not a tutorial.
    That's me writing the mod for you.
    And it's hugely customizable.
    There is no way to cover all the different possible situations.
    Sorry, but no.
    Posted in: Tutorials
  • 1

    posted a message on [Creating Mods] Minecraft Forge [28/1/12]
    Please visit my main modding topic to vote for what tutorial I should make next.
    Posted in: Tutorials
  • 31

    posted a message on [Creating Mods] Methuselah96's Tutorials [8/2/12]
    Table of contents:
    ModLoader Tutorials

    Minecraft Forge Tutorials

    AudioMod Tutorials - Coming Soon!

    ShocahPI Tutorials - Coming Soon!

    PlayerAPI Tutorials - Coming Soon!

    ModLoaderMP Tutorials - Coming Soon!

    This post is the home of my tutorials. This is where you vote for what tutorial you would like to see next. You can also see tutorials for stuff that doesn't pertain to a particular API such as tree generation.

    Table Of Contents:
    Creating A New GUI
    Tree Generation - Coming Soon!

    Creating A New GUI


    In this tutorial I’m going to teach you how to make a new GUI.

    The first thing that you should know is that GUI stands for Graphical User Interface. Basically what that means is that there’s some sort of pictures/textures with which the user can interact by use of a mouse. In Minecraft, there are some examples of GUIs namely, the main page, the options page, etc. and also includes things such as the furnace page and the workbench page. This tutorial will be split into two parts, the first part being more geared towards GUIs which involve things like buttons, sliders, and textboxes for making your own options page or whatever you would like, and the other part focusing on GUIs which are in game such as workbenches as furnaces. Let’s get started!

    The examples for this part of the tutorial are going to come from my new mod entitled the Dungeon Mod which enables the user to choose different options for dungeons. The things we’re going to do include making a button, making a text field, writing things, making a slider, and other cool stuff.

    The first thing we are going to have to do is make a new screen with which we can work off of. We are going to call it GuiTutorial for sake of this tutorial. It’s going to extend GuiScreen. Here’s what it should look like:

    package net.minecraft.src;
    
    public class GuiTutorial extends GuiScreen
    {
        public GuiTutorial()
        {
    
        }
    }


    The first thing we’re going to do is make it have the default background with a title at the top. To do this we’re going to add this method:

        public void drawScreen(int i, int j, float f)
        {
        	  drawDefaultBackground();
            drawCenteredString(fontRenderer, "Tutorial Title", width / 2, 20, 0xffffff);
            super.drawScreen(i, j, f);
        }


    Let me explain to you what all of this does. First of all, drawDefaultBackground(); basically just clears the screen so that it is totally blank except for the default background. Next drawCenteredString just writes a centered String at the point you specify. The first parameter it takes is fontRenderer which shouldn’t be changed. The second parameter is what the text says. For tutorial purposes our just says Tutorial Title. The next parameter is where the middle of your text is horizontally. For example, width / 2 makes it so that the text is centered in the middle of the screen. If I did width / 4 it would be centered on the left side of the screen. The next parameter is where the text is vertically. In our example, the text is 20 pixels down from the top of the screen. Lastly, 0xffffff is what color the text is. I’m not going to explain hex colors to you but you can go to this page for a list of colors and the column you’re looking for is hex triplet, you just have to replace the # with 0x: http://en.wikipedia.org/wiki/List_of_colors So for example, red would be 0xff0000.Lastly super.drawScreen just does the things it would have done automatically and should always be included. Now, if we opened our gui it would show a blank screen with just a title on it. Now our GuiTutorial would look like this:

    package net.minecraft.src;
    
    public class GuiTutorial extends GuiScreen
    {
        public GuiTutorial()
        {
        	
        }
    
        public void drawScreen(int i, int j, float f)
        {
        	drawDefaultBackground();
            drawCenteredString(fontRenderer, "Tutorial Title", width / 2, 20, 0xffffff);
            super.drawScreen(i, j, f);
        }
    }


    We’re going to people able to be able to see it soon, but first I’m going to make a done button so you can get out of the screen when you’re done viewing it.

    The first thing we have to add is a way to figure out what screen we just came from. To do that we need to add something to our constructor and a new variable so it looks like this:

        private GuiScreen parentGuiScreen;
    
        public GuiTutorial(GuiScreen guiscreen)
        {
            parentGuiScreen = guiscreen;
        } 


    This just adds a parameter that requires it to show what screen it just came from. Now let’s make the actual button:

        public void initGui()
        {
            controlList.add(new GuiButton(0, width / 2 - 100, height / 6 + 168, "Done"));
        }


    0 is the id number of the button, so each button is going to have a different id number. width/2-100 is where the button is located horizontally on the screen. So that means that the left side of the button will be 100 pixels to the left of the center of the screen which is perfectly centered because the button is 200 pixels wide. The height/6+168 is where the button is placed vertically. Finally, “Done” is what the button says.

    Lastly, we have to add what happens when the button is pressed. To do that we add:

        public void actionPerformed(GuiButton guibutton)
        {
            if (!guibutton.enabled)
            {
                return;
            }
            if (guibutton.id == 0)
            {
                mc.displayGuiScreen(parentGuiScreen);
            }
        }


    This basically says that button with id of 0 is enabled then it will display the parent screen.

    Now, what we have to do is be able to do is get to this gui screen. For the purposes of this tutorial I’m going to get their from the gui options page. This requires that we edit GuiOptions.java. Because this is just for testing purpose I will show you what you need to edit in initGui() to make it look nice:

            controlList.add(new GuiButton(101, width / 2 - 155, (height / 6 + 96) - 6, 150, 20, stringtranslate.translateKey("options.video")));
            controlList.add(new GuiButton(100, width / 2 - 155, (height / 6 + 120) - 6, 150, 20, stringtranslate.translateKey("options.controls")));
            controlList.add(new GuiButton(102, width / 2 + 5, (height / 6 + 96) - 6, 150, 20, stringtranslate.translateKey("options.language")));
            controlList.add(new GuiButton(103, width / 2 + 5, (height / 6 + 120) - 6, 150, 20, "Tutorial"));


    The first three are just changing it so it looks nice, but the last one I added so I want to talk about. Everything’s the same until you get to 150 and 20. Just as a note, you can change the size of the button by putting these two numbers in. 150 is the width, and 20 is the height, in pixels. Now we’re still in GuiOptions and we have to add something to actionPerfromed to make it actually go to the page. Just add this right after the if statement for 102:

            if (par1GuiButton.id == 103)
            {
                mc.gameSettings.saveOptions();
                mc.displayGuiScreen(new GuiTutorial(this));
            }


    This basically just says if the id is 103, which it is, then save the options that we’ve been working on in this page and show our new screen GuiTutorial with the parent screen being this.

    Now if we run Minecraft and click on the options page we should see a new button for Tutorial which should go to a page that just has a title and a done button. If we click on the done button it should go back to the options page.

    In process of writing…
    Posted in: Tutorials
  • 1

    posted a message on [Creating Mods] ModLoader [28/1/12]
    Yes, I can make a new dimension tutorial :smile.gif:
    I will make it as soon as I can.
    Posted in: Tutorials
  • 1

    posted a message on [1.13.2] Dynamic Lights - portable and moving lightsources
    Quote from Inofficially

    I was about to install the non-mcpatcher version but in includes the kz.class which conflicts with my seasons mod.


    i'll make a patch for you right away

    Quote from phelandisturbed

    Ok, so, I got my crash log... I crash upon placing a torch.

    Mods loaded: 30
    ModLoader 1.1
    mod_ModLoaderMp 1.0.0
    mod_NotEnoughItems 1.1.0
    mod_CraftGuide 1.4.0
    mod_HangableMaps 1.1
    mod_IDResolver 1.1 - Update 0
    mod_AdvancedWinterMode 1.1.0 r1
    mod_ReiMinimap v3.0_01 [1.1]
    mod_BuildCraftCore 2.2.12
    mod_BuildCraftBuilders 2.2.12
    mod_BuildCraftEnergy 2.2.12
    mod_BuildCraftFactory 2.2.12
    mod_BuildCraftTransport 2.2.12
    mod_Clevercraft 1.6.1
    mod_ItemDescriptions 1.2
    mod_Fireplace V1.8.4
    mod_IC2 v1.62
    mod_Fossil Mod FOSSIL / ARCHEOLOGY v5.6 Patch-2 Engaged
    mod_Zeppelin 1.1.0.0.24
    mod_PlasticCraft v3.0.1 (for 1.1.0)
    mod_RedPowerArray 2.0pr4d
    mod_RedPowerCore 2.0pr4d
    mod_RedPowerLighting 2.0pr4d
    mod_RedPowerLogic 2.0pr4d
    mod_RedPowerMachine 2.0pr4d
    mod_RedPowerWiring 2.0pr4d
    mod_RedPowerWorld 2.0pr4d
    mod_Squirrel 1.1.0
    mod_Timber 1.1.0
    mod_XieClient Xie's Mod SMP for MC1.1 (Jan23)

    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 e7a4bd3 --------
    Generated 1/24/12 4:07 PM

    Minecraft: Minecraft 1.1
    OS: Windows 7 (amd64) version 6.1
    Java: 1.7.0_01, Oracle Corporation
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    LWJGL: 2.4.2
    OpenGL: GeForce 9200/PCI/SSE2 version 3.3.0, NVIDIA Corporation

    java.lang.NoSuchMethodError: vq.isBlockSolidOnSide(IIII)Z
    at ow.e(BlockTorch.java:48)
    at oe.d(Block.java:623)
    at vq.a(SourceFile:2324)
    at tw.a(SourceFile:41)
    at yq.a(SourceFile:88)
    at ade.a(PlayerControllerCreative.java:72)
    at net.minecraft.client.Minecraft.c(SourceFile:1220)
    at net.minecraft.client.Minecraft.k(SourceFile:1545)
    at net.minecraft.client.Minecraft.x(SourceFile:709)
    at net.minecraft.client.Minecraft.run(SourceFile:662)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 81cb742f ----------


    Anyone? Please? xD


    EDIT: This might help... Using optifine multi core version, and the unofficial dynamic lights for non mcpatcher


    I'll make a patch for you too...
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.