[answered]What is wrong with my code?
4 posters
MC Modding :: Help :: Help
Page 1 of 1
[answered]What is wrong with my code?
mod_SlimyStick
mod_StickyStickBlock
mod_GlowBlock
ItemSlimyStick
BlockStickyStickBlock
BlockGlowBlock
Plz. tell me and/or fix the code.
- 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!
thedirtyassassin- Member
- Posts : 28
Join date : 2011-10-30
Location : In your dreams!
Re: [answered]What is wrong with my code?
.... Go into your mcp folder and open the logs folder in there it should say the error
Re: [answered]What is wrong with my code?
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?
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!
Re: [answered]What is wrong with my code?
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!
Re: [answered]What is wrong with my code?
Fixed it for him
ikke009- Member
- Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands
Re: [answered]What is wrong with my code?
i <3 ikke009
thedirtyassassin- Member
- Posts : 28
Join date : 2011-10-30
Location : In your dreams!
Similar topics
» [Answered] Armor code gives error
» [Answered] ore mining help
» [Answered] tree
» [Answered]Reobfuscate
» [answered] What do i do when the coding is done?
» [Answered] ore mining help
» [Answered] tree
» [Answered]Reobfuscate
» [answered] What do i do when the coding is done?
MC Modding :: Help :: Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum