I have a Problem.
My Mod works but when i want to play in the normal Minecraft where i have to put the pictures?
I use Eclipsee to start it and the pictures are here: \eclipse\Client\bin\mods
package net.minecraft.src;
public class mod_Cobalt extends BaseMod
{
public static final Block Cobalt = new BlockOre(137, 0).setBlockName("Cobalt").setHardness(15F).setResistance(3F).setLightValue(0F);
public static final Item CobaltIngot = new Item(138).setItemName("CobaltIngot");
public static final Item CobaltSword = new Item(139).setItemName("CobaltSword");
public void load()
{
Cobalt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/cobalt.png");
ModLoader.registerBlock(Cobalt);
ModLoader.addName(Cobalt, "Cobalt Ore");
CobaltIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/CobaltIngot.png");
ModLoader.addName(CobaltIngot, "CobaltIngot");
ModLoader.addSmelting(Cobalt.blockID, new ItemStack(CobaltIngot, 1), 2.0F);
CobaltSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/sword.png");
ModLoader.addName(CobaltSword, "CobaltSword");
ModLoader.addRecipe(new ItemStack(CobaltSword, 1), new Object [] {" # ", " # ", " % ", Character.valueOf('#'), CobaltIngot, Character.valueOf('%'), Item.stick});
}
public String getVersion()
{
return "1.3.1";
}
}
And i want that only diamond can harvest the Cobalt, but where can i change it?
Help
Sorry for my bad english
You put the textures in a folder called "mods". The "mods" folder then goes inside the minecraft.jar or the zip of your mod in the ModLoader mods folder in .minecraft.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Just use Ctrl+F in Block and search for "stair" without the quotes. You will find what you're looking for.
You put the textures in a folder called "mods". The "mods" folder then goes inside the minecraft.jar or the zip of your mod in the ModLoader mods folder in .minecraft.
I put it in the minecraft.jar with the other 3 .class but the mod doesnt load.
ingame there are no items from my mod.
I put it in the minecraft.jar with the other 3 .class but the mod doesnt load.
ingame there are no items from my mod.
Did you install ModLoader? Sounds like a stupid question but just stamping out possibilities.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hi Techguy,
I found the way to make items and blocks go into the creative inventory. In the BlockNAMEHERE under public BlockNAMEHERE(par1,par2) you put "this.setCreativeTab(CreativeTabs.creativetabnamehere) extremely easy
For items it's different. Same place but worded differently;
this.setTabToDisplayOn(CreativeTabs.creattivetabnamehere)
I worked with crop for hours, having this pink problem :
I tried to modify your code to fix this problem ( copy from the BlockCrop to fit in )
And i'm pretty sure that my images are in places.
Sorry about my English. I'm not a native speaker.
ItemDirtseed.java
package net.minecraft.src;
public class ItemDirtseed extends Item
{
/** The type of block this seed turns into (wheat or pumpkin stems for instance)*/
private int blockType;
/** BlockID of the block the seeds can be planted on. */
private int soilBlockID;
public ItemDirtseed(int i, int j, int k)
{
super(i);
blockType = j;
soilBlockID = k;
this.setTabToDisplayOn(CreativeTabs.tabMaterials);
}
/**
* Callback for item usage. If the item does something special on right clicking, he will have one of those. Return
* True if something happen and false if it don't. This is for ITEMS, not BLOCKS !
*/
public boolean tryPlaceIntoWorld(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
{
if (par7 != 1)
{
return false;
}
else if (par2EntityPlayer.canPlayerEdit(par4, par5, par6) && par2EntityPlayer.canPlayerEdit(par4, par5 + 1, par6))
{
int var11 = par3World.getBlockId(par4, par5, par6);
if (var11 == this.soilBlockID && par3World.isAirBlock(par4, par5 + 1, par6))
{
par3World.setBlockWithNotify(par4, par5 + 1, par6, this.blockType);
--par1ItemStack.stackSize;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
}
BlockDirtcrop
package net.minecraft.src;
import java.util.Random;
public class BlockDirtcrop extends BlockFlower
{
protected BlockDirtcrop(int par1, int par2)
{
super(par1, par2);
this.blockIndexInTexture = par2;
this.setTickRandomly(true);
float var3 = 0.5F;
this.setBlockBounds(0.5F - var3, 0.0F, 0.5F - var3, 0.5F + var3, 0.25F, 0.5F + var3);
this.setCreativeTab((CreativeTabs)null);
}
/**
* Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of
* blockID passed in. Args: blockID
*/
protected boolean canThisPlantGrowOnThisBlockID(int par1)
{
return par1 == Block.tilledField.blockID;
}
/**
* Ticks the block if it's been scheduled
*/
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
super.updateTick(par1World, par2, par3, par4, par5Random);
if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
int var6 = par1World.getBlockMetadata(par2, par3, par4);
if (var6 < 7)
{
float var7 = this.getGrowthRate(par1World, par2, par3, par4);
if (par5Random.nextInt((int)(25.0F / var7) + 1) == 0)
{
++var6;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
}
}
}
}
/**
* Apply bonemeal to the Dirtcrop.
*/
public void fertilize(World par1World, int par2, int par3, int par4)
{
par1World.setBlockMetadataWithNotify(par2, par3, par4, 7);
}
/**
* Gets the growth rate for the crop. Setup to encourage rows by halving growth rate if there is diagonals, Dirtcrop on
* different sides that aren't opposing, and by adding growth for every crop next to this one (and for crop below
* this one). Args: x, y, z
*/
private float getGrowthRate(World par1World, int par2, int par3, int par4)
{
float var5 = 1.0F;
int var6 = par1World.getBlockId(par2, par3, par4 - 1);
int var7 = par1World.getBlockId(par2, par3, par4 + 1);
int var8 = par1World.getBlockId(par2 - 1, par3, par4);
int var9 = par1World.getBlockId(par2 + 1, par3, par4);
int var10 = par1World.getBlockId(par2 - 1, par3, par4 - 1);
int var11 = par1World.getBlockId(par2 + 1, par3, par4 - 1);
int var12 = par1World.getBlockId(par2 + 1, par3, par4 + 1);
int var13 = par1World.getBlockId(par2 - 1, par3, par4 + 1);
boolean var14 = var8 == this.blockID || var9 == this.blockID;
boolean var15 = var6 == this.blockID || var7 == this.blockID;
boolean var16 = var10 == this.blockID || var11 == this.blockID || var12 == this.blockID || var13 == this.blockID;
for (int var17 = par2 - 1; var17 <= par2 + 1; ++var17)
{
for (int var18 = par4 - 1; var18 <= par4 + 1; ++var18)
{
int var19 = par1World.getBlockId(var17, par3 - 1, var18);
float var20 = 0.0F;
if (var19 == Block.tilledField.blockID)
{
var20 = 1.0F;
if (par1World.getBlockMetadata(var17, par3 - 1, var18) > 0)
{
var20 = 3.0F;
}
}
if (var17 != par2 || var18 != par4)
{
var20 /= 4.0F;
}
var5 += var20;
}
}
if (var16 || var14 && var15)
{
var5 /= 2.0F;
}
return var5;
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
if(j == 0)
{
return blockIndexInTexture;
}
if(j == 1)
{
return mod_dirtcrop.cropStageOne;
}
if(j == 2)
{
return mod_dirtcrop.cropStageTwo;
}
if(j == 3)
{
return mod_dirtcrop.cropStageThree;
}
if(j == 4)
{
return mod_dirtcrop.cropStageFour;
}
if(j == 5)
{
return mod_dirtcrop.cropStageFive;
}
if(j == 6)
{
return mod_dirtcrop.cropStageSix;
}
if(j == 7)
{
return mod_dirtcrop.cropStageSeven;
}
if(j == 8)
{
return mod_dirtcrop.cropStageEight;
}
return j;
}
/**
* The type of render function that is called for this block
*/
public int getRenderType()
{
return 6;
}
/**
* Drops the block items with a specified chance of dropping the specified items
*/
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
{
super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, 0);
if (!par1World.isRemote)
{
int var8 = 3 + par7;
for (int var9 = 0; var9 < var8; ++var9)
{
if (par1World.rand.nextInt(15) <= par5)
{
float var10 = 0.7F;
float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
EntityItem var14 = new EntityItem(par1World, (double)((float)par2 + var11), (double)((float)par3 + var12), (double)((float)par4 + var13), new ItemStack(mod_dirtcrop.dirtseed));
var14.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var14);
}
}
}
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return par1 == 7 ? mod_Sean.hd1.blockID : -1;
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random par1Random)
{
return 3;
}
/**
* only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
*/
public int idPicked(World par1World, int par2, int par3, int par4)
{
return mod_dirtcrop.dirtseed.shiftedIndex;
}
}
mod_dirtcrop
package net.minecraft.src;
public class mod_dirtcrop extends BaseMod
{
//Just a standard block.
public static final Block dirtcrop = new BlockDirtcrop(210, 0).setBlockName("dirtcrop");
//This is a fairly standard item but it has two new arguments. The first is the block it plants, in this case is our new crop "cropNameHere". The second is the block that is required to be right clicked on to plant the seeds.
//We are using tilled field/dirt for this crop but you can change it to whatever you like. Remember to change it in the block class as well.
public static final Item dirtseed = new ItemDirtseed(2500, dirtcrop.blockID, Block.tilledField.blockID).setItemName("dirtseed");
//These static ints are the textures of the crop in its various stages of growth.
public static int cropStageOne = ModLoader.addOverride("/terrain.png", "crop1.png");
public static int cropStageTwo = ModLoader.addOverride("/terrain.png", "crop2.png");
public static int cropStageThree = ModLoader.addOverride("/terrain.png", "crop3.png");
public static int cropStageFour = ModLoader.addOverride("/terrain.png", "crop4.png");
public static int cropStageFive = ModLoader.addOverride("/terrain.png", "crop5.png");
public static int cropStageSix = ModLoader.addOverride("/terrain.png", "crop6.png");
public static int cropStageSeven = ModLoader.addOverride("/terrain.png", "crop7.png");
public static int cropStageEight = ModLoader.addOverride("/terrain.png", "crop8.png");
public void load()
{
dirtcrop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "crop.png");
ModLoader.registerBlock(dirtcrop);
ModLoader.addName(dirtcrop, "Nutrition Absorption");
dirtseed.iconIndex = ModLoader.addOverride("/gui/items.png", "seed.png");
ModLoader.addName(dirtseed, "Absorption Seeds");
ModLoader.addRecipe(new ItemStack(dirtseed), new Object [] {
"N", "S",
'N', mod_Sean.SeanFood,
'S', Item.seeds
});
}
public String getVersion()
{
return "1.3.1";
}
}
edit : I really want to make the crop work because it will be the main resources of my mod
Can you make a furnace tutorial i really want to make some furnace and GUI instead of Ore/Tools/Armor.
Hi, I used your tutorials to make a simple human mob. My mob spawns and can get hurt and stuff, but the i cant see it. I know its alive because i can hear it walking, and can kill them and they drop their item. I have went through the code many times, and cant find any errors, but here it is:
This is the EnityRana.java:
import java.util.Random;
import java.util.Map;
public class EntityRana extends EntityCreature {
public EntityRana(World world){
super(world);
texture = "/rena.png";
moveSpeed = 0.5F;
}
public int getMaxHealth(){
return 20;
}
protected String getLivingSound(){
return "mob.villager.default";
}
protected String getHurtSound(){
return "mob.villager.defaulthurt";
}
protected String getDeathSound(){
return "mob.villager.defaultdeath";
}
protected int getDropItemId(){
return 38;
}
protected boolean canDespawn(){
return false;
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
static
{
defaultHeldItem = new ItemStack(BlockFlower.plantRed, 1);
}
private static final ItemStack defaultHeldItem;
}
This is the mod_Rena.java:
package net.minecraft.src;
import java.util.Map;
public class mod_Rana extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(EntityRana.class, "Rana", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityRana.class, 112, 114, 118, EnumCreatureType.creature); /*high spawn rates for debugging*/
}
public void addRenderer(Map map){
map.put(EntityRana.class, new RenderBiped(new ModelBiped(), 15F));
}
public String getVersion()
{
return "1.3.1";
}
}
Also, when i launch minecraft in the console, i see this:
[13:02:40] Initializing LWJGL OpenAL
[13:02:40] (The LWJGL binding of OpenAL. For more information, see http://w
ww.lwjgl.org)
[13:02:40] OpenAL initialized.
[13:02:40]
[13:02:41] ########## GL ERROR ##########
[13:02:41] @ Pre render
[13:02:41] 1281: Invalid value
I created a flower, but whenever I break it, it doesn't display the icon, it just shows like a grass texture. I used the advanced flower guide. Please help.
Rollback Post to RevisionRollBack
Intel Core i5 2500k - Asus Radeon HD 7870 - 8GB Memory - Seagate Barracuda 2TB 7200RPM - Corsair Builder Series X600 - MSI Z77 G45
I'm having a problem with crops. The method about fertilizing the crop with a bonemeal doesn't work. It says
the super class doesn't have a method called "blockActivated" but we are calling it at the end of this method. I looked through the blockflower class and couldn't find that method. What should I do?
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
ItemStack itemstack = entityplayer.inventory.getCurrentItem();
if(itemstack != null && itemstack.itemID == Item.dyePowder.shiftedIndex)
{
if(itemstack.getItemDamage() == 15)
{
world.setBlockMetadataWithNotify(i, j, k, 8);
itemstack.stackSize--;
world.notifyBlockChange(i, j, k, 0);
}
}
return super.blockActivated(world, i, j, k, entityplayer);
}
@mynamedotorgdotcom is it for 1.3.1 or 1.2.5? if it is for 1.2.5, then put the ModLoader.setInGameHook, and the ModLoader.setInGUIHook in the public void load() method. You also want to put in the addOverride, addName, recipies, registerblock in there as well as you have nothing in the load() method which is where most of the code should be (if I read it correctly as you forgot the code tags, and spoiler for the classes/errors). If it is for 1.3.1 I have no idea how to add them as setInGUIHook isn't working correctly, and that is what I believe when risugami meant by he still has to fix them as it is a preliminary update(You need that method for adding in creative unless someone found another way as I cant find it / figure it out)
thanks and it is for 1.2.5
I'm gonna make it for 1.2.5 and then update it to 1.3.1
src\minecraft\net\minecraft\src\mod_motools.java:165: cannot find symbol
symbol : class Minecraft
location: class net.minecraft.src.mod_motools
public boolean onTickInGame(float f, Minecraft minecraft)
^
src\minecraft\net\minecraft\src\mod_motools.java:173: cannot find symbol
symbol : class Minecraft
location: class net.minecraft.src.mod_motools
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
^
src\minecraft\net\minecraft\src\mod_motools.java:178: cannot find symbol
symbol : class List
location: class net.minecraft.src.mod_motools
List list = ((ContainerCreative)container).itemList;
^
3 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
and here is my code
package net.minecraft.src;
import java.util.Random;
public class mod_motools extends BaseMod
{
//Declare Amathestore
public static Block m_Amathestore = new Amathestore(190, 0)
.setHardness(5F).setResistance(1F)
.setLightValue(0.0F).setBlockName("m_Amathestore");
//Declare Zirconiumore
public static Block m_Zirconiumore = new Zirconiumore(191, 0)
.setHardness(5F).setResistance(5F)
.setLightValue(0.0F).setBlockName("m_Zirconiumore");
//Declare Bloodrockore
public static Block m_Bloodrockore = new Bloodrockore(192, 0)
.setHardness(5F).setResistance(4F)
.setLightValue(0.0F).setBlockName("m_Bloodrockore");
//Declare Lightoniumore
public static Block m_Lightoniumore = new Lightoniumore(193, 0)
.setHardness(7F).setResistance(8F)
.setLightValue(0.0F).setBlockName("m_Lightoniumore");
//Declare Onyxore
public static Block m_Onyxore = new Onyxore(194, 0)
.setHardness(7F).setResistance(7F)
.setLightValue(0.0F).setBlockName("m_Onyxore");
//Declare Amathestshard
public static final Item m_Amathestshard = new Amathestshard(2267)
.setItemName("m_Amathestshard");
//Declare Zirconiumingot
public static final Item m_Zirconiumingot = new Zirconiumingot(2268)
.setItemName("m_Zirconiumingot");
//Declare Bloodshard
public static final Item m_Bloodshard = new Bloodshard(2269)
.setItemName("m_Bloodshard");
//Declare Lightoniumshard
public static final Item m_Lightoniumshard = new Lightoniumshard(2270)
.setItemName("m_Lightoniumshard");
//Declare Onyxgem
public static final Item m_Onyxgem = new Onyxgem(2271)
.setItemName("m_Onyxgem");
//Declare Amathest Pickaxe
public static final Item m_AmathestPickaxe = new ItemPickaxeAmathest(4748, EnumToolAmathest.AMATHEST)
.setItemName("m_AmathestPickaxe");
//Declare Amathest Shovel
public static final Item m_AmathestShovel = new ItemShovelAmathest(4749, EnumToolAmathest.AMATHEST)
.setItemName("m_AmathestShovel");
//Declare Amathest Axe
public static final Item m_AmathestAxe = new ItemAxeAmathest(4750, EnumToolAmathest.AMATHEST)
.setItemName("m_AmathestAxe");
//Declare Amathest Hoe
public static final Item m_AmathestHoe = new ItemHoeAmathest(4751, EnumToolAmathest.AMATHEST)
.setItemName("m_AmathestHoe");
//Declare Amathest Sword
public static final Item m_AmathestSword = new ItemSwordAmathest(4752, EnumToolAmathest.AMATHEST)
.setItemName("m_AmathestSword");
//Declare Zirconium Pickaxe
public static final Item m_ZirconiumPickaxe = new ItemPickaxeZirconium(2273, EnumToolZirconium.ZIRCONIUM)
.setItemName("m_ZirconiumPickaxe");
//Declare Zirconium Shovel
public static final Item m_ZirconiumShovel = new ItemShovelZirconium(2274, EnumToolZirconium.ZIRCONIUM)
.setItemName("m_ZirconiumShovel");
//Declare Zirconium Axe
public static final Item m_ZirconiumAxe = new ItemAxeZirconium(2275, EnumToolZirconium.ZIRCONIUM)
.setItemName("m_ZirconiumAxe");
//Declare Zirconium Hoe
public static final Item m_ZirconiumHoe = new ItemHoeZirconium(2276, EnumToolZirconium.ZIRCONIUM)
.setItemName("m_ZirconiumHoe");
//Declare Zirconium Sword
public static final Item m_ZirconiumSword = new ItemSwordZirconium(2277, EnumToolZirconium.ZIRCONIUM)
.setItemName("m_ZirconiumSword");
//Declare Lightonium Pickaxe
public static final Item m_LightoniumPickaxe = new ItemPickaxeLightonium(2274, EnumToolLightonium.LIGHTONIUM)
.setItemName("m_LightoniumPickaxe");
//Declare Lightonium Shovel
public static final Item m_LightoniumShovel = new ItemShovelLightonium(2275, EnumToolLightonium.LIGHTONIUM)
.setItemName("m_LightoniumShovel");
//Declare Lightonium Axe
public static final Item m_LightoniumAxe = new ItemAxeLightonium(2276, EnumToolLightonium.LIGHTONIUM)
.setItemName("m_LightoniumAxe");
//Declare Lightonium Hoe
public static final Item m_LightoniumHoe = new ItemHoeLightonium(2277, EnumToolLightonium.LIGHTONIUM)
.setItemName("m_LightoniumHoe");
//Declare Lightonium Sword
public static final Item m_LightoniumSword = new ItemSwordLightonium(2278, EnumToolLightonium.LIGHTONIUM)
.setItemName("m_LightoniumSword");
//Declare BloodRock Pickaxe
public static final Item m_BloodRockPickaxe = new ItemPickaxeBloodRock(2275, EnumToolBloodRock.BLOODROCK)
.setItemName("m_BloodRockPickaxe");
//Declare BloodRock Shovel
public static final Item m_BloodRockShovel = new ItemShovelBloodRock(2276, EnumToolBloodRock.BLOODROCK)
.setItemName("m_BloodRockShovel");
//Declare BloodRock Axe
public static final Item m_BloodRockAxe = new ItemAxeBloodRock(2277, EnumToolBloodRock.BLOODROCK)
.setItemName("m_BloodRockAxe");
//Declare BloodRock Hoe
public static final Item m_BloodRockHoe = new ItemHoeBloodRock(2278, EnumToolBloodRock.BLOODROCK)
.setItemName("m_BloodRockHoe");
//Declare BloodRock Sword
public static final Item m_BloodRockSword = new ItemSwordBloodRock(2279, EnumToolBloodRock.BLOODROCK)
.setItemName("m_BloodRockSword");
//Declare Onyx Pickaxe
public static final Item m_OnyxPickaxe = new ItemPickaxeOnyx(2276, EnumToolOnyx.ONYX)
.setItemName("m_OnyxPickaxe");
//Declare Onyx Shovel
public static final Item m_OnyxShovel = new ItemShovelOnyx(2277, EnumToolOnyx.ONYX)
.setItemName("m_OnyxShovel");
//Declare Onyx Axe
public static final Item m_OnyxAxe = new ItemAxeOnyx(2278, EnumToolOnyx.ONYX)
.setItemName("m_OnyxAxe");
//Declare Onyx Hoe
public static final Item m_OnyxHoe = new ItemHoeOnyx(2279, EnumToolOnyx.ONYX)
.setItemName("m_OnyxHoe");
//Declare Onyx Sword
public static final Item m_OnyxSword = new ItemSwordOnyx(2280, EnumToolOnyx.ONYX)
.setItemName("m_OnyxSword");
public String getVersion()
{
return "motools 1.0.0";
}
public void load()
{
ModLoader.setInGameHook(this, true, false);
ModLoader.setInGUIHook(this, true, false);
}
public boolean onTickInGame(float f, Minecraft minecraft)
{
if(minecraft.currentScreen == null)
{
creativeInventory = null;
}
return true;
}
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
{
if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote)
{
Container container = ((GuiContainer)guiscreen).inventorySlots;
List list = ((ContainerCreative)container).itemList;
int i = 0;
list.add(new ItemStack(m_Amathestore, 1, i));
list.add(new ItemStack(m_Zirconiumore, 1, i));
list.add(new ItemStack(m_Onyxore, 1, i));
}
creativeInventory = guiscreen;
return true;
}
private static GuiScreen creativeInventory;
public mod_motools()
{
ModLoader.registerBlock(m_Amathestore); //Amathestore
ModLoader.registerBlock(m_Zirconiumore); //Zirconiumore
ModLoader.registerBlock(m_Bloodrockore); //Bloodrockore
ModLoader.registerBlock(m_Lightoniumore); //Lightoniumore
ModLoader.registerBlock(m_Onyxore); //Onyxore
//Add Tooltips
//Blocks
ModLoader.addName(m_Amathestore, "Amathest Ore"); //Amathestore
ModLoader.addName(m_Zirconiumore, "Zirconium Ore"); //Zirconiumore
ModLoader.addName(m_Bloodrockore, "Blood Rock Ore"); //Bloodrockore
ModLoader.addName(m_Lightoniumore, "Lightonium Ore"); //Lightoniumore
ModLoader.addName(m_Onyxore, "Onyx Ore"); //Onyxore
//Items
ModLoader.addName(m_Amathestshard, "Amathest Shard"); //Amathestshard
ModLoader.addName(m_Zirconiumingot, "Zirconium Ingot"); //Zirconiumingot
ModLoader.addName(m_Bloodshard, "Blood Shard"); //Bloodshard
ModLoader.addName(m_Lightoniumshard, "Lightonium Shard"); //Lightoniumshard
ModLoader.addName(m_Onyxgem, "Onyx Gem"); //Onyxgem
//Armor Sets
//ToolSets
ModLoader.addName(m_AmathestPickaxe, "Amathest Pickaxe"); //Amathest Pickaxe
ModLoader.addName(m_AmathestShovel, "Amathest Shovel"); //Amathest Shovel
ModLoader.addName(m_AmathestAxe, "Amathest Axe"); //Amathest Axe
ModLoader.addName(m_AmathestHoe, "Amathest Hoe"); //Amathest Hoe
ModLoader.addName(m_AmathestSword, "Amathest Sword"); //Amathest Sword
ModLoader.addName(m_ZirconiumPickaxe, "Zirconium Pickaxe"); //Zirconium Pickaxe
ModLoader.addName(m_ZirconiumShovel, "Zirconium Shovel"); //Zirconium Shovel
ModLoader.addName(m_ZirconiumAxe, "Zirconium Axe"); //Zirconium Axe
ModLoader.addName(m_ZirconiumHoe, "Zirconium Hoe"); //Zirconium Hoe
ModLoader.addName(m_ZirconiumSword, "Zirconium Sword"); //Zirconium Sword
ModLoader.addName(m_LightoniumPickaxe, "Lightonium Pickaxe"); //Lightonium Pickaxe
ModLoader.addName(m_LightoniumShovel, "Lightonium Shovel"); //Lightonium Shovel
ModLoader.addName(m_LightoniumAxe, "Lightonium Axe"); //Lightonium Axe
ModLoader.addName(m_LightoniumHoe, "Lightonium Hoe"); //Lightonium Hoe
ModLoader.addName(m_LightoniumSword, "Lightonium Sword"); //Lightonium Sword
ModLoader.addName(m_BloodRockPickaxe, "BloodRock Pickaxe"); //BloodRock Pickaxe
ModLoader.addName(m_BloodRockShovel, "BloodRock Shovel"); //BloodRock Shovel
ModLoader.addName(m_BloodRockAxe, "BloodRock Axe"); //BloodRock Axe
ModLoader.addName(m_BloodRockHoe, "BloodRock Hoe"); //BloodRock Hoe
ModLoader.addName(m_BloodRockSword, "BloodRock Sword"); //BloodRock Sword
ModLoader.addName(m_OnyxPickaxe, "Onyx Pickaxe"); //Onyx Pickaxe
ModLoader.addName(m_OnyxShovel, "Onyx Shovel"); //Onyx Shovel
ModLoader.addName(m_OnyxAxe, "Onyx Axe"); //Onyx Axe
ModLoader.addName(m_OnyxHoe, "Onyx Hoe"); //Onyx Hoe
ModLoader.addName(m_OnyxSword, "Onyx Sword"); //Onyx Sword
//Textures
//Blocks
m_Amathestore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools//motools/blocks/Amathestore.png");
m_Zirconiumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Zirconiumore.png");
m_Bloodrockore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/BloodRockore.png");
m_Lightoniumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Lightoniumore.png");
m_Onyxore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Onyxore.png");
//Items
m_Amathestshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestshard.png");
m_Zirconiumingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumingot.png");
m_Bloodshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodshard.png");
m_Lightoniumshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumshard.png");
m_Onyxgem.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxgem.png");
//ToolSets
m_AmathestPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestpickaxe.png");
m_AmathestShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestshovel.png");
m_AmathestAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestaxe.png");
m_AmathestHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathesthoe.png");
m_AmathestSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestsword.png");
m_ZirconiumPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumpickaxe.png");
m_ZirconiumShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumshovel.png");
m_ZirconiumAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumaxe.png");
m_ZirconiumHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumhoe.png");
m_ZirconiumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/mottools/items/Zirconiumsword.png");
m_LightoniumPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumpickaxe.png");
m_LightoniumShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumshovel.png");
m_LightoniumAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumaxe.png");
m_LightoniumHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumhoe.png");
m_LightoniumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumsword.png");
m_BloodRockPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockpickaxe.png");
m_BloodRockShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockshovel.png");
m_BloodRockAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockaxe.png");
m_BloodRockHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockhoe.png");
m_BloodRockSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrocksword.png");
m_OnyxPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxpickaxe.png");
m_OnyxShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxshovel.png");
m_OnyxAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxaxe.png");
m_OnyxHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxhoe.png");
m_OnyxSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxsword.png");
//Recipes
//Amathest Pickaxe Recipe
ModLoader.addRecipe(new ItemStack(m_AmathestPickaxe, 1), new Object []{ "yyy" , " z " , " z " ,
Character.valueOf('y'), m_Amathestshard
, Character.valueOf('z'), Item.stick });
//Amathest Shovel Recipe
ModLoader.addRecipe(new ItemStack(m_AmathestShovel, 1), new Object []{ " y " , " z " , " z " ,
Character.valueOf('y'), m_Amathestshard
, Character.valueOf('z'), Item.stick });
//Amathest Axe Recipe
ModLoader.addRecipe(new ItemStack(m_AmathestAxe, 1), new Object []{ "yy " , "yz " , " z " ,
Character.valueOf('y'), m_Amathestshard
, Character.valueOf('z'), Item.stick });
//Amathest Hoe Recipe
ModLoader.addRecipe(new ItemStack(m_AmathestHoe, 1), new Object []{ "yy " , " z " , " z " ,
Character.valueOf('y'), m_Amathestshard
, Character.valueOf('z'), Item.stick });
//Amathest Sword Recipe
ModLoader.addRecipe(new ItemStack(m_AmathestSword, 1), new Object []{ " y " , " y " , " z " ,
Character.valueOf('y'), m_Amathestshard
, Character.valueOf('z'), Item.stick });
//Zirconium Pickaxe Recipe
ModLoader.addRecipe(new ItemStack(m_ZirconiumPickaxe, 1), new Object []{ "yyy" , " z " , " z " ,
Character.valueOf('y'), m_Zirconiumingot
, Character.valueOf('z'), Item.stick });
//Zirconium Shovel Recipe
ModLoader.addRecipe(new ItemStack(m_ZirconiumShovel, 1), new Object []{ " y " , " z " , " z " ,
Character.valueOf('y'), m_Zirconiumingot
, Character.valueOf('z'), Item.stick });
//Zirconium Axe Recipe
ModLoader.addRecipe(new ItemStack(m_ZirconiumAxe, 1), new Object []{ "yy " , "yz " , " z " ,
Character.valueOf('y'), m_Zirconiumingot
, Character.valueOf('z'), Item.stick });
//Zirconium Hoe Recipe
ModLoader.addRecipe(new ItemStack(m_ZirconiumHoe, 1), new Object []{ "yy " , " z " , " z " ,
Character.valueOf('y'), m_Zirconiumingot
, Character.valueOf('z'), Item.stick });
//Zirconium Sword Recipe
ModLoader.addRecipe(new ItemStack(m_ZirconiumSword, 1), new Object []{ " y " , " y " , " z " ,
Character.valueOf('y'), m_Zirconiumingot
, Character.valueOf('z'), Item.stick });
//Lightonium Pickaxe Recipe
ModLoader.addRecipe(new ItemStack(m_LightoniumPickaxe, 1), new Object []{ "yyy" , " z " , " z " ,
Character.valueOf('y'), m_Lightoniumshard
, Character.valueOf('z'), Item.stick });
//Lightonium Shovel Recipe
ModLoader.addRecipe(new ItemStack(m_LightoniumShovel, 1), new Object []{ " y " , " z " , " z " ,
Character.valueOf('y'), m_Lightoniumshard
, Character.valueOf('z'), Item.stick });
//Lightonium Axe Recipe
ModLoader.addRecipe(new ItemStack(m_LightoniumAxe, 1), new Object []{ "yy " , "yz " , " z " ,
Character.valueOf('y'), m_Lightoniumshard
, Character.valueOf('z'), Item.stick });
//Lightonium Hoe Recipe
ModLoader.addRecipe(new ItemStack(m_LightoniumHoe, 1), new Object []{ "yy " , " z " , " z " ,
Character.valueOf('y'), m_Lightoniumshard
, Character.valueOf('z'), Item.stick });
//Lightonium Sword Recipe
ModLoader.addRecipe(new ItemStack(m_LightoniumSword, 1), new Object []{ " y " , " y " , " z " ,
Character.valueOf('y'), m_Lightoniumshard
, Character.valueOf('z'), Item.stick });
//BloodRock Pickaxe Recipe
ModLoader.addRecipe(new ItemStack(m_BloodRockPickaxe, 1), new Object []{ "yyy" , " z " , " z " ,
Character.valueOf('y'), m_Bloodshard
, Character.valueOf('z'), Item.stick });
//BloodRock Shovel Recipe
ModLoader.addRecipe(new ItemStack(m_BloodRockShovel, 1), new Object []{ " y " , " z " , " z " ,
Character.valueOf('y'), m_Bloodshard
, Character.valueOf('z'), Item.stick });
//BloodRock Axe Recipe
ModLoader.addRecipe(new ItemStack(m_BloodRockAxe, 1), new Object []{ "yy " , "yz " , " z " ,
Character.valueOf('y'), m_Bloodshard
, Character.valueOf('z'), Item.stick });
//BloodRock Hoe Recipe
ModLoader.addRecipe(new ItemStack(m_BloodRockHoe, 1), new Object []{ "yy " , " z " , " z " ,
Character.valueOf('y'), m_Bloodshard
, Character.valueOf('z'), Item.stick });
//BloodRock Sword Recipe
ModLoader.addRecipe(new ItemStack(m_BloodRockSword, 1), new Object []{ " y " , " y " , " z " ,
Character.valueOf('y'), m_Bloodshard
, Character.valueOf('z'), Item.stick });
//Onyx Pickaxe Recipe
ModLoader.addRecipe(new ItemStack(m_OnyxPickaxe, 1), new Object []{ "yyy" , " z " , " z " ,
Character.valueOf('y'), m_Onyxgem
, Character.valueOf('z'), Item.stick });
//Onyx Shovel Recipe
ModLoader.addRecipe(new ItemStack(m_OnyxShovel, 1), new Object []{ " y " , " z " , " z " ,
Character.valueOf('y'), m_Onyxgem
, Character.valueOf('z'), Item.stick });
//Onyx Axe Recipe
ModLoader.addRecipe(new ItemStack(m_OnyxAxe, 1), new Object []{ "yy " , "yz " , " z " ,
Character.valueOf('y'), m_Onyxgem
, Character.valueOf('z'), Item.stick });
//Onyx Hoe Recipe
ModLoader.addRecipe(new ItemStack(m_OnyxHoe, 1), new Object []{ "yy " , " z " , " z " ,
Character.valueOf('y'), m_Onyxgem
, Character.valueOf('z'), Item.stick });
//Onyx Sword Recipe
ModLoader.addRecipe(new ItemStack(m_OnyxSword, 1), new Object []{ " y " , " y " , " z " ,
Character.valueOf('y'), m_Onyxgem
, Character.valueOf('z'), Item.stick });
//Furnace Recipes
//Zirconiumore Smelting Recipe
ModLoader.addSmelting
(m_Zirconiumore.blockID, new ItemStack(m_Zirconiumingot, 1) );
}
public void GenerateSurface(World worldMod, Random rand, int i, int j)
{
for(int eexeop = 0; eexeop < 16; eexeop++)
{
int j6 = i + rand.nextInt(2);
int k9 = rand.nextInt(16);
int j12 = j + rand.nextInt(2);
new WorldGenMinable(m_Zirconiumore.blockID, 2).generate(worldMod, rand, j6, k9, j12);
}
for(int uewg = 0; uewg < 16; uewg++)
{
int j6 = i + rand.nextInt(2);
int k9 = rand.nextInt(16);
int j12 = j + rand.nextInt(2);
new WorldGenMinable(m_Bloodrockore.blockID, 4).generate(worldMod, rand, j6, k9, j12);
}
for(int vrxegsw = 0; vrxegsw < 128; vrxegsw++)
{
int j6 = i + rand.nextInt(16);
int k9 = rand.nextInt(128);
int j12 = j + rand.nextInt(16);
new WorldGenMinable(m_Onyxore.blockID, 2).generate(worldMod, rand, j6, k9, j12);
}
}
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have a Problem.
My Mod works but when i want to play in the normal Minecraft where i have to put the pictures?
I use Eclipsee to start it and the pictures are here: \eclipse\Client\bin\mods
package net.minecraft.src; public class mod_Cobalt extends BaseMod { public static final Block Cobalt = new BlockOre(137, 0).setBlockName("Cobalt").setHardness(15F).setResistance(3F).setLightValue(0F); public static final Item CobaltIngot = new Item(138).setItemName("CobaltIngot"); public static final Item CobaltSword = new Item(139).setItemName("CobaltSword"); public void load() { Cobalt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/cobalt.png"); ModLoader.registerBlock(Cobalt); ModLoader.addName(Cobalt, "Cobalt Ore"); CobaltIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/CobaltIngot.png"); ModLoader.addName(CobaltIngot, "CobaltIngot"); ModLoader.addSmelting(Cobalt.blockID, new ItemStack(CobaltIngot, 1), 2.0F); CobaltSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/sword.png"); ModLoader.addName(CobaltSword, "CobaltSword"); ModLoader.addRecipe(new ItemStack(CobaltSword, 1), new Object [] {" # ", " # ", " % ", Character.valueOf('#'), CobaltIngot, Character.valueOf('%'), Item.stick}); } public String getVersion() { return "1.3.1"; } }And i want that only diamond can harvest the Cobalt, but where can i change it?
Help
Sorry for my bad english
Just use Ctrl+F in Block and search for "stair" without the quotes. You will find what you're looking for.
You put the textures in a folder called "mods". The "mods" folder then goes inside the minecraft.jar or the zip of your mod in the ModLoader mods folder in .minecraft.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI put it in the minecraft.jar with the other 3 .class but the mod doesnt load.
ingame there are no items from my mod.
What?
Did you install ModLoader? Sounds like a stupid question but just stamping out possibilities.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumim stupid -.- i had 2 minecraft.jars and delete the wrong with modloader >.<
edit: doesn't work too
- mods in minecraft.jar
- mods in .minecraft/mods
- mods in mods.zip in .minecraft/mods
"How Do I Acess The mod_block/mod_item files?"
im sorry for any wrong i have done. i really want to create a mod and i would very much enjoy if you guys could help me
-Wayvern12
I found the way to make items and blocks go into the creative inventory. In the BlockNAMEHERE under public BlockNAMEHERE(par1,par2) you put "this.setCreativeTab(CreativeTabs.creativetabnamehere) extremely easy
For items it's different. Same place but worded differently;
this.setTabToDisplayOn(CreativeTabs.creattivetabnamehere)
I tried to modify your code to fix this problem ( copy from the BlockCrop to fit in )
And i'm pretty sure that my images are in places.
Sorry about my English. I'm not a native speaker.
ItemDirtseed.java
package net.minecraft.src; public class ItemDirtseed extends Item { /** The type of block this seed turns into (wheat or pumpkin stems for instance)*/ private int blockType; /** BlockID of the block the seeds can be planted on. */ private int soilBlockID; public ItemDirtseed(int i, int j, int k) { super(i); blockType = j; soilBlockID = k; this.setTabToDisplayOn(CreativeTabs.tabMaterials); } /** * Callback for item usage. If the item does something special on right clicking, he will have one of those. Return * True if something happen and false if it don't. This is for ITEMS, not BLOCKS ! */ public boolean tryPlaceIntoWorld(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 != 1) { return false; } else if (par2EntityPlayer.canPlayerEdit(par4, par5, par6) && par2EntityPlayer.canPlayerEdit(par4, par5 + 1, par6)) { int var11 = par3World.getBlockId(par4, par5, par6); if (var11 == this.soilBlockID && par3World.isAirBlock(par4, par5 + 1, par6)) { par3World.setBlockWithNotify(par4, par5 + 1, par6, this.blockType); --par1ItemStack.stackSize; return true; } else { return false; } } else { return false; } } }BlockDirtcrop
package net.minecraft.src; import java.util.Random; public class BlockDirtcrop extends BlockFlower { protected BlockDirtcrop(int par1, int par2) { super(par1, par2); this.blockIndexInTexture = par2; this.setTickRandomly(true); float var3 = 0.5F; this.setBlockBounds(0.5F - var3, 0.0F, 0.5F - var3, 0.5F + var3, 0.25F, 0.5F + var3); this.setCreativeTab((CreativeTabs)null); } /** * Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of * blockID passed in. Args: blockID */ protected boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == Block.tilledField.blockID; } /** * Ticks the block if it's been scheduled */ public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.updateTick(par1World, par2, par3, par4, par5Random); if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9) { int var6 = par1World.getBlockMetadata(par2, par3, par4); if (var6 < 7) { float var7 = this.getGrowthRate(par1World, par2, par3, par4); if (par5Random.nextInt((int)(25.0F / var7) + 1) == 0) { ++var6; par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); } } } } /** * Apply bonemeal to the Dirtcrop. */ public void fertilize(World par1World, int par2, int par3, int par4) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 7); } /** * Gets the growth rate for the crop. Setup to encourage rows by halving growth rate if there is diagonals, Dirtcrop on * different sides that aren't opposing, and by adding growth for every crop next to this one (and for crop below * this one). Args: x, y, z */ private float getGrowthRate(World par1World, int par2, int par3, int par4) { float var5 = 1.0F; int var6 = par1World.getBlockId(par2, par3, par4 - 1); int var7 = par1World.getBlockId(par2, par3, par4 + 1); int var8 = par1World.getBlockId(par2 - 1, par3, par4); int var9 = par1World.getBlockId(par2 + 1, par3, par4); int var10 = par1World.getBlockId(par2 - 1, par3, par4 - 1); int var11 = par1World.getBlockId(par2 + 1, par3, par4 - 1); int var12 = par1World.getBlockId(par2 + 1, par3, par4 + 1); int var13 = par1World.getBlockId(par2 - 1, par3, par4 + 1); boolean var14 = var8 == this.blockID || var9 == this.blockID; boolean var15 = var6 == this.blockID || var7 == this.blockID; boolean var16 = var10 == this.blockID || var11 == this.blockID || var12 == this.blockID || var13 == this.blockID; for (int var17 = par2 - 1; var17 <= par2 + 1; ++var17) { for (int var18 = par4 - 1; var18 <= par4 + 1; ++var18) { int var19 = par1World.getBlockId(var17, par3 - 1, var18); float var20 = 0.0F; if (var19 == Block.tilledField.blockID) { var20 = 1.0F; if (par1World.getBlockMetadata(var17, par3 - 1, var18) > 0) { var20 = 3.0F; } } if (var17 != par2 || var18 != par4) { var20 /= 4.0F; } var5 += var20; } } if (var16 || var14 && var15) { var5 /= 2.0F; } return var5; } /** * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata */ public int getBlockTextureFromSideAndMetadata(int i, int j) { if(j == 0) { return blockIndexInTexture; } if(j == 1) { return mod_dirtcrop.cropStageOne; } if(j == 2) { return mod_dirtcrop.cropStageTwo; } if(j == 3) { return mod_dirtcrop.cropStageThree; } if(j == 4) { return mod_dirtcrop.cropStageFour; } if(j == 5) { return mod_dirtcrop.cropStageFive; } if(j == 6) { return mod_dirtcrop.cropStageSix; } if(j == 7) { return mod_dirtcrop.cropStageSeven; } if(j == 8) { return mod_dirtcrop.cropStageEight; } return j; } /** * The type of render function that is called for this block */ public int getRenderType() { return 6; } /** * Drops the block items with a specified chance of dropping the specified items */ public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) { super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, 0); if (!par1World.isRemote) { int var8 = 3 + par7; for (int var9 = 0; var9 < var8; ++var9) { if (par1World.rand.nextInt(15) <= par5) { float var10 = 0.7F; float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; EntityItem var14 = new EntityItem(par1World, (double)((float)par2 + var11), (double)((float)par3 + var12), (double)((float)par4 + var13), new ItemStack(mod_dirtcrop.dirtseed)); var14.delayBeforeCanPickup = 10; par1World.spawnEntityInWorld(var14); } } } } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return par1 == 7 ? mod_Sean.hd1.blockID : -1; } /** * Returns the quantity of items to drop on block destruction. */ public int quantityDropped(Random par1Random) { return 3; } /** * only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) */ public int idPicked(World par1World, int par2, int par3, int par4) { return mod_dirtcrop.dirtseed.shiftedIndex; } }mod_dirtcrop
package net.minecraft.src; public class mod_dirtcrop extends BaseMod { //Just a standard block. public static final Block dirtcrop = new BlockDirtcrop(210, 0).setBlockName("dirtcrop"); //This is a fairly standard item but it has two new arguments. The first is the block it plants, in this case is our new crop "cropNameHere". The second is the block that is required to be right clicked on to plant the seeds. //We are using tilled field/dirt for this crop but you can change it to whatever you like. Remember to change it in the block class as well. public static final Item dirtseed = new ItemDirtseed(2500, dirtcrop.blockID, Block.tilledField.blockID).setItemName("dirtseed"); //These static ints are the textures of the crop in its various stages of growth. public static int cropStageOne = ModLoader.addOverride("/terrain.png", "crop1.png"); public static int cropStageTwo = ModLoader.addOverride("/terrain.png", "crop2.png"); public static int cropStageThree = ModLoader.addOverride("/terrain.png", "crop3.png"); public static int cropStageFour = ModLoader.addOverride("/terrain.png", "crop4.png"); public static int cropStageFive = ModLoader.addOverride("/terrain.png", "crop5.png"); public static int cropStageSix = ModLoader.addOverride("/terrain.png", "crop6.png"); public static int cropStageSeven = ModLoader.addOverride("/terrain.png", "crop7.png"); public static int cropStageEight = ModLoader.addOverride("/terrain.png", "crop8.png"); public void load() { dirtcrop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "crop.png"); ModLoader.registerBlock(dirtcrop); ModLoader.addName(dirtcrop, "Nutrition Absorption"); dirtseed.iconIndex = ModLoader.addOverride("/gui/items.png", "seed.png"); ModLoader.addName(dirtseed, "Absorption Seeds"); ModLoader.addRecipe(new ItemStack(dirtseed), new Object [] { "N", "S", 'N', mod_Sean.SeanFood, 'S', Item.seeds }); } public String getVersion() { return "1.3.1"; } }edit : I really want to make the crop work because it will be the main resources of my mod
Can you make a furnace tutorial
import java.util.Random; import java.util.Map; public class EntityRana extends EntityCreature { public EntityRana(World world){ super(world); texture = "/rena.png"; moveSpeed = 0.5F; } public int getMaxHealth(){ return 20; } protected String getLivingSound(){ return "mob.villager.default"; } protected String getHurtSound(){ return "mob.villager.defaulthurt"; } protected String getDeathSound(){ return "mob.villager.defaultdeath"; } protected int getDropItemId(){ return 38; } protected boolean canDespawn(){ return false; } public ItemStack getHeldItem() { return defaultHeldItem; } static { defaultHeldItem = new ItemStack(BlockFlower.plantRed, 1); } private static final ItemStack defaultHeldItem; }This is the mod_Rena.java:
package net.minecraft.src; import java.util.Map; public class mod_Rana extends BaseMod { public void load() { ModLoader.registerEntityID(EntityRana.class, "Rana", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(EntityRana.class, 112, 114, 118, EnumCreatureType.creature); /*high spawn rates for debugging*/ } public void addRenderer(Map map){ map.put(EntityRana.class, new RenderBiped(new ModelBiped(), 15F)); } public String getVersion() { return "1.3.1"; } }Also, when i launch minecraft in the console, i see this:
[13:02:40] Initializing LWJGL OpenAL
[13:02:40] (The LWJGL binding of OpenAL. For more information, see http://w
ww.lwjgl.org)
[13:02:40] OpenAL initialized.
[13:02:40]
[13:02:41] ########## GL ERROR ##########
[13:02:41] @ Pre render
[13:02:41] 1281: Invalid value
Hope someone can help
the super class doesn't have a method called "blockActivated" but we are calling it at the end of this method. I looked through the blockflower class and couldn't find that method. What should I do?
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer) { ItemStack itemstack = entityplayer.inventory.getCurrentItem(); if(itemstack != null && itemstack.itemID == Item.dyePowder.shiftedIndex) { if(itemstack.getItemDamage() == 15) { world.setBlockMetadataWithNotify(i, j, k, 8); itemstack.stackSize--; world.notifyBlockChange(i, j, k, 0); } } return super.blockActivated(world, i, j, k, entityplayer); }-
View User Profile
-
View Posts
-
Send Message
Curse Premiumpackage net.minecraft.src; public class mod_CobaltShovel extends Item { private static Block blocksEffectiveAgainst[]; public mod_CobaltShovel(int par1, mod_CobaltEnum par2EnumToolMaterialNamehere) { super(par1, 1, par2EnumToolMaterialNamehere, blocksEffectiveAgainst); } /** * Returns if the item (tool) can harvest results from the block type. */ public boolean canHarvestBlock(Block par1Block) { if (par1Block == Block.snow) { return true; } return par1Block == Block.blockSnow; } static { blocksEffectiveAgainst = (new Block[] { Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium }); } }This line is red underlined
super(par1, 1, par2EnumToolMaterialNamehere, blocksEffectiveAgainst);
and it say:
The constructor Item(int, int, mod_CobaltEnum, Block[]) is undefined
thanks and it is for 1.2.5
I'm gonna make it for 1.2.5 and then update it to 1.3.1
btw how do you make a spoiler?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYour welcome! To make a spoiler add this in between what you want to cover up:
And for code put this in between your classes/code you want people to see:
(without the space in the /code)
Edit: posted at the same time whoops...
you helped me fix most problems but now I have this problem please help
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
ram csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.6.0_24\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_motools.java:165: cannot find symbol
symbol : class Minecraft
location: class net.minecraft.src.mod_motools
public boolean onTickInGame(float f, Minecraft minecraft)
^
src\minecraft\net\minecraft\src\mod_motools.java:173: cannot find symbol
symbol : class Minecraft
location: class net.minecraft.src.mod_motools
public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
^
src\minecraft\net\minecraft\src\mod_motools.java:178: cannot find symbol
symbol : class List
location: class net.minecraft.src.mod_motools
List list = ((ContainerCreative)container).itemList;
^
3 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
package net.minecraft.src; import java.util.Random; public class mod_motools extends BaseMod { //Declare Amathestore public static Block m_Amathestore = new Amathestore(190, 0) .setHardness(5F).setResistance(1F) .setLightValue(0.0F).setBlockName("m_Amathestore"); //Declare Zirconiumore public static Block m_Zirconiumore = new Zirconiumore(191, 0) .setHardness(5F).setResistance(5F) .setLightValue(0.0F).setBlockName("m_Zirconiumore"); //Declare Bloodrockore public static Block m_Bloodrockore = new Bloodrockore(192, 0) .setHardness(5F).setResistance(4F) .setLightValue(0.0F).setBlockName("m_Bloodrockore"); //Declare Lightoniumore public static Block m_Lightoniumore = new Lightoniumore(193, 0) .setHardness(7F).setResistance(8F) .setLightValue(0.0F).setBlockName("m_Lightoniumore"); //Declare Onyxore public static Block m_Onyxore = new Onyxore(194, 0) .setHardness(7F).setResistance(7F) .setLightValue(0.0F).setBlockName("m_Onyxore"); //Declare Amathestshard public static final Item m_Amathestshard = new Amathestshard(2267) .setItemName("m_Amathestshard"); //Declare Zirconiumingot public static final Item m_Zirconiumingot = new Zirconiumingot(2268) .setItemName("m_Zirconiumingot"); //Declare Bloodshard public static final Item m_Bloodshard = new Bloodshard(2269) .setItemName("m_Bloodshard"); //Declare Lightoniumshard public static final Item m_Lightoniumshard = new Lightoniumshard(2270) .setItemName("m_Lightoniumshard"); //Declare Onyxgem public static final Item m_Onyxgem = new Onyxgem(2271) .setItemName("m_Onyxgem"); //Declare Amathest Pickaxe public static final Item m_AmathestPickaxe = new ItemPickaxeAmathest(4748, EnumToolAmathest.AMATHEST) .setItemName("m_AmathestPickaxe"); //Declare Amathest Shovel public static final Item m_AmathestShovel = new ItemShovelAmathest(4749, EnumToolAmathest.AMATHEST) .setItemName("m_AmathestShovel"); //Declare Amathest Axe public static final Item m_AmathestAxe = new ItemAxeAmathest(4750, EnumToolAmathest.AMATHEST) .setItemName("m_AmathestAxe"); //Declare Amathest Hoe public static final Item m_AmathestHoe = new ItemHoeAmathest(4751, EnumToolAmathest.AMATHEST) .setItemName("m_AmathestHoe"); //Declare Amathest Sword public static final Item m_AmathestSword = new ItemSwordAmathest(4752, EnumToolAmathest.AMATHEST) .setItemName("m_AmathestSword"); //Declare Zirconium Pickaxe public static final Item m_ZirconiumPickaxe = new ItemPickaxeZirconium(2273, EnumToolZirconium.ZIRCONIUM) .setItemName("m_ZirconiumPickaxe"); //Declare Zirconium Shovel public static final Item m_ZirconiumShovel = new ItemShovelZirconium(2274, EnumToolZirconium.ZIRCONIUM) .setItemName("m_ZirconiumShovel"); //Declare Zirconium Axe public static final Item m_ZirconiumAxe = new ItemAxeZirconium(2275, EnumToolZirconium.ZIRCONIUM) .setItemName("m_ZirconiumAxe"); //Declare Zirconium Hoe public static final Item m_ZirconiumHoe = new ItemHoeZirconium(2276, EnumToolZirconium.ZIRCONIUM) .setItemName("m_ZirconiumHoe"); //Declare Zirconium Sword public static final Item m_ZirconiumSword = new ItemSwordZirconium(2277, EnumToolZirconium.ZIRCONIUM) .setItemName("m_ZirconiumSword"); //Declare Lightonium Pickaxe public static final Item m_LightoniumPickaxe = new ItemPickaxeLightonium(2274, EnumToolLightonium.LIGHTONIUM) .setItemName("m_LightoniumPickaxe"); //Declare Lightonium Shovel public static final Item m_LightoniumShovel = new ItemShovelLightonium(2275, EnumToolLightonium.LIGHTONIUM) .setItemName("m_LightoniumShovel"); //Declare Lightonium Axe public static final Item m_LightoniumAxe = new ItemAxeLightonium(2276, EnumToolLightonium.LIGHTONIUM) .setItemName("m_LightoniumAxe"); //Declare Lightonium Hoe public static final Item m_LightoniumHoe = new ItemHoeLightonium(2277, EnumToolLightonium.LIGHTONIUM) .setItemName("m_LightoniumHoe"); //Declare Lightonium Sword public static final Item m_LightoniumSword = new ItemSwordLightonium(2278, EnumToolLightonium.LIGHTONIUM) .setItemName("m_LightoniumSword"); //Declare BloodRock Pickaxe public static final Item m_BloodRockPickaxe = new ItemPickaxeBloodRock(2275, EnumToolBloodRock.BLOODROCK) .setItemName("m_BloodRockPickaxe"); //Declare BloodRock Shovel public static final Item m_BloodRockShovel = new ItemShovelBloodRock(2276, EnumToolBloodRock.BLOODROCK) .setItemName("m_BloodRockShovel"); //Declare BloodRock Axe public static final Item m_BloodRockAxe = new ItemAxeBloodRock(2277, EnumToolBloodRock.BLOODROCK) .setItemName("m_BloodRockAxe"); //Declare BloodRock Hoe public static final Item m_BloodRockHoe = new ItemHoeBloodRock(2278, EnumToolBloodRock.BLOODROCK) .setItemName("m_BloodRockHoe"); //Declare BloodRock Sword public static final Item m_BloodRockSword = new ItemSwordBloodRock(2279, EnumToolBloodRock.BLOODROCK) .setItemName("m_BloodRockSword"); //Declare Onyx Pickaxe public static final Item m_OnyxPickaxe = new ItemPickaxeOnyx(2276, EnumToolOnyx.ONYX) .setItemName("m_OnyxPickaxe"); //Declare Onyx Shovel public static final Item m_OnyxShovel = new ItemShovelOnyx(2277, EnumToolOnyx.ONYX) .setItemName("m_OnyxShovel"); //Declare Onyx Axe public static final Item m_OnyxAxe = new ItemAxeOnyx(2278, EnumToolOnyx.ONYX) .setItemName("m_OnyxAxe"); //Declare Onyx Hoe public static final Item m_OnyxHoe = new ItemHoeOnyx(2279, EnumToolOnyx.ONYX) .setItemName("m_OnyxHoe"); //Declare Onyx Sword public static final Item m_OnyxSword = new ItemSwordOnyx(2280, EnumToolOnyx.ONYX) .setItemName("m_OnyxSword"); public String getVersion() { return "motools 1.0.0"; } public void load() { ModLoader.setInGameHook(this, true, false); ModLoader.setInGUIHook(this, true, false); } public boolean onTickInGame(float f, Minecraft minecraft) { if(minecraft.currentScreen == null) { creativeInventory = null; } return true; } public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen) { if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote) { Container container = ((GuiContainer)guiscreen).inventorySlots; List list = ((ContainerCreative)container).itemList; int i = 0; list.add(new ItemStack(m_Amathestore, 1, i)); list.add(new ItemStack(m_Zirconiumore, 1, i)); list.add(new ItemStack(m_Onyxore, 1, i)); } creativeInventory = guiscreen; return true; } private static GuiScreen creativeInventory; public mod_motools() { ModLoader.registerBlock(m_Amathestore); //Amathestore ModLoader.registerBlock(m_Zirconiumore); //Zirconiumore ModLoader.registerBlock(m_Bloodrockore); //Bloodrockore ModLoader.registerBlock(m_Lightoniumore); //Lightoniumore ModLoader.registerBlock(m_Onyxore); //Onyxore //Add Tooltips //Blocks ModLoader.addName(m_Amathestore, "Amathest Ore"); //Amathestore ModLoader.addName(m_Zirconiumore, "Zirconium Ore"); //Zirconiumore ModLoader.addName(m_Bloodrockore, "Blood Rock Ore"); //Bloodrockore ModLoader.addName(m_Lightoniumore, "Lightonium Ore"); //Lightoniumore ModLoader.addName(m_Onyxore, "Onyx Ore"); //Onyxore //Items ModLoader.addName(m_Amathestshard, "Amathest Shard"); //Amathestshard ModLoader.addName(m_Zirconiumingot, "Zirconium Ingot"); //Zirconiumingot ModLoader.addName(m_Bloodshard, "Blood Shard"); //Bloodshard ModLoader.addName(m_Lightoniumshard, "Lightonium Shard"); //Lightoniumshard ModLoader.addName(m_Onyxgem, "Onyx Gem"); //Onyxgem //Armor Sets //ToolSets ModLoader.addName(m_AmathestPickaxe, "Amathest Pickaxe"); //Amathest Pickaxe ModLoader.addName(m_AmathestShovel, "Amathest Shovel"); //Amathest Shovel ModLoader.addName(m_AmathestAxe, "Amathest Axe"); //Amathest Axe ModLoader.addName(m_AmathestHoe, "Amathest Hoe"); //Amathest Hoe ModLoader.addName(m_AmathestSword, "Amathest Sword"); //Amathest Sword ModLoader.addName(m_ZirconiumPickaxe, "Zirconium Pickaxe"); //Zirconium Pickaxe ModLoader.addName(m_ZirconiumShovel, "Zirconium Shovel"); //Zirconium Shovel ModLoader.addName(m_ZirconiumAxe, "Zirconium Axe"); //Zirconium Axe ModLoader.addName(m_ZirconiumHoe, "Zirconium Hoe"); //Zirconium Hoe ModLoader.addName(m_ZirconiumSword, "Zirconium Sword"); //Zirconium Sword ModLoader.addName(m_LightoniumPickaxe, "Lightonium Pickaxe"); //Lightonium Pickaxe ModLoader.addName(m_LightoniumShovel, "Lightonium Shovel"); //Lightonium Shovel ModLoader.addName(m_LightoniumAxe, "Lightonium Axe"); //Lightonium Axe ModLoader.addName(m_LightoniumHoe, "Lightonium Hoe"); //Lightonium Hoe ModLoader.addName(m_LightoniumSword, "Lightonium Sword"); //Lightonium Sword ModLoader.addName(m_BloodRockPickaxe, "BloodRock Pickaxe"); //BloodRock Pickaxe ModLoader.addName(m_BloodRockShovel, "BloodRock Shovel"); //BloodRock Shovel ModLoader.addName(m_BloodRockAxe, "BloodRock Axe"); //BloodRock Axe ModLoader.addName(m_BloodRockHoe, "BloodRock Hoe"); //BloodRock Hoe ModLoader.addName(m_BloodRockSword, "BloodRock Sword"); //BloodRock Sword ModLoader.addName(m_OnyxPickaxe, "Onyx Pickaxe"); //Onyx Pickaxe ModLoader.addName(m_OnyxShovel, "Onyx Shovel"); //Onyx Shovel ModLoader.addName(m_OnyxAxe, "Onyx Axe"); //Onyx Axe ModLoader.addName(m_OnyxHoe, "Onyx Hoe"); //Onyx Hoe ModLoader.addName(m_OnyxSword, "Onyx Sword"); //Onyx Sword //Textures //Blocks m_Amathestore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools//motools/blocks/Amathestore.png"); m_Zirconiumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Zirconiumore.png"); m_Bloodrockore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/BloodRockore.png"); m_Lightoniumore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Lightoniumore.png"); m_Onyxore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/motools/motools/blocks/Onyxore.png"); //Items m_Amathestshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestshard.png"); m_Zirconiumingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumingot.png"); m_Bloodshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodshard.png"); m_Lightoniumshard.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumshard.png"); m_Onyxgem.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxgem.png"); //ToolSets m_AmathestPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestpickaxe.png"); m_AmathestShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestshovel.png"); m_AmathestAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestaxe.png"); m_AmathestHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathesthoe.png"); m_AmathestSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Amathestsword.png"); m_ZirconiumPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumpickaxe.png"); m_ZirconiumShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumshovel.png"); m_ZirconiumAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumaxe.png"); m_ZirconiumHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Zirconiumhoe.png"); m_ZirconiumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/mottools/items/Zirconiumsword.png"); m_LightoniumPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumpickaxe.png"); m_LightoniumShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumshovel.png"); m_LightoniumAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumaxe.png"); m_LightoniumHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumhoe.png"); m_LightoniumSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Lightoniumsword.png"); m_BloodRockPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockpickaxe.png"); m_BloodRockShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockshovel.png"); m_BloodRockAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockaxe.png"); m_BloodRockHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrockhoe.png"); m_BloodRockSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Bloodrocksword.png"); m_OnyxPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxpickaxe.png"); m_OnyxShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxshovel.png"); m_OnyxAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxaxe.png"); m_OnyxHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxhoe.png"); m_OnyxSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/motools/motools/items/Onyxsword.png"); //Recipes //Amathest Pickaxe Recipe ModLoader.addRecipe(new ItemStack(m_AmathestPickaxe, 1), new Object []{ "yyy" , " z " , " z " , Character.valueOf('y'), m_Amathestshard , Character.valueOf('z'), Item.stick }); //Amathest Shovel Recipe ModLoader.addRecipe(new ItemStack(m_AmathestShovel, 1), new Object []{ " y " , " z " , " z " , Character.valueOf('y'), m_Amathestshard , Character.valueOf('z'), Item.stick }); //Amathest Axe Recipe ModLoader.addRecipe(new ItemStack(m_AmathestAxe, 1), new Object []{ "yy " , "yz " , " z " , Character.valueOf('y'), m_Amathestshard , Character.valueOf('z'), Item.stick }); //Amathest Hoe Recipe ModLoader.addRecipe(new ItemStack(m_AmathestHoe, 1), new Object []{ "yy " , " z " , " z " , Character.valueOf('y'), m_Amathestshard , Character.valueOf('z'), Item.stick }); //Amathest Sword Recipe ModLoader.addRecipe(new ItemStack(m_AmathestSword, 1), new Object []{ " y " , " y " , " z " , Character.valueOf('y'), m_Amathestshard , Character.valueOf('z'), Item.stick }); //Zirconium Pickaxe Recipe ModLoader.addRecipe(new ItemStack(m_ZirconiumPickaxe, 1), new Object []{ "yyy" , " z " , " z " , Character.valueOf('y'), m_Zirconiumingot , Character.valueOf('z'), Item.stick }); //Zirconium Shovel Recipe ModLoader.addRecipe(new ItemStack(m_ZirconiumShovel, 1), new Object []{ " y " , " z " , " z " , Character.valueOf('y'), m_Zirconiumingot , Character.valueOf('z'), Item.stick }); //Zirconium Axe Recipe ModLoader.addRecipe(new ItemStack(m_ZirconiumAxe, 1), new Object []{ "yy " , "yz " , " z " , Character.valueOf('y'), m_Zirconiumingot , Character.valueOf('z'), Item.stick }); //Zirconium Hoe Recipe ModLoader.addRecipe(new ItemStack(m_ZirconiumHoe, 1), new Object []{ "yy " , " z " , " z " , Character.valueOf('y'), m_Zirconiumingot , Character.valueOf('z'), Item.stick }); //Zirconium Sword Recipe ModLoader.addRecipe(new ItemStack(m_ZirconiumSword, 1), new Object []{ " y " , " y " , " z " , Character.valueOf('y'), m_Zirconiumingot , Character.valueOf('z'), Item.stick }); //Lightonium Pickaxe Recipe ModLoader.addRecipe(new ItemStack(m_LightoniumPickaxe, 1), new Object []{ "yyy" , " z " , " z " , Character.valueOf('y'), m_Lightoniumshard , Character.valueOf('z'), Item.stick }); //Lightonium Shovel Recipe ModLoader.addRecipe(new ItemStack(m_LightoniumShovel, 1), new Object []{ " y " , " z " , " z " , Character.valueOf('y'), m_Lightoniumshard , Character.valueOf('z'), Item.stick }); //Lightonium Axe Recipe ModLoader.addRecipe(new ItemStack(m_LightoniumAxe, 1), new Object []{ "yy " , "yz " , " z " , Character.valueOf('y'), m_Lightoniumshard , Character.valueOf('z'), Item.stick }); //Lightonium Hoe Recipe ModLoader.addRecipe(new ItemStack(m_LightoniumHoe, 1), new Object []{ "yy " , " z " , " z " , Character.valueOf('y'), m_Lightoniumshard , Character.valueOf('z'), Item.stick }); //Lightonium Sword Recipe ModLoader.addRecipe(new ItemStack(m_LightoniumSword, 1), new Object []{ " y " , " y " , " z " , Character.valueOf('y'), m_Lightoniumshard , Character.valueOf('z'), Item.stick }); //BloodRock Pickaxe Recipe ModLoader.addRecipe(new ItemStack(m_BloodRockPickaxe, 1), new Object []{ "yyy" , " z " , " z " , Character.valueOf('y'), m_Bloodshard , Character.valueOf('z'), Item.stick }); //BloodRock Shovel Recipe ModLoader.addRecipe(new ItemStack(m_BloodRockShovel, 1), new Object []{ " y " , " z " , " z " , Character.valueOf('y'), m_Bloodshard , Character.valueOf('z'), Item.stick }); //BloodRock Axe Recipe ModLoader.addRecipe(new ItemStack(m_BloodRockAxe, 1), new Object []{ "yy " , "yz " , " z " , Character.valueOf('y'), m_Bloodshard , Character.valueOf('z'), Item.stick }); //BloodRock Hoe Recipe ModLoader.addRecipe(new ItemStack(m_BloodRockHoe, 1), new Object []{ "yy " , " z " , " z " , Character.valueOf('y'), m_Bloodshard , Character.valueOf('z'), Item.stick }); //BloodRock Sword Recipe ModLoader.addRecipe(new ItemStack(m_BloodRockSword, 1), new Object []{ " y " , " y " , " z " , Character.valueOf('y'), m_Bloodshard , Character.valueOf('z'), Item.stick }); //Onyx Pickaxe Recipe ModLoader.addRecipe(new ItemStack(m_OnyxPickaxe, 1), new Object []{ "yyy" , " z " , " z " , Character.valueOf('y'), m_Onyxgem , Character.valueOf('z'), Item.stick }); //Onyx Shovel Recipe ModLoader.addRecipe(new ItemStack(m_OnyxShovel, 1), new Object []{ " y " , " z " , " z " , Character.valueOf('y'), m_Onyxgem , Character.valueOf('z'), Item.stick }); //Onyx Axe Recipe ModLoader.addRecipe(new ItemStack(m_OnyxAxe, 1), new Object []{ "yy " , "yz " , " z " , Character.valueOf('y'), m_Onyxgem , Character.valueOf('z'), Item.stick }); //Onyx Hoe Recipe ModLoader.addRecipe(new ItemStack(m_OnyxHoe, 1), new Object []{ "yy " , " z " , " z " , Character.valueOf('y'), m_Onyxgem , Character.valueOf('z'), Item.stick }); //Onyx Sword Recipe ModLoader.addRecipe(new ItemStack(m_OnyxSword, 1), new Object []{ " y " , " y " , " z " , Character.valueOf('y'), m_Onyxgem , Character.valueOf('z'), Item.stick }); //Furnace Recipes //Zirconiumore Smelting Recipe ModLoader.addSmelting (m_Zirconiumore.blockID, new ItemStack(m_Zirconiumingot, 1) ); } public void GenerateSurface(World worldMod, Random rand, int i, int j) { for(int eexeop = 0; eexeop < 16; eexeop++) { int j6 = i + rand.nextInt(2); int k9 = rand.nextInt(16); int j12 = j + rand.nextInt(2); new WorldGenMinable(m_Zirconiumore.blockID, 2).generate(worldMod, rand, j6, k9, j12); } for(int uewg = 0; uewg < 16; uewg++) { int j6 = i + rand.nextInt(2); int k9 = rand.nextInt(16); int j12 = j + rand.nextInt(2); new WorldGenMinable(m_Bloodrockore.blockID, 4).generate(worldMod, rand, j6, k9, j12); } for(int vrxegsw = 0; vrxegsw < 128; vrxegsw++) { int j6 = i + rand.nextInt(16); int k9 = rand.nextInt(128); int j12 = j + rand.nextInt(16); new WorldGenMinable(m_Onyxore.blockID, 2).generate(worldMod, rand, j6, k9, j12); } } }please help
Edit: yay spoilers worked
look at model biped
from java 92
to java 105
just copy the legs and arms and that into your own model but change to suit your model
hope I helped