I think i have a rather hard question. My question is, how can i add in this lines :
public int quantityDropped(Random random)
{
return 1; // How many veggie you want? 1, 2, 50?
}
and
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
if(j == 0)
{
return blockIndexInTexture;
}
if(j == 1)
{
return mod_crops.xxxCrop1;
}
if(j == 2)
{
return mod_crops.xxxCrop2; // In order to not have to change a lot more code we can just make
} // the plant grow the same but make it "look" like it has fewer steps
if(j == 3) // Through 8 steps the sequence is 0, 1, 1, 2, 2, 3, 3, 4.
{
return mod_crops.xxxCrop3;
}
if(j == 4)
{
return mod_crops.xxxCrop4;
}
if(j == 5)
{
return mod_crops.xxxCrop5;
}
if(j == 6)
{
return mod_crops.xxxCrop6;
}
if(j == 7)
{
return mod_crops.xxxCrop7;
}
return -1;
}
and
protected boolean canThisPlantGrowOnThisBlockID(int i)
{
return i == Block.tilledField.blockID;
}
variables, that i can change in my mod_xxx.java e.g.
xxxCrop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/crops/xxx/crops/xxxCrop0.png");
so like a xxxCrop.canThisPlantGrowOnThisBlockID = Block.tilledField.blockID; line













