Hey. I'm trying to make a mod, but I have no idea what to do next. the mod is a sun block, which is very very bright. you craft it like this:
D T D D=TNT
T G T T=Torch
D T D G=Glowstone
I've been following This tutorial.
http://www.minecraftforum.net/topic/1161758-modloader125-modding-tutorials-by-darkthynder-and-makerz739-dawn/
but I'm having an issue in the code. what do I do? I have no idea where to texture it. can anyone help? If anyone sees anything else wrong with it, please let me know. thanks!
here's my code for:
Mod_ModNameHere.java
package net.minecraft.src;
public class mod_Sunblocks extends BaseMod
{
public static final Block Namehere = new BlockSunblock(123, 0).setBlockName("Sunblock").setHardness(3F).setResistance(5F).setLightValue(20F);
public void load()
{
Namehere.blockIndexInTexture = ModLoader.addOverride("/sunblock.png", "/texture.png");
ModLoader.registerBlock(Namehere);
ModLoader.addName(Namehere, "In-Game Name Here");
ModLoader.addRecipe(new ItemStack(Namehere, 1), new Object [] {"#", Character.valueOf('#'), Block.sand});
}
public String getVersion()
{
return "1.2.5";
}
}
and here is BlockSunblock.java
package net.minecraft.src;
import java.util.Random;
public class BlockSunblock extends Block
{
public BlockSunblock(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_Sunblocks.Namehere.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
Thanks!
D T D D=TNT
T G T T=Torch
D T D G=Glowstone
I've been following This tutorial.
http://www.minecraftforum.net/topic/1161758-modloader125-modding-tutorials-by-darkthynder-and-makerz739-dawn/
but I'm having an issue in the code. what do I do? I have no idea where to texture it. can anyone help? If anyone sees anything else wrong with it, please let me know. thanks!
here's my code for:
Mod_ModNameHere.java
package net.minecraft.src;
public class mod_Sunblocks extends BaseMod
{
public static final Block Namehere = new BlockSunblock(123, 0).setBlockName("Sunblock").setHardness(3F).setResistance(5F).setLightValue(20F);
public void load()
{
Namehere.blockIndexInTexture = ModLoader.addOverride("/sunblock.png", "/texture.png");
ModLoader.registerBlock(Namehere);
ModLoader.addName(Namehere, "In-Game Name Here");
ModLoader.addRecipe(new ItemStack(Namehere, 1), new Object [] {"#", Character.valueOf('#'), Block.sand});
}
public String getVersion()
{
return "1.2.5";
}
}
and here is BlockSunblock.java
package net.minecraft.src;
import java.util.Random;
public class BlockSunblock extends Block
{
public BlockSunblock(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_Sunblocks.Namehere.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
Thanks!
