Jump to content

xXRoboJackXx

Members
  • Posts

    68
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    HI, I'm the founder of BlueEagle.

xXRoboJackXx's Achievements

Stone Miner

Stone Miner (3/8)

1

Reputation

  1. Fixed it, turns out there was an unused import eclipse never told me about and there was a server file that snook itself into my src.
  2. I don't think I'm using Scala because this is my scala error: "scalac" is not found on the PATH. Scala files will not be recompiled Then I get loads of the errors you have.
  3. onTopic: All I did to install forge was click "install.bat" and I'll check it out. Offtopic: I never thought to change that.
  4. Looks like you're using 1.5.2, I want to use 1.6.2
  5. I tried reinstalling and I think I'm using the latest version.
  6. Every time I try to reobfuscate I get this error: But then I try to recompile and get this huge error If anyone can help me I would be extremely thankful, thanks in advance.
  7. I'm guessing it's something to do with the texture but I want to know before I start editing it. I don't see why it would be because it worked before 1.6.
  8. I made a liquid texture back in 1.5 and it worked throughout it, but now it's 1.6.2 it doesn't work all I keep getting is this error: 2013-09-12 17:11:19 [sEVERE] [Minecraft-Client] Unable to parse animation metadata from blueeagle:textures/blocks/HolyWaterStill.png: broken aspect ratio and not an animation 2013-09-12 17:11:19 [sEVERE] [Minecraft-Client] Unable to parse animation metadata from blueeagle:textures/blocks/HolyWaterFlow.png: broken aspect ratio and not an animation And I have no idea what it what it means nether the less I've been trying to fix it all day now, this was a last resort posting a comment. This is my texture code: HolyWaterStill: @Override public void registerIcons(IconRegister iconReg) { this.theIcon = new Icon[] {iconReg.registerIcon(Reference.textureLocation + ":" + this.name), iconReg.registerIcon(Reference.textureLocation + ":" + (this.name.substring(0, this.name.length() - 5)+ "Flow")) }; HolyWaterFlow: @Override public void registerIcons(IconRegister iconReg) { this.theIcon = new Icon[] { iconReg.registerIcon(Reference.textureLocation + ":" + (this.name.substring(0, this.name.length() - 4) + "Still")), iconReg.registerIcon(Reference.textureLocation + ":" + this.name) }; } Any help is welcome.
  9. It's the same timing as regular bows, glad I could help
  10. Topic Unlocked. Well let me give the code and explain a bit of it. Just a note the "Texture" from the code (a name I use) Can be anything like wibbly wobbaly or anything it's just a name that you give it, but if you call it something like bow then you'll need to write bow for all of them. Same with N and Time. @SideOnly(Side.CLIENT) private Icon[] Texture = new Icon[4]; public void updateIcons(IconRegister iconRegister) { iconIndex = iconRegister.registerIcon("blueeagle:" + this.getUnlocalizedName().substring(5) + "_0"); for (int N = 0; N < 4; N++) { this.Texture[N] = iconRegister.registerIcon("blueeagle:" + this.getUnlocalizedName().substring(5) + "_" + N); } } public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) { if(player.getItemInUse() == null) return this.iconIndex; int time = stack.getMaxItemUseDuration() - useRemaining; if (time >= 18) { return Texture[3]; } else if (time > 13) { return Texture[2]; } else if (time > 0) { return Texture[1]; } return Texture[0]; } } What this: private Icon[] Texture= new Icon[4]; Is doing is registering what the Texture does so that code works. This: public void updateIcons(IconRegister iconRegister) Is the method. This: iconIndex = iconRegister.registerIcon("blueeagle:" + this.getUnlocalizedName().substring(5) + "_0"); Is saying that the mod folder location is at blueeagle and the : is saying that it's going to find a texture in there. The + getUnlocalizedName() is saying that the unlocalized name for this item is the first part of the texture (the name) The .substring(5) gets rid of the "item." from the beginning of the string. The +_0 is adding on a "_0" to the code of the texture. And then the for (int N = 0 < 4; N++) is saying that the number 0 = N and the can only be less then 4. this.Texture[N] = iconRegister.registerIcon("blueeagle:" + this.getUnlocalizedName().substring(5) + "_" + N); Which is saying this Icon[number] = the method iconRegisterIcon("Foldername:" and then it gets the name, takes off the item and adds on the _ and number of the image. This: public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) Is the method that will be needed for the rest of the code. This: if(player.getItemInUse() == null) return this.iconIndex; int time = stack.getMaxItemUseDuration() - useRemaining; Is when the player is using the bow and int time is: stack.getMaxItemUseDuration() - useRemaining; this: if (time >= 18) { return Texture[3]; } else if (time > 13) { return Texture[2]; } else if (time > 0) { return Texture[1]; } return Texture[0]; } } This is saying that if time is greater then 18 (The time) then it will = the return Texture[3] which is the texture. So this is going back to the method we write for the Texture which is the unlocalized name and the foldername with the _ and remember that the [N] will be a number so you write [3] in there which will make the code know that inside the [] is a number and this will make the code know now that the texture is located somewhere in the folder blueeagle (and my unlocalized name is AngelBow) it'll add a _ and the number which in this case is 3 so it's looking for the texture which is called AngelBow_3 then I'm pretty sure you can work out what the else ifs mean. and the return Texture[0] is the bow when not in use. Hope I explained that well
×
×
  • Create New...

Important Information

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