All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    here are your diamonds as promised

    :DBlock: :DBlock: :DBlock:
    :Notch:
    :Notch:
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    I know I just don't know how to use forge
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    Helppppp
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    Diamonds people diamonds


    :DPANTS: :DPANTS: :DORE: :DHOE: :DH: :DPA: :DPA: :DS: :DSWORD: :DSWORD: :DSWORD: :DSWORD: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock: :DBlock:
    Posted in: Modification Development
  • 0

    posted a message on Star Trek Mod
    VERY ambitious start bye dividing it into steps Ill post my blaster code on here, it still shoots arrows and uses up my ammo in one go rather than several, though changing an arrow to a blaster-bolt is easy also it does not have any durability I did that on purpose though.

    sryy but I do not know how to use spoilers

    public static final String[] bowPullIconNameArray = new String[] {"blaster_pull_0", "blaster_pull_1", "blaster_pull_2"};
    private Icon[] iconArray;








    public blaster(int par1)
    {
    super(par1);
    this.maxStackSize = 1;

    this.setCreativeTab(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(mod_blasterfuel.blasterAmmo.itemID))
    {
    int var6 = this.getMaxItemUseDuration(par1ItemStack) - par4;
    float var7 = (float)var6 / 5.0F;
    var7 = (var7 * var7 + var7 * 2.0F) / 3.0F;

    if ((double)var7 <>
    {
    return;
    }

    if (var7 > 1.0F)
    {
    var7 = 1.0F;
    }

    EntityArrow var8 = new EntityArrow(par2World, par3EntityPlayer, var7 * 2.0F);

    if (var7 == 1.0F)
    {
    var8.setIsCritical(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 = var8.canBePickedUp;
    }
    else
    {
    par3EntityPlayer.inventory.consumeInventoryItem(mod_blasterfuel.blasterAmmo.itemID);
    }

    if (!par2World.isRemote)
    {
    par2World.spawnEntityInWorld(var8);
    }
    }
    }

    public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
    return par1ItemStack;
    }

    /**
    * How long it takes to use or consume an item
    */
    public int getMaxItemUseDuration(ItemStack par1ItemStack)
    {
    return 7200;
    }

    /**
    * 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
    */
    //maybe the duration thingy is here
    public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
    if (par3EntityPlayer.capabilities.isCreativeMode || par3EntityPlayer.inventory.hasItem(mod_blasterfuel.blasterAmmo.itemID))
    {
    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;
    }

    public void registerIcons(IconRegister par1IconRegister)
    {
    super.registerIcons(par1IconRegister);
    this.iconArray = new Icon[bowPullIconNameArray.length];

    for (int var2 = 0; var2 < this.iconarray.length;="" var2="">
    {
    this.iconArray[var2] = par1IconRegister.registerIcon(bowPullIconNameArray[var2]);
    }
    }

    /**
    * used to cycle through icons based on their used duration, i.e. for the bow
    */
    public Icon getItemIconForUseDuration(int par1)
    {
    return this.iconArray[par1];
    }



    }








    ps the blaster wont work becuase you need to add it in the item class
    Posted in: Mods Discussion
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    diamonds for people who answer
    :DBlock:
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    Anyone?
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 modloader how to damage items and add items
    I am trying to get it so that when I use a certain item it damages a different item is that possible using modloader for 1.5.2, and if so what is the code for doing so?

    I am also trying to get it so that whenever I use an item up, i get another item how would I do that?

    Finally, how do i make so that when I use an item in a crafting recipe I get it back in a different form,like a milk bucket for cake?



    Thank you in advance.
    Posted in: Modification Development
  • 0

    posted a message on Forestry Bee Breeding Guide (With Sengir's Permission) Muffin Edition AKA Whole new guide in progress+ HQM Bee Tutorial Quest
    Quote from jocan2003

    Well may i suggest making a few apiary with a couple forest drone/princess and simply smash up all extra drone, its a renewable ressouce while queens/princess arent. I would really use that instead of queens. Might take a bit longuer, but in the end, its much better.

    As for Mystcraft it creates a new dimension with random property, its a mod the server owner will have to add manually. It basicly cre3ate new dimension with random properties, and if the biome the new dimension naturaly support hives ( forest biomes will create forest hives and marbled if i remember correctly. ) So you simply have to make a new dimension, run around and try to find hives.

    And for rocky hives, only quarry will give the princess, anything else will simply break them ( well everything exept quarry or the scoop thing )

    K thanks, I will probably give my imperial bloodline 4X fertility, sigh time to make my boiler setup to fuel the expensive genetics process
    Posted in: Mods Discussion
  • 0

    posted a message on Forestry Bee Breeding Guide (With Sengir's Permission) Muffin Edition AKA Whole new guide in progress+ HQM Bee Tutorial Quest
    Quote from jocan2003

    Also i forgot if your host has mystcraft installed as a bonus, its quite easy to get hives. But only way would be a swarmer/quarry if they were all taken, or if you feel like it, trading with other player. Im sitting on over 60 princess myself and i only got 3 from other dimension using mystcraft.

    Thank you.The reason I want princesses is for liquid dna as analyzed queens give you 50% full in the genepool.
    How do get bees from another dimension using mystcraft?
    Also, do you know if fillers or turtles while give my princesses, or is it only Quarries?
    Posted in: Mods Discussion
  • 0

    posted a message on Forestry Bee Breeding Guide (With Sengir's Permission) Muffin Edition AKA Whole new guide in progress+ HQM Bee Tutorial Quest
    I am sorry if any of my questions have been asked before.

    I am using the Mindcrack ftb pack. I am on the bee breeding difficulty that comes with the pack, and I am wondering if I can turn my useless bee gene serums into empty serum vials?

    And two, can I make more princesses without using a swarmer or adventuring for hives?(I am willing to get a balanced mod to do this if you cant do it in "vanilla" Mindcrack ftb?
    Posted in: Mods Discussion
  • 0

    posted a message on Iasanator's Skins
    edward elric, scar, both armstrongs hawkey, wrath, greed/ling, roy mustang, hohenhiem from full metal alchemist brotherhood please im in no hurry pm me when there down but they should be public ill give you diamonds
    Posted in: Skins
  • 0

    posted a message on [1.2.5] Ships and Boats -- Looking for programmers who may take the lead developing this mod. See the main post.
    suggestion if already said well i did not read whole forum every block has weight, and some with a negative wight
    Posted in: WIP Mods
  • 0

    posted a message on [1.3.2] AdventureCraft - NPC Pathing Blocks [R1095]
    is there any way to reduce lag it is a lagfest on my computer
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.