• 0

    posted a message on Keybinding help, please! :3
    Quote from caagr98

    If you're using ModLoader, you can use this code:
    package net.minecraft.src;
    
    import org.lwjgl.input.Keyboard;
    
    import net.minecraft.client.Minecraft;
    
    public class mod_SinglePlayerChat extends BaseMod {
    	
    	
    	@Override
    	public String getVersion() {
    		return "";
    	}
    	@Override
    	public void load() {
    		ModLoader.registerKey(this, ModLoader.getMinecraftInstance().gameSettings.keyBindChat, false);
    	}
    
    	public void keyboardEvent(KeyBinding key)
    	{
    		if(key == ModLoader.getMinecraftInstance().gameSettings.keyBindChat) {
    			ModLoader.getMinecraftInstance().displayGuiScreen(new GuiChat());
    		}
    	}
    }
    It opens the chat GUI if you press the chat key.


    What would i have to change to make it so that i can type, for example /time day or /time set 0 or even just press a button to make it day? Thanks in advance. -noah
    Posted in: Modification Development
  • 0

    posted a message on MCP Problems.
    So, i managed to get ride of all the errors, then when i try to run it (runclient) i get this crash report.

    Any idea's?

    Mods loaded: 1
    ModLoader 1.1
    
          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 9c4f49b2 --------
    Generated 1/16/12 5:34 PM
    
    Minecraft: Minecraft 1.1
    OS: Mac OS X (x86_64) version 10.6.8
    Java: 1.6.0_29, Apple Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
    LWJGL: 2.4.2
    OpenGL: NVIDIA GeForce 320M OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
    
    java.lang.InstantiationException
    	at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at java.lang.Class.newInstance0(Class.java:355)
    	at java.lang.Class.newInstance(Class.java:308)
    	at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
    	at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
    	at net.minecraft.src.ModLoader.init(ModLoader.java:708)
    	at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
    	at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
    	at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
    	at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:620)
    	at java.lang.Thread.run(Thread.java:680)
    --- END ERROR REPORT 6012204d ----------
    Posted in: Modification Development
  • 0

    posted a message on MCP Problems.
    Quote from ARavinMadMonkey

    Get rid of the abstract in public abstract class mod_Block extends BaseMod

    and if you're using eclipse add the unimplemented methods, If you're not using eclipse... Use eclipse.

    When i take out abstract i get these too errors.



    == ERRORS FOUND ==

    src/minecraft/net/minecraft/src/mod_Block.java:7: net.minecraft.src.NoahBlock is abstract; cannot be instantiated
    new NoahBlock(123,0).setHardness(0.0F).setResistance(1.0F).setLightValue(1.0F).setBlockName("GlowBloc");
    ^

    src/minecraft/net/minecraft/src/mod_Block.java:4: net.minecraft.src.mod_Block is not abstract and does not override abstract method load() in net.minecraft.src.BaseMod
    public class mod_Block extends BaseMod
    ^
    Posted in: Modification Development
  • 0

    posted a message on MCP Problems.
    Hello, i was coding recently and i finished and decided to recompile, and when i did i got this error

    ERROR


    == ERRORS FOUND ==

    src/minecraft/net/minecraft/src/mod_Block.java:7: net.minecraft.src.NoahBlock is abstract; cannot be instantiated
    new NoahBlock(123,0).setHardness(0.0F).setResistance(5.0F).setLightValue(1.0F);
    ^

    Code
    package net.minecraft.src;
    import java.util.Random;
    
    public abstract class mod_Block extends BaseMod
    {
    	public static final Block noahBlock =
                  new NoahBlock(123,0).setHardness(0.0F).setResistance(5.0F).setLightValue(1.0F);
    
    	public mod_Block()
    	{	
    		ModLoader.RegisterBlock(noahBlock);
    		noahBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/noahBlock.png");
    		ModLoader.AddName(noahBlock, "Glow Lamp");
    		ModLoader.AddRecipe(new ItemStack(noahBlock, 2), new Object[] {
    			"XXX","X*X","XXX", Character.valueOf('*'), Block.torchWood, Character.valueOf('X'), Block.glass
    		});
    	}
    
    	public String Version()
    	{
    		return "3.14159265";
    	}
    }

    Thanks anyway guys! Btw, im not planning on releasing this, its really just for my single player.
    Posted in: Modification Development
  • 0

    posted a message on TooManyItems, the inventory editor and more (1.8 Forge is here!)
    Hey, is anyone else having an issue like this, every time i try to spawn an item in multiplayer (Bukkit), even if im OP, and run the server myself, it just says it cant put that specific enchantment on it, the only thing i can spawn is armour and it gives it "Protection IV". what can i do to fix it?
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.0.0] AETHER - V1.04_01 Launch Bug Fixed - BUG FIXES - Crystal Trees, Enchanted Grass, White Apples!
    Still broken with TooManyItems, and with Zombes modpack, only incompatibilities i'v found so far.
    Posted in: Minecraft Mods
  • 0

    posted a message on Block Making
    Code from both the files

    mod_BlockQuick

     
    
    package net.minecraft.src;
    import java.util.Random;
    
    public abstract class mod_BlockQuick extends BaseMod
    {
    
    	public static final Block blockQuick =
                  new blockQuick(123,0).setHardness(2.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("SandSlow");
    
    	public void load()
    	{	
    		
    		ModLoader.RegisterBlock(blockQuick);
    		blockQuick.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/QuickSand.png");
    		ModLoader.AddName(blockQuick, "Quick Sand");
    		ModLoader.AddRecipe(new ItemStack(blockQuick, 1), new Object[] {
    			"*X", Character.valueOf('X'), Block.dirt, Character.valueOf('*'), Item.stick
    		});
    	}
    
    	public String Version()
    	{
    		return "V1.0.0";
    	}
    }

    BlockQuick

    package net.minecraft.src;
    import java.util.Random;
    
    public abstract class BlockQuick extends Block
    {
    	public BlockQuick(int i, int j)
    	{
            super(i, j, Material.sand);
        }
    
        public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
        {
            float f = 0.125F;
            return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
        }
    
        public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
        {
            entity.motionX *= 0.40000000000000002D;
            entity.motionZ *= 0.40000000000000002D;
        }
    	public int idDropped(int i, Random random)
    	{
    		return mod_BlockQuick.blockQuick.blockID;
    	}
    	public int quantityDropped(Random random)
        	{
                     return 1;
        	}
        public String TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
        {
            return "mob.ghast.moan";
        }
        
    }

    Thanks!
    Posted in: Modification Development
  • 0

    posted a message on Block Making
    full error report!
    Mods loaded: 1
    ModLoader 1.0.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 141ccf11 --------
    Generated 12/21/11 6:41 PM

    Minecraft: Minecraft 1.0.0
    OS: Mac OS X (x86_64) version 10.6.8
    Java: 1.6.0_29, Apple Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
    LWJGL: 2.4.2
    OpenGL: NVIDIA GeForce 320M OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation

    java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at net.minecraft.src.ModLoader.addMod(ModLoader.java:265)
    at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
    at net.minecraft.src.ModLoader.init(ModLoader.java:733)
    at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
    at net.minecraft.client.Minecraft.run(Minecraft.java:613)
    at java.lang.Thread.run(Thread.java:680)
    --- END ERROR REPORT 9bd2cf5d ----------
    Posted in: Modification Development
  • 0

    posted a message on Minecraft Modding Error Thread! Post ALL your errors and questions here!
    Error report
     Mods loaded: 1
    ModLoader 1.0.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 141ccf11 --------
    Generated 12/19/11 10:20 PM
    
    Minecraft: Minecraft 1.0.0
    OS: Mac OS X (x86_64) version 10.6.8
    Java: 1.6.0_29, Apple Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
    LWJGL: 2.4.2
    OpenGL: NVIDIA GeForce 320M OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
    
    java.lang.InstantiationException
    	at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at java.lang.Class.newInstance0(Class.java:355)
    	at java.lang.Class.newInstance(Class.java:308)
    	at net.minecraft.src.ModLoader.addMod(ModLoader.java:265)
    	at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
    	at net.minecraft.src.ModLoader.init(ModLoader.java:733)
    	at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
    	at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
    	at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
    	at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:613)
    	at java.lang.Thread.run(Thread.java:680)
    --- END ERROR REPORT 45d3fc68 ----------

    Code for mod_QuickBlock

    package net.minecraft.src;
    import java.util.Random;
    
    public abstract class mod_QuickBlock extends BaseMod
    {
    
    	public static final Block quickBlock =
                  new QuickBlock(123,0).setHardness(2.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("SandSlow");
    
    	public mod_QuickBlock()
    	{	
    		
    		ModLoader.RegisterBlock(quickBlock);
    		quickBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/QuickSand.png");
    		ModLoader.AddName(quickBlock, "Quick Sand");
    		ModLoader.AddRecipe(new ItemStack(quickBlock, 1), new Object[] {
    			"X*", Character.valueOf('*'), Block.dirt, Character.valueOf('X'), Item.stick
    		});
    	}
    
    	public String Version()
    	{
    		return "3.14159265";
    	}
    }

    Code for QuickBlock

    package net.minecraft.src;
    import java.util.Random;
    
    public class QuickBlock extends Block
    {
    	public QuickBlock(int i, int j)
    	{
            super(i, j, Material.sand);
        }
    
        public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
        {
            float f = 0.125F;
            return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
        }
    
        public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
        {
            entity.motionX *= 0.40000000000000002D;
            entity.motionZ *= 0.40000000000000002D;
        }
    	public int idDropped(int i, Random random)
    	{
    		return mod_QuickBlock.quickBlock.blockID;
    	}
    	public int quantityDropped(Random random)
        	{
                     return 1;
        	}
        public String TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
        {
            return "mob.ghast.moan";
        }
        
    }
    Posted in: Modification Development
  • 0

    posted a message on Block Making
    Hey, im trying to add a block using MCP, it says theres no errors then when i go to startclient this comes up
    "java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)"
    Anyone know how to fix that? Thanks :smile.gif:
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] ThaumCraft 2.1.6d (OUTDATED)
    Thought it said Thu'um Craft. Got way to excited.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.3.2] Apple Tree Mod v1.6
    themtoomoders did this a long time ago, i coded it for him, it really is not that hard.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.8.1] Uranium REFURBISHED
    Pics, a fixed title and a download link. Please.
    Posted in: Modification Development
  • 0

    posted a message on [TOOL] Cyborg's Tools - MCNostalgia 1.0.4
    is there anyway for this to work on servers? :biggrin.gif:
    Posted in: Minecraft Tools
  • 0

    posted a message on [1.8.1] Survival+
    HUGE new update, added modloader compatibility and a couple of items.
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.