Jump to content

[Solved] Help with New Bow Using Forge (1.5.2)


BlueGhast90

Recommended Posts

I am trying to Make the bow animated and I have all three bow animated textures, but when I right click the bow, it disappers and it shoots an arrow then the bow comes back

 

Here's my code

 

 

package AeroMod.Tutorial;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import AeroMod.Tutorial.*;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.enchantment.Enchantment;

import net.minecraft.enchantment.EnchantmentHelper;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.entity.projectile.EntityArrow;

import net.minecraft.item.EnumAction;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.Icon;

import net.minecraft.world.World;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.event.entity.player.ArrowLooseEvent;

import net.minecraftforge.event.entity.player.ArrowNockEvent;

 

public class AzulBow extends Item

{

    public static final String[] bowPullIconNameArray = new String[] {"blueeagle:angelbow_pull_0", "blueeagle:angelbow_pull_1", "blueeagle:angelbow_pull_2"};

    @SideOnly(Side.CLIENT)

    private Icon[] iconArray;

 

    public AzulBow(int par1)

    {

        super(par1);

        this.maxStackSize = 1;

        this.setMaxDamage(384);

        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)

    {

        int j = this.getMaxItemUseDuration(par1ItemStack) - par4;

 

        ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j);

        MinecraftForge.EVENT_BUS.post(event);

        if (event.isCanceled())

        {

            return;

        }

        j = event.charge;

 

        boolean flag = par3EntityPlayer.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, par1ItemStack) > 0;

 

        if (flag || par3EntityPlayer.inventory.hasItem(Item.arrow.itemID))

        {

            float f = (float)j / 20.0F;

            f = (f * f + f * 2.0F) / 3.0F;

 

            if ((double)f < 0.1D)

            {

                return;

            }

 

            if (f > 1.0F)

            {

                f = 1.0F;

            }

 

            EntityArrow entityarrow = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F);

 

            if (f == 1.0F)

            {

                entityarrow.setIsCritical(true);

            }

 

            int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, par1ItemStack);

 

            if (k > 0)

            {

                entityarrow.setDamage(entityarrow.getDamage() + (double)k * 0.5D + 0.5D);

            }

 

            int l = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, par1ItemStack);

 

            if (l > 0)

            {

                entityarrow.setKnockbackStrength(l);

            }

 

            if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, par1ItemStack) > 0)

            {

                entityarrow.setFire(100);

            }

 

            par1ItemStack.damageItem(1, par3EntityPlayer);

            par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

 

            if (flag)

            {

                entityarrow.canBePickedUp = 2;

            }

            else

            {

                par3EntityPlayer.inventory.consumeInventoryItem(Item.arrow.itemID);

            }

 

            if (!par2World.isRemote)

            {

                par2World.spawnEntityInWorld(entityarrow);

            }

        }

    }

 

    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 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)

    {

        ArrowNockEvent event = new ArrowNockEvent(par3EntityPlayer, par1ItemStack);

        MinecraftForge.EVENT_BUS.post(event);

        if (event.isCanceled())

        {

            return event.result;

        }

 

        if (par3EntityPlayer.capabilities.isCreativeMode || par3EntityPlayer.inventory.hasItem(Item.arrow.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;

    }

   

 

 

    @SideOnly(Side.CLIENT)

    private Icon[] azulbow = new Icon[4];

    public void updateIcons(IconRegister par1IconRegister)

  {

   

            itemIcon = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_0");

            for (int N = 0; N < 4; N++)

            {

                    this.azulbow[N] = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_" + N);

                   

            }

    }

    public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)

    {

            if(player.getItemInUse() == null) return this.itemIcon;

            int time = stack.getMaxItemUseDuration() - useRemaining;

            if (time >= 18)

            {

                    return azulbow[3];

            }

            else if (time > 13)

            {

                    return azulbow[2];

            }

            else if (time > 0)

            {

                    return azulbow[1];

            }           

            return azulbow[0];

            }

    }

 

 

 

Some help would be greatly appreciated

Link to comment
Share on other sites

I've never actually done any work with bows, but my first instinct would be to add

 

System.out.println(time);

 

underneath this line

 

 int time = stack.getMaxItemUseDuration() - useRemaining;

 

then check the message that prints out in the Eclipse console.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

In the quotations? What do you mean?

 

If you mean you get an error in the Eclipse console, that likely means that the variable 'stack' is null. Otherwise, please explain what you mean.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

sorry about that, i misplaced the code you gave me... In the console it gives me

 

[ForgeModLoader]Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled

 

2013-05-09 23:21:07 [iNFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available

 

also when I right click, it shows numbers (assuming those are for timing)

Link to comment
Share on other sites

 

 

2013-05-09 23:23:18 [iNFO] [sTDOUT] 1

2013-05-09 23:23:18 [iNFO] [sTDOUT] 3

2013-05-09 23:23:18 [iNFO] [sTDOUT] 4

2013-05-09 23:23:18 [iNFO] [sTDOUT] 4

2013-05-09 23:23:18 [iNFO] [sTDOUT] 6

2013-05-09 23:23:18 [iNFO] [sTDOUT] 6

2013-05-09 23:23:18 [iNFO] [sTDOUT] 8

2013-05-09 23:23:19 [iNFO] [sTDOUT] 8

2013-05-09 23:23:19 [iNFO] [sTDOUT] 9

2013-05-09 23:23:19 [iNFO] [sTDOUT] 9

2013-05-09 23:23:19 [iNFO] [sTDOUT] 10

2013-05-09 23:23:19 [iNFO] [sTDOUT] 10

2013-05-09 23:23:19 [iNFO] [sTDOUT] 11

2013-05-09 23:23:19 [iNFO] [sTDOUT] 11

2013-05-09 23:23:19 [iNFO] [sTDOUT] 12

2013-05-09 23:23:19 [iNFO] [sTDOUT] 12

2013-05-09 23:23:19 [iNFO] [sTDOUT] 13

2013-05-09 23:23:19 [iNFO] [sTDOUT] 14

2013-05-09 23:23:19 [iNFO] [sTDOUT] 14

2013-05-09 23:23:19 [iNFO] [sTDOUT] 15

2013-05-09 23:23:19 [iNFO] [sTDOUT] 15

2013-05-09 23:23:19 [iNFO] [sTDOUT] 16

2013-05-09 23:23:19 [iNFO] [sTDOUT] 16

2013-05-09 23:23:19 [iNFO] [sTDOUT] 16

 

 

 

It also gives me this

2013-05-09 23:23:14 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?

Link to comment
Share on other sites

Okay, thanks. Just wanted to verify that it wasn't something silly.

Firstly, you should add

 

        super.updateIcons(par1IconRegister);

inside the updateIcons method. See if that fixes it. Even if not, you should probably keep it.

 

Next; At the bottom, where you set the default Icon? Swap that out with one of the textures that isn't appearing. It's possible that the icon you're trying to switch to isn't actually registered, and might not appear. If that's the case- you've found your problem.

 

If not, start adding println messages in areas you think might be causing the problem- the more information you can gather, the more likely you'll be able to solve the issue.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

I get an error for the "updateIcons" and I dont get what you mean by default

 

 

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import AeroMod.Tutorial.*;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.enchantment.Enchantment;

import net.minecraft.enchantment.EnchantmentHelper;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.entity.projectile.EntityArrow;

import net.minecraft.item.EnumAction;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.Icon;

import net.minecraft.world.World;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.event.entity.player.ArrowLooseEvent;

import net.minecraftforge.event.entity.player.ArrowNockEvent;

 

public class AzulBow extends Item

{

    public static final String[] bowPullIconNameArray = new String[] {"blueeagle:angelbow_pull_0", "blueeagle:angelbow_pull_1", "blueeagle:angelbow_pull_2"};

    @SideOnly(Side.CLIENT)

    private Icon[] iconArray;

 

    public AzulBow(int par1)

    {

        super(par1);

        this.maxStackSize = 1;

        this.setMaxDamage(384);

        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)

    {

        int j = this.getMaxItemUseDuration(par1ItemStack) - par4;

 

        ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j);

        MinecraftForge.EVENT_BUS.post(event);

        if (event.isCanceled())

        {

            return;

        }

        j = event.charge;

 

        boolean flag = par3EntityPlayer.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, par1ItemStack) > 0;

 

        if (flag || par3EntityPlayer.inventory.hasItem(Item.arrow.itemID))

        {

            float f = (float)j / 20.0F;

            f = (f * f + f * 2.0F) / 3.0F;

 

            if ((double)f < 0.1D)

            {

                return;

            }

 

            if (f > 1.0F)

            {

                f = 1.0F;

            }

 

            EntityArrow entityarrow = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F);

 

            if (f == 1.0F)

            {

                entityarrow.setIsCritical(true);

            }

 

            int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, par1ItemStack);

 

            if (k > 0)

            {

                entityarrow.setDamage(entityarrow.getDamage() + (double)k * 0.5D + 0.5D);

            }

 

            int l = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, par1ItemStack);

 

            if (l > 0)

            {

                entityarrow.setKnockbackStrength(l);

            }

 

            if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, par1ItemStack) > 0)

            {

                entityarrow.setFire(100);

            }

 

            par1ItemStack.damageItem(1, par3EntityPlayer);

            par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

 

            if (flag)

            {

                entityarrow.canBePickedUp = 2;

            }

            else

            {

                par3EntityPlayer.inventory.consumeInventoryItem(Item.arrow.itemID);

            }

 

            if (!par2World.isRemote)

            {

                par2World.spawnEntityInWorld(entityarrow);

            }

        }

    }

 

    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 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)

    {

        ArrowNockEvent event = new ArrowNockEvent(par3EntityPlayer, par1ItemStack);

        MinecraftForge.EVENT_BUS.post(event);

        if (event.isCanceled())

        {

            return event.result;

        }

 

        if (par3EntityPlayer.capabilities.isCreativeMode || par3EntityPlayer.inventory.hasItem(Item.arrow.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;

    }

   

 

 

    @SideOnly(Side.CLIENT)

    private Icon[] azulbow = new Icon[4];

    public void updateIcons(IconRegister par1IconRegister)

  {

            super.updateIcons(par1IconRegister);

            itemIcon = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_0");

            for (int N = 0; N < 4; N++)

           

            {

                    this.azulbow[N] = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_" + N);

                   

            }

    }

    public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)

    {

            if(player.getItemInUse() == null) return this.itemIcon;

           

            int time = stack.getMaxItemUseDuration() - useRemaining;

            System.out.println(time);

            if (time >= 18)

            {

                    return azulbow[3];

            }

            else if (time > 13)

            {

                    return azulbow[2];

            }

            else if (time > 0)

            {

                    return azulbow[1];

            }           

            return azulbow[0];

            }

    }

 

 

 

Sorry I am just beginning to Mod with Forge, so I'm not so good with the Terms (Method, Icon....)

 

Link to comment
Share on other sites

Well, "method" is a coding term... but, besides that, the 'Icon' is the image you're updating so that the bow appears to be animated. At least, that's what it seems like. All the way at the bottom, where you return different azulBow[#] icons, add

 

return azulbow[3];

at the very top, so that only that returns. Change that 3 from 0-3 and run it every time you change it, and see what happens. if the bow ever stops rendering entirely, tell me.

 

Now, you say that updateIcons has an error..? If it's a problem with a 'parent' class, you should move the @SideOnly(Side.CLIENT) down a line, beneath the azulBow[] variable.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

That's...really weird, but I don't know what's causing that.  ???

It shouldn't matter TOO much, though... for now, comment it out and do the other stuff I told you. I need to get to sleep, though. If all of the icons are rendering correctly, then look into the ItemBow class, and look for any obvious discrepancies.

 

Good luck.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

Sorry for the late night, but i went to ItemBow ans copy/pasted the super.updateIcons(par1IconRegister); from that and it worked somehow  ???

 

The main bow renders as usual, but the rest don't. I've tried changing the return image to both 2 & 3. but no luck

 

Here's my code again if you can find anything else

 

** Left out imports to save space **

public class AzulBow extends Item
{
    public static final String[] bowPullIconNameArray = new String[] {"azulbow_1", "azulbow_2", "azulbow_3"};
    @SideOnly(Side.CLIENT)
    private Icon[] iconArray;

    public AzulBow(int par1)
    {
        super(par1);
        this.maxStackSize = 1;
        this.setMaxDamage(384);
        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)
    {
        int j = this.getMaxItemUseDuration(par1ItemStack) - par4;

        ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j);
        MinecraftForge.EVENT_BUS.post(event);
        if (event.isCanceled())
        {
            return;
        }
        j = event.charge;

        boolean flag = par3EntityPlayer.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, par1ItemStack) > 0;

        if (flag || par3EntityPlayer.inventory.hasItem(Item.arrow.itemID))
        {
            float f = (float)j / 20.0F;
            f = (f * f + f * 2.0F) / 3.0F;

            if ((double)f < 0.1D)
            {
                return;
            }

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

            EntityArrow entityarrow = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F);

            if (f == 1.0F)
            {
                entityarrow.setIsCritical(true);
            }

            int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, par1ItemStack);

            if (k > 0)
            {
                entityarrow.setDamage(entityarrow.getDamage() + (double)k * 0.5D + 0.5D);
            }

            int l = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, par1ItemStack);

            if (l > 0)
            {
                entityarrow.setKnockbackStrength(l);
            }

            if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, par1ItemStack) > 0)
            {
                entityarrow.setFire(100);
            }

            par1ItemStack.damageItem(1, par3EntityPlayer);
            par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

            if (flag)
            {
                entityarrow.canBePickedUp = 2;
            }
            else
            {
                par3EntityPlayer.inventory.consumeInventoryItem(Item.arrow.itemID);
            }

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

    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 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)
    {
        ArrowNockEvent event = new ArrowNockEvent(par3EntityPlayer, par1ItemStack);
        MinecraftForge.EVENT_BUS.post(event);
        if (event.isCanceled())
        {
            return event.result;
        }

        if (par3EntityPlayer.capabilities.isCreativeMode || par3EntityPlayer.inventory.hasItem(Item.arrow.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;
    }
    

    private Icon[] azulbow = new Icon[4];
    @SideOnly(Side.CLIENT)
    public void updateIcons(IconRegister par1IconRegister)
   {
    		 super.registerIcons(par1IconRegister);
             itemIcon = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_0");
             for (int N = 0; N < 4; N++)
             
             {
                     this.azulbow[N] = par1IconRegister.registerIcon("TutorialMod:" + this.getUnlocalizedName().substring(5) + "_" + N);
                     
             }
    }
    public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining){
    {
             if(player.getItemInUse() == null) return this.itemIcon;
             
             int time = stack.getMaxItemUseDuration() - useRemaining;
            
             if (time >= 18)
             {
                     return azulbow[3];
                     
            }
             else if (time > 13)
             {
                     return azulbow[2];
             }
             else if (time > 0)
             {
                     return azulbow[1];
             }             
             return azulbow[3];
             }
    }}

 

Thanks again, I really appreciated it

Link to comment
Share on other sites

I would use

 

    @SideOnly(Side.CLIENT)
    private Icon[] azulnow = new Icon[4];
    @Override
    public void registerIcons(IconRegister iconRegister){
       
        this.itemIcon = iconRegister.registerIcon((this.getUnlocalizedName().substring(5)) + "_0");
       
        for (int N = 0; N < 4; N++){
            this.azulbow[N] = iconRegister.registerIcon((this.getUnlocalizedName().substring(5)) + "_" + N);
        }
        
    }{

 

The Override is important, otherwise the texturer asks for the wrong textures.

Link to comment
Share on other sites

@Ives

 

The @Override annotation is purely for Eclipse to notify you if the method you're attempting to override doesn't exist. It adds no 'real' functionality. It's useful, but won't solve this problem.

 

@BlueGhast90 It sounds like you aren't registering all of the icons, then. I would recommend adding a System.out.println message for

 

this.getUnlocalizedName().substring(5)) + "_" + N

 

This part to see what exactly you're attempting to register. I'm not completely familiar with what the substring(5) is doing, so that's kind of worrying me. Sorry!

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Link to comment
Share on other sites

Wow, Thanks Ives I got almost all of them to render, the only one i cant get to render is the original bow texture :)

 

I would also like to thank Zetal for all your hard work and support, I really appreciate it. I think I can fix it from here. I really appreciate the help

 

 

 

Edit: I got it to work by making a copy of the original bow image and renaming it azulbow_0 to fix the broken animation in the icon section  :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Use Temu coupon code $100 off [acq783769] for Australia and new zealand. Also get special 30% discount Plus get free shipping Temu has always been a shopper's paradise, offering a vast collection of trending items at unbeatable prices. With fast delivery and free shipping to 67 countries, it's no wonder Temu has become a go-to platform for savvy shoppers. Now, with these exclusive Temu coupon codes, you can enjoy even more savings: act581784: Temu coupon code 40% off for existing users act581784: $100 off Temu coupon for new customers act581784: $100 off Temu coupon for existing customers act581784: 40% discount for new users act581784: Temu coupon code 40 off for existing and new users Why You Shouldn't Miss Out on the Temu Coupon Code 40% Off The Temu coupon code 40% off is a game-changer for both new and existing customers. Whether you're a first-time user or a loyal Temu shopper, these codes offer substantial savings on your purchases. With a flat 40% extra off, you can stretch your budget further and indulge in more of your favorite items. Maximizing Your Savings with Temu 40 Off Coupon Code To make the most of your Temu shopping experience, it's crucial to understand how to apply these coupon codes effectively. When you use the Temu coupon code 40 off, you're not just saving money – you're unlocking a world of possibilities. From fashion to home decor, electronics to beauty products, your 40% discount applies across a wide range of categories. How to Apply Your Temu Coupon Code 40% Off Using your Temu coupon code 40% off is a breeze. Here's a step-by-step guide to ensure you don't miss out on these incredible savings: Browse through Temu's extensive collection and add your desired items to your cart. Proceed to checkout when you're ready to make your purchase. Look for the "Promo Code" or "Coupon Code" field. Enter your Temu coupon code 40 off [act581784]. Watch as your total amount gets reduced by a whopping 40%! The Power of Temu Coupon Code 40 Off First Order For those new to Temu, the Temu coupon code 40% off first order is an excellent opportunity to experience the platform's offerings at a discounted price. This introductory offer allows you to explore Temu's vast catalog while enjoying significant savings on your inaugural purchase.Be sure to use it before it expires!
    • Use Temu Coupon Code $100 Off [act965193] if you are living in California USA. Temu doesn't let you use many coupons at once, but you can still save more. New users get an extra 10% off the 30% discount. Also, text alerts give you 20% off. Using these with Temu's 90% off Daily Deals helps you save a lot. How to use Temu Coupon Code $100 Off [act965193] Both new and existing users at Temu can save a lot by using coupon codes and bundles. New users get a $200 discount with the code aci384098 on their first buy. This is a big welcome bonus that helps them save right away. Follow below steps to apply Temu Coupon Code $100 Off [act965193] Choose Your Items: Pick the products you want to buy from TEMU. Go to Checkout: When you are ready to pay, go to the checkout page. Enter the Code: Type (act847220) into the coupon code box. Enjoy Your Savings: Your total will be reduced, and you'll save money on your purchase. Keep an eye on new deals to save more. Check the Temu app, sign up for newsletters, and follow Temu on social media. Sites like RetailMeNot or Coupons.com also list Temu coupon codes, so you won't miss out.   Using these tips, shopping on Temu can be a smart way to save money. Plan your buys with sale cycles in mind, stack coupons wisely, and watch for new deals. This will make your shopping trips more rewarding.   Temu Coupon Codes & Bundles: New Installs and Existing Users For existing customers, the code aci384098 also gives $200 off. The Temu $200 Coupon Bundle is great for both new and current users. It includes $120 worth of coupons. Plus, Temu offers a 40% discount with certain codes for everyone.   Temu also has special app discounts. By signing up with the code aci384098 and spending $200 or more, customers can save $200 plus get 30% off on their purchase. The code aci384098 also gives a $200 discount and an extra 50% off on the next buy. This is a great way to thank users for their engagement.   Shopping at Temu can lead to big savings. The average discount is an impressive 59%, with 84% of orders getting free shipping or gifts. About 48% of discounts have a time limit, encouraging shoppers to act fast. With deals like a $100 coupon bundle for new users and savings from the code aci384098, Temu offers many ways to save.   Existing customers also have many ways to save, like app alerts, website coupons, and referral programs. There are also games, seasonal sales, and discounts on certain items. This means both new and current users have lots of options to save, showing Temu's dedication to rewarding users.   Comparing Temu Coupon Codes with Other Retailers   Looking at the world of online shopping, comparing Temu coupon codes with others shows Temu's big competitive advantages.   Advantages of Temu Coupons   Temu's coupons offer big discounts, often more than other stores. This means customers save a lot of money. Temu also throws in freebies, making their coupons even more valuable.   Temu's coupons work on many products, not just a few. This makes it easy for customers to save on what they buy.   How Temu Stands Out in the Market   When we look at Temu vs. other retailers, Temu's deals are made with the customer in mind. They focus on what shoppers want and need. This makes Temu's coupons not just competitive but also very attractive to many buyers.   Our benchmarking deals show Temu leading in coupon offers. They offer big discounts and special perks. This makes Temu stand out in the online shopping world.   Conclusion Using Temu coupon codes and bundles helps save money and make shopping better. For new and returning customers, codes like "acr880792" and "aci384098" offer big discounts. New users get £20 off their first order and up to 50% off on various deals. Temu offers many coupons for smart shoppers to save more. Whether it's standalone discounts, special deals, or loyalty rewards, using these codes can cut down costs. This way, shoppers get quality products at great prices, from $1 phone cases to discounted electronics. It's important to keep up with new discounts and promotions. By watching daily deals and signing up for alerts, shoppers won't miss out on great offers. Temu connects manufacturers directly with consumers, leading to lower costs. This unique approach, along with big savings from coupons, makes Temu a top choice for budget-friendly shopping. Start your Temu shopping today for unmatched savings and satisfaction.  
    • Obtén hasta 90% de descuento en Temu utilizando el código [act892435]. Además, disfruta de $100 de descuento (aproximadamente 1,750 MXN) en tu primer pedido. Disponible para nuevos y clientes existentes en México. En Temu encontrarás una amplia gama de productos, desde ropa hasta tecnología, todos a precios increíbles. Aprovecha este código hoy mismo y comienza a ahorrar en tus compras. Temu hace que tus compras sean fáciles y accesibles, asegurando que obtengas la mejor calidad al mejor precio. Looking for the best deals and discounts? The Temu coupon code [act892435] or [acq943609] offers fantastic savings for both new and existing customers. Whether you're placing your first order or restocking your favorites, these coupon codes unlock discounts of up to 90% and an additional $100 off on selected items. Plus, enjoy the added benefit of free shipping on select orders. This guide will show you how to make the most of these deals and maximize your savings on Temu. How to Use the Temu Coupon Code [act892435] or [acq943609] Applying the Temu coupon code is quick and easy. Here’s how to redeem it for maximum savings: 1. Visit the Temu Website: Explore Temu’s wide range of products, including fashion, electronics, and home goods. 2. Add Items to Your Cart: Choose the products you want and add them to your shopping cart. 3. Proceed to Checkout: Click on your cart and proceed to checkout when you're ready. 4. Enter the Coupon Code: In the "Coupon Code" field at checkout, enter [act892435] or [acq943609] and click "Apply." 5. Enjoy Your Savings: You’ll instantly see the $100 discount along with additional savings of up to 90%, depending on the items selected. Benefits of Temu Coupon Codes [act892435] or [acq943609] for First-Time Users and Existing Customers Whether you're a new customer or a regular shopper, the Temu coupon code offers unbeatable discounts. Here's how both new and existing users can benefit: • First-Time Users: New customers using the Temu coupon code [act892435] or [acq943609] on their first order get $100 off, along with discounts ranging from 30% to 90% on selected products. It’s the perfect opportunity to try out Temu’s product range without overspending. • Existing Customers: Loyal shoppers can continue to enjoy significant savings by applying the same coupon code on subsequent orders. Restock your favorites or discover new items at discounted prices. • Free Shipping: Using the Temu coupon code [act892435] or [acq943609] can also qualify you for free shipping on selected items, further increasing your overall savings. Breakdown of Discounts with Temu Coupon Code [act892435] or [acq943609] With the Temu coupon code [act892435] or [acq943609], you’re not limited to just $100 off. You can also enjoy varying levels of discounts on a wide range of products. Here’s how it works: • 30% Discount: Perfect for budget-friendly products and everyday essentials. Shop clothing, beauty products, and home goods at 30% off. • 40% Discount: Ideal for mid-range purchases such as electronics, gadgets, and household items. • 50% Discount: Save big on high-end gadgets, designer apparel, and premium beauty products with 50% off. • 70% Discount: Excellent for those looking for luxury items like branded accessories and upscale electronics. • 90% Discount: The ultimate deal for savvy shoppers. Enjoy top-tier products like tech and home goods at a fraction of the price. Maximize Your Savings on First Orders, Free Shipping, and More with Temu Coupon Code [act892435] or [acq943609] Here are some top tips to get the most value from the Temu coupon code [act892435] or [acq943609]: 1. First Order Savings: For first-time users, using the code [act892435] or [acq943609] on your first order guarantees $100 off, making it the perfect way to kickstart your shopping experience at Temu. 2. Look for Free Shipping: Check if your items qualify for free shipping by applying the coupon code at checkout. It’s a great way to save even more on your total purchase. 3. Shop During Major Sales: Combine the coupon code with major sales events like Black Friday or Cyber Monday for even greater savings. 4. Buy in Bulk: Bulk purchases allow you to maximize the value of the $100 discount, especially if you’re buying items across various categories. 5. Check Product Eligibility: Make sure the products you’re adding to your cart qualify for higher percentage discounts. Some items may only offer 30%-50% off, while others can go up to 90%. FAQs About Temu Coupon Code [act892435] or [acq943609] 1. Is the Temu coupon code verified and working?  Yes, the Temu coupon codes [act892435] and [acq943609] are verified and currently active. Both codes offer up to $100 off, along with percentage discounts of up to 90%. 2. How much can I save with the Temu coupon code?  Using the coupon codes [act892435] or [acq943609], you can get $100 off plus additional percentage-based discounts ranging from 30% to 90%, depending on the products you choose. 3. Can both first-time users and existing customers use these coupon codes?  Absolutely! Both new and existing customers can take advantage of the Temu coupon codes [act892435] or [acq943609]. First-time users can apply the code for their first order, while loyal customers can continue saving on subsequent purchases. 4. Does the coupon code apply to free shipping?  In many cases, using the Temu coupon code [act892435] or [acq943609] may qualify you for free shipping, depending on the items and promotions available at the time of purchase. Conclusion: Don’t Miss Out on These Massive Savings with Temu Coupon Code [act892435] or [acq943609] The Temu coupon code [act892435] or [acq943609] provides an excellent opportunity to save big on a wide variety of products. Whether you're a first-time user placing your first order or an existing customer looking to restock, these coupon codes guarantee substantial savings. Take advantage of discounts up to 90%, free shipping on select orders, and $100 off when you shop at Temu. Don’t wait—start shopping today and use the coupon codes [act892435] or [acq943609] to unlock the best possible deals! Happy shopping!
    • Get up to 90% off at Temu using coupon code [act892435]. Receive $100 off (5,650 PHP) on your first order. Available for both new and existing customers in the Philippines. Get up to 90% off at Temu using the coupon code [act892435]. Receive $100 off on your first order, available for both new and existing customers in all country. Temu offers a diverse range of products from clothing to gadgets, all at unbeatable prices. Start saving today and enjoy a seamless shopping experience. Whether you're a first-time buyer or a regular customer, Temu helps you get more for less. Use the code now and turn your shopping into a rewarding experience filled with savings. Looking for the best deals and discounts? The Temu coupon code [act892435] or [acq943609] offers fantastic savings for both new and existing customers. Whether you're placing your first order or restocking your favorites, these coupon codes unlock discounts of up to 90% and an additional $100 off on selected items. Plus, enjoy the added benefit of free shipping on select orders. This guide will show you how to make the most of these deals and maximize your savings on Temu. How to Use the Temu Coupon Code [act892435] or [acq943609] Applying the Temu coupon code is quick and easy. Here’s how to redeem it for maximum savings: 1. Visit the Temu Website: Explore Temu’s wide range of products, including fashion, electronics, and home goods. 2. Add Items to Your Cart: Choose the products you want and add them to your shopping cart. 3. Proceed to Checkout: Click on your cart and proceed to checkout when you're ready. 4. Enter the Coupon Code: In the "Coupon Code" field at checkout, enter [act892435] or [acq943609] and click "Apply." 5. Enjoy Your Savings: You’ll instantly see the $100 discount along with additional savings of up to 90%, depending on the items selected. Benefits of Temu Coupon Codes [act892435] or [acq943609] for First-Time Users and Existing Customers Whether you're a new customer or a regular shopper, the Temu coupon code offers unbeatable discounts. Here's how both new and existing users can benefit: • First-Time Users: New customers using the Temu coupon code [act892435] or [acq943609] on their first order get $100 off, along with discounts ranging from 30% to 90% on selected products. It’s the perfect opportunity to try out Temu’s product range without overspending. • Existing Customers: Loyal shoppers can continue to enjoy significant savings by applying the same coupon code on subsequent orders. Restock your favorites or discover new items at discounted prices. • Free Shipping: Using the Temu coupon code [act892435] or [acq943609] can also qualify you for free shipping on selected items, further increasing your overall savings. Breakdown of Discounts with Temu Coupon Code [act892435] or [acq943609] With the Temu coupon code [act892435] or [acq943609], you’re not limited to just $100 off. You can also enjoy varying levels of discounts on a wide range of products. Here’s how it works: • 30% Discount: Perfect for budget-friendly products and everyday essentials. Shop clothing, beauty products, and home goods at 30% off. • 40% Discount: Ideal for mid-range purchases such as electronics, gadgets, and household items. • 50% Discount: Save big on high-end gadgets, designer apparel, and premium beauty products with 50% off. • 70% Discount: Excellent for those looking for luxury items like branded accessories and upscale electronics. • 90% Discount: The ultimate deal for savvy shoppers. Enjoy top-tier products like tech and home goods at a fraction of the price. Maximize Your Savings on First Orders, Free Shipping, and More with Temu Coupon Code [act892435] or [acq943609] Here are some top tips to get the most value from the Temu coupon code [act892435] or [acq943609]: 1. First Order Savings: For first-time users, using the code [act892435] or [acq943609] on your first order guarantees $100 off, making it the perfect way to kickstart your shopping experience at Temu. 2. Look for Free Shipping: Check if your items qualify for free shipping by applying the coupon code at checkout. It’s a great way to save even more on your total purchase. 3. Shop During Major Sales: Combine the coupon code with major sales events like Black Friday or Cyber Monday for even greater savings. 4. Buy in Bulk: Bulk purchases allow you to maximize the value of the $100 discount, especially if you’re buying items across various categories. 5. Check Product Eligibility: Make sure the products you’re adding to your cart qualify for higher percentage discounts. Some items may only offer 30%-50% off, while others can go up to 90%. FAQs About Temu Coupon Code [act892435] or [acq943609] 1. Is the Temu coupon code verified and working? Yes, the Temu coupon codes [act892435] and [acq943609] are verified and currently active. Both codes offer up to $100 off, along with percentage discounts of up to 90%. 2. How much can I save with the Temu coupon code? Using the coupon codes [act892435] or [acq943609], you can get $100 off plus additional percentage-based discounts ranging from 30% to 90%, depending on the products you choose. 3. Can both first-time users and existing customers use these coupon codes? Absolutely! Both new and existing customers can take advantage of the Temu coupon codes [act892435] or [acq943609]. First-time users can apply the code for their first order, while loyal customers can continue saving on subsequent purchases. 4. Does the coupon code apply to free shipping? In many cases, using the Temu coupon code [act892435] or [acq943609] may qualify you for free shipping, depending on the items and promotions available at the time of purchase. 5. Are there any exclusions with these coupon codes? While these coupon codes offer excellent discounts, some high-percentage offers may not apply to every item. Be sure to check product eligibility before completing your purchase. Conclusion: Don’t Miss Out on These Massive Savings with Temu Coupon Code [act892435] or [acq943609] The Temu coupon code [act892435] or [acq943609] provides an excellent opportunity to save big on a wide variety of products. Whether you're a first-time user placing your first order or an existing customer looking to restock, these coupon codes guarantee substantial savings. Take advantage of discounts up to 90%, free shipping on select orders, and $100 off when you shop at Temu. Don’t wait—start shopping today and use the coupon codes [act892435] or [acq943609] to unlock the best possible deals! Happy shopping!
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.