Hi! I've looked this over many times and can't figure out why this wouldn't work. Please help me.
mod_Daisy
package net.minecraft.src;
import java.util.Random;
public class mod_Daisy extends BaseMod
{
public static final BlockFlower whiteDaisy = (BlockFlower) new BlockFlower(240,23).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setBlockName("whitedaisy");
public mod_Daisy()
{
ModLoader.registerBlock(whiteDaisy);
ModLoader.addName(whiteDaisy,"White Daisy");
//whiteDaisy.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mod_Daisy/whiteDaisy.png");
}
public void GenerateSurface(World currentWorld,Random random, int chunk_X, int chunk_Z)
{
for(int var2 = 0; var2 < 2; ++var2)
{
int x = chunk_X + random.nextInt(16)+8;
int y = random.nextInt(60);
int z = chunk_Z + random.nextInt(16)+8;
(new WorldGenFlowers(mod_Daisy.whiteDaisy.blockID)).generate(currentWorld, random, x, y, z);
}
}
public void load(){};
public String getVersion()
{
return "1.3.1";
}
}
Hope you have more luck than i do. Thanks in advance!
Is ZombieTamer a Block? if not it'll be "/gui/items.png"....other than that....I cant really see whats wrong. Commenting out everything and make a simple recipe for an existing item, just to test if its somethign wrong with mcp. I'm still going over your code....
Zombe's Mod. Before you say anything. Look into it. You can disable the aspects you dont want. You can just add teh AutoStore aspect and disable everything else.(I've done that before.)
public static final Item LegZombie = new Item(3001).setItemName("LegZombie");
public static final Item LegsZombie = new Item(3002).setItemName("LegsZombie");
public static final Item ArmZombie = new Item(3003).setItemName("ArmZombie");
///////////////////Continue with the rest like above..../////////////////////////////////
Did you check that you place your images in the same place?
*If you are using eclipse and mcp it should be in the eclipse folder, not the others.*
Hi! I kinda just came back to modding minecraft. And I wish someone can help me with this situation. I CANT SEE MY ARROWS!!! This is driving me crazy. I spent 2 entire days trying to make it work, but to no success. If anyone can help, I really appreciate it. Thanks in advance. Here are the scripts:
mod_Blowpipe:
package net.minecraft.src;
import java.util.Map;
public class mod_Blowpipe extends BaseMod
{
public static final Item blowpipe = new ItemBlowpipe(642).setItemName("blowpipe");
public mod_Blowpipe()
{
//Blowpipe
ModLoader.addName(blowpipe,"Blowpipe");
blowpipe.iconIndex = ModLoader.addOverride("/gui/items.png","/mod_Blowpipe/blowpipe.png");
ModLoader.addRecipe(new ItemStack(blowpipe,1),new Object[]
{
"# "," #",
Character.valueOf('#'), Item.stick,
});
//Seeds
ModLoader.registerEntityID(EntitySeeds.class, "Seeds", ModLoader.getUniqueEntityId());
}
public void addRenderer(Map map)
{
map.put(EntitySeeds.class, new RenderSeeds());
}
public void load(){};
public String getVersion()
{
return "1.3.1";
}
}
ItemBlowpipe:
package net.minecraft.src;
public class ItemBlowpipe extends Item
{
public ItemBlowpipe(int par1)
{
super(par1);
this.maxStackSize = 1;
this.setMaxDamage(80);
this.setTabToDisplayOn(CreativeTabs.tabCombat);
}
/**
* called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount
*/
public void onPlayerStoppedUsing(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4)
{
boolean var5 = par3EntityPlayer.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, par1ItemStack) > 0;
if (var5 || par3EntityPlayer.inventory.hasItem(Item.seeds.shiftedIndex))
{
int var6 = this.getMaxItemUseDuration(par1ItemStack) - par4;
float var7 = (float)var6 / 20.0F;
var7 = (var7 * var7 + var7 * 2.0F) / 3.0F;
if ((double)var7 < 0.1D)
{
return;
}
if (var7 > 1.0F)
{
var7 = 1.0F;
}
EntitySeeds var8 = new EntitySeeds(par2World, par3EntityPlayer, var7 * 2.0F);
if (var7 == 1.0F)
{
var8.func_70243_d(true);
}
int var9 = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, par1ItemStack);
if (var9 > 0)
{
var8.setDamage(var8.getDamage() + (double)var9 * 0.5D + 0.5D);
}
int var10 = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, par1ItemStack);
if (var10 > 0)
{
var8.setKnockbackStrength(var10);
}
if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, par1ItemStack) > 0)
{
var8.setFire(100);
}
par1ItemStack.damageItem(1, par3EntityPlayer);
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + var7 * 0.5F);
if (var5)
{
var8.canBePickedUp = 2;
}
else
{
par3EntityPlayer.inventory.consumeInventoryItem(Item.seeds.shiftedIndex);
}
if (!par2World.isRemote)
{
par2World.spawnEntityInWorld(var8);
}
}
}
public ItemStack onFoodEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
return par1ItemStack;
}
/**
* How long it takes to use or consume an item
*/
public int getMaxItemUseDuration(ItemStack par1ItemStack)
{
return 72000;
}
/**
* returns the action that specifies what animation to play when the items is being used
*/
public EnumAction getItemUseAction(ItemStack par1ItemStack)
{
return EnumAction.bow;
}
/**
* Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
*/
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if (par3EntityPlayer.capabilities.isCreativeMode || par3EntityPlayer.inventory.hasItem(Item.seeds.shiftedIndex))
{
par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack));
}
return par1ItemStack;
}
/**
* Return the enchantability factor of the item, most of the time is based on material.
*/
public int getItemEnchantability()
{
return 1;
}
}
0
0
mod_Daisy
Hope you have more luck than i do. Thanks in advance!
0
0
0
public static final Item LegZombie = new Item(3001).setItemName("LegZombie");
public static final Item LegsZombie = new Item(3002).setItemName("LegsZombie");
public static final Item ArmZombie = new Item(3003).setItemName("ArmZombie");
///////////////////Continue with the rest like above..../////////////////////////////////
Did you check that you place your images in the same place?
*If you are using eclipse and mcp it should be in the eclipse folder, not the others.*
0
public void load(){};
public String getVersion()
{
return "1.3.1";
}
0
Like so:
ModLoader.addShapelessRecipe(new ItemStack(ZombieTamer, 64), new Object[]
{Block.dirt});
0
mod_Blowpipe:
ItemBlowpipe:
EntitySeeds:
RenderSeeds: