Starting July 30th, you will no longer be able to log in to a Curse account that was not merged with a Twitch account. If you have not yet merged your Curse account with a Twitch account, please do so here! Otherwise, your account and its content will be inaccessible.
Dismiss
  • 0

    posted a message on How to use Immibis' BON (Bearded Octo Nemesis) program to decompile your mod.

    The download link does not work anymore. Can you give me another link to download it please?

    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Sword effect

    I'm sorry, I could not be too present lately because I have classes. I would do my best to be there.

    Posted in: Modification Development
  • 0

    posted a message on Sword effect

    But is there a command how really exist ti make what I want ?

    Posted in: Modification Development
  • 0

    posted a message on Sword effect

    If I understand, you mean that I have to add the EnchantmentBlindingCurse but is it not an enchantment who was added in a version of minecraft but after the 1.7.10 ?

    Posted in: Modification Development
  • 1

    posted a message on Sword effect

    I did not really understand. Where must Iput this function in my program ?


    In my sword class ?


    package com.black.mod.items;
    
    import net.minecraft.item.ItemSword;
    
    public class ItemBlackSword extends ItemSword
    {
    
        public ItemBlackSword(ToolMaterial p_i45356_1_)
        {
            super(p_i45356_1_);
        }
        
    }

    Or somewhere else ?

    Posted in: Modification Development
  • 0

    posted a message on Sword effect

    Hello,


    I search the declaration, where I can find the command who is use to apply an potion effect on a player who is damaged by a player using a special weapon. I have see this event on a minecraft multiplayer server who use some mods, there is a sword how is the demonic sword and she give an blindness effect when a player is hit by this sword. Can anyone help me ?


    Thank you for an anser.

    Posted in: Modification Development
  • 0

    posted a message on Problem with Effect to food

    Can you give me an example please ? In my programm if it's possible

    Posted in: Modification Development
  • 0

    posted a message on Problem with Effect to food

    Can you help me to introduce this command in my programm ?


    Command to use


    protected void onFoodEaten(ItemStack p_77849_1_, World p_77849_2_, EntityPlayer p_77849_3_)
    {
    if (!p_77849_2_.isRemote && this.potionId > 0 && p_77849_2_.rand.nextFloat() < this.potionEffectProbability)
    {
    p_77849_3_.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier));
    }
    }


    Programm :


    package com.black.mod.items;

    import net.minecraft.item.Item;
    import net.minecraft.item.ItemFood;
    import net.minecraft.potion.Potion;

    public class ItemFoodMod extends ItemFood
    {
    public ItemFoodMod(int p_i45339_1_, float p_i45339_2_, boolean p_i45339_3_) {
    super(p_i45339_1_, p_i45339_2_, p_i45339_3_);
    }

    }

    Posted in: Modification Development
  • 0

    posted a message on Problem with Effect to food

    Thank You

    Posted in: Modification Development
  • 0

    posted a message on Problem with Effect to food

    Hey,

    I have a problem :

    I have intruduce this command to my food :


    this.setPotionEffect(Potion.blindness.id, 30, 5, 1.0F);


    I have test it and it worked and then I add this command :


    this.setPotionEffect(Potion.regeneration.id, 30, 2, 1.0F);


    but the blindness don't work. I give my entire program underneath :


    package com.black.mod.items;

    import net.minecraft.item.Item;
    import net.minecraft.item.ItemFood;
    import net.minecraft.potion.Potion;

    public class ItemFoodMod extends ItemFood
    {
    public ItemFoodMod(int p_i45339_1_, float p_i45339_2_, boolean p_i45339_3_) {
    super(p_i45339_1_, p_i45339_2_, p_i45339_3_);
    this.setPotionEffect(Potion.blindness.id, 30, 5, 1.0F);
    this.setPotionEffect(Potion.regeneration.id, 30, 2, 1.0F);
    }

    }

    Posted in: Modification Development
  • 0

    posted a message on How to make an effect on a eaten food ?

    Thank you, this answer was complete but now, where am I supposed to put it in my program?

    My program for the food :


    package com.black.mod.items;

    import net.minecraft.item.Item;
    import net.minecraft.item.ItemFood;

    public class ItemFoodMod extends ItemFood
    {
    public ItemFoodMod(int p_i45339_1_, float p_i45339_2_, boolean p_i45339_3_)
    {
    super(p_i45339_1_, p_i45339_2_, p_i45339_3_);

    }

    }

    Posted in: Modification Development
  • 0

    posted a message on How to make an effect on a eaten food ?

    I have a problem,

    I would add some effect to my created food in my mod on eclipse.

    Can anyone help me because I don't know where I must paste the command after my line of code from my food.

    The line code do use is normally :


    protected void onFoodEaten(ItemStack p_77849_1_, World p_77849_2_, EntityPlayer p_77849_3_)
    {
    if (!p_77849_2_.isRemote && this.potionId > 0 && p_77849_2_.rand.nextFloat() < this.potionEffectProbability)
    {
    p_77849_3_.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier));
    }
    }


    And can anyone explain what i must replace to make somme effect.

    PS: My English is not very good because I'm french :D

    Posted in: Modification Development
  • To post a comment, please or register a new account.