MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[answered]What is wrong with my code?

4 posters

MC Modding :: Help :: Help

Go down

[answered]What is wrong with my code? Empty [answered]What is wrong with my code?

Post by thedirtyassassin Mon Oct 31, 2011 9:27 pm

mod_SlimyStick
Code:
package net.minecraft.src;

public class mod_SlimyStick extends BaseMod
{
  public static final Item SlimyStick = new Item(3999).setItemName("SlimyStick");

public mod_SlimyStick()
{
  SlimyStick.iconIndex = ModLoader.addOverride("/My folder!/SlimyStick.png", "/SlimyStick.png");
  ModLoader.AddName(SlimyStick, "SlimyStick");
  ModLoader.AddRecipe(new ItemStack(SlimyStick, 1), new Object[] {
    "X", "P", Character.valueOf('P'), Item.stick, Character.valueOf('X'), Item.slimeBall,
    });
}

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

mod_StickyStickBlock
Code:
package net.minecraft.src;

public class mod_StickyStickBlock extends BaseMod
{
  public static Block StickyStickBlock = new BlockStickyStickBlock(199, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(0.1F).setBlockName("StickyStickBlock");
 
  public String Version()
  {
      return "1.8.1";
  }
 
  public mod_StickyStickBlock()
  {
      ModLoader.RegisterBlock(StickyStickBlock);
      StickyStickBlock.blockIndexInTexture = ModLoader.addOverride("/My folder!/StickyStickBlock.png", "/StickyStickBlock.png");
      ModLoader.AddName(StickyStickBlock, "StickyStickBlock");
      ModLoader.AddRecipe(new ItemStack(StickyStickBlock, 2), new Object[] {
      "###", "XXX", "###", Character.valueOf('#'), Block.planks, Character.valueOf('X'), Item.slimeBall
      });
  }
}


mod_GlowBlock
Code:
package net.minecraft.src;

public class mod_GlowBlock extends BaseMod
{
  public static Block GlowBlock = new BlockGlowBlock(198, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(1.0F).setBlockName("GlowBlock");
 
  public String Version()
  {
      return "1.8.1";
  }
 
  public mod_GlowBlock()
  {
      ModLoader.RegisterBlock(GlowBlock);
      GlowBlock.blockIndexInTexture = ModLoader.addOverride("/My folder!/GlowBlock.png", "/GlowBlock.png");
      ModLoader.AddName(GlowBlock, "GlowBlock");
      ModLoader.AddRecipe(new ItemStack(GlowBlock, 10), new Object[] {
      "###", "XXX", "###", Character.valueOf('#'), Block.glowStone, Character.valueOf('X'), Block.glass
      });
  }
}




ItemSlimyStick
Code:
package net.minecraft.src;

import java.util.Random;

public class ItemSlimyStick extends Item
{

   public ItemSlimyStick (int i)
   {
      super(i);
      maxStackSize = 16;
   }
}

BlockStickyStickBlock
Code:
package net.minecraft.src;

import java.util.Random;

public class BlockStickyStickBlock extends Block
{

    public BlockStickyStickBlock(int i, int j)
    {
        super(i, j, Material.ground);      
    }
    public int idDropped(int i, Random random)
    {
      return mod_StickyStickBlock.StickyStickBlock.blockID;
    }
    public int quantityDropped(Random random)
    {
            return 1;
    }
}

BlockGlowBlock
Code:
package net.minecraft.src;

import java.util.Random;

public class BlockGlowBlock extends Block
{

    public BlockGlowBlock(int i, int j)
    {
        super(i, j, Material.rock);      
    }
    public int idDropped(int i, Random random)
    {
      return mod_GlowBlock.GlowBlock.blockID;
    }
    public int quantityDropped(Random random)
    {
            return 1;
    }
}


Plz. tell me and/or fix the code.



Last edited by thedirtyassassin on Tue Nov 01, 2011 3:05 pm; edited 1 time in total

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by lcass Mon Oct 31, 2011 10:39 pm

I need the error look in the logs folder

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by thedirtyassassin Mon Oct 31, 2011 10:49 pm

logs ?

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by lcass Mon Oct 31, 2011 10:50 pm

.... Go into your mcp folder and open the logs folder in there it should say the error

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by thedirtyassassin Mon Oct 31, 2011 10:58 pm

it says : client_deob.log
client_exc.log
client_reob.log
client_rg.log
mcp.log
mcprr.log


what .log file is it that you are looking for?

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by lcass Mon Oct 31, 2011 11:00 pm

Well when did you get the error

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by Strengthowns Tue Nov 01, 2011 12:43 am

Wrong format. Post your error log from the recompile.bat.
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by lcass Tue Nov 01, 2011 12:51 am

I thought you were gone for a week

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by Strengthowns Tue Nov 01, 2011 3:07 am

I am going to be mostly gone. I will be on sometimes.
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by thedirtyassassin Tue Nov 01, 2011 11:39 am

There is no errors wen i recompile but still these things are not in my minecraft when i have done reobfuscateing and all that.

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by ikke009 Tue Nov 01, 2011 2:18 pm

Fixed it for him
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by thedirtyassassin Tue Nov 01, 2011 3:05 pm

i <3 ikke009

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered]What is wrong with my code? Empty Re: [answered]What is wrong with my code?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum