Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. http://docs.oracle.com/javase/tutorial/reflect/
  2. Its because of the magic of Java and Strings. http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java
  3. You need to stop using metadata entirely. It "breaks" when you use a metadata above 15 because metadata is a byte, so vales greater than 11112 will be truncated.
  4. No, it's not. You're not saying this.getIcon(par1,par2) , you're saying Block.planks.getIcon(par1,par2) So unless your block IS Block.planks (highly unlikely as it is final) then it won't loop forever.
  5. Indeed! I had someone who wanted to translate my mods into Russian and so I poked around at language files and found out it was that easy. Then, of course, I had to start using localized string calls in 400 places. (All in item's addInformation() function, eg. par3List.add(StatCollector.translateToLocal("effect.Activates several potion effects")); instead of just par3List.add("effect.Activates several potion effects"); ) But things like block, item, creative tab, and entity names, the translateToLocal() is called for you. I just had a whole ton of places where it wasn't and those were almost more important than where it was done automatically!
  6. Sorry, use getIcon(par1, par2) I mean hell, you're overriding getIcon, you'd think you'd be able to *GASP* use that method on another block.
  7. I don't see what could be causing the issue you're seeing, but I will offer some tips in another area: Drop all of those entries to the Language Registry. Use a lang file instead. It will make localization to other languages so much easier. And it's so easy to do, too: https://github.com/Draco18s/Artifacts/blob/master/assets/artifacts/lang/en_US.lang It's just unlocalized=localized one per line. Eg: itemGroup.tabGems=RGB Gems Bam. It just then needs to be a file named en_US.lang inside /assets/[MODID]/lang Oh, also: Configuration config = new Configuration(new File("config/Jake's Gems.cfg")); Use Configuration config = new Configuration(event.getSuggestedConfigurationFile());
  8. Seriously? That doesn't "reset" the values for your tile entity. That creates a new tile entity with its OWN values. When you're seeing the values as 0, THAT'S THE ONE IN YOUR INVENTORY.
  9. Tile entities use this.posX And unless you post actual code, we are unable to help you.
  10. [me=Draco18s]sees no code[/me] [me=Draco18s]shrugs and leaves, unable to locate problem.[/me]
  11. return Block.planks.getBlockTextureFromSide(par1, par2); //returns spruce texture OMG ITS MAGIC!
  12. Ironically, Oracle doesn't support J6 any more. If anyone is still having problems with J7 report them to Oracle. You can't download J6 any more, so no one should have it at this point.
  13. Define "doesn't work" by posting an actual error.
  14. Yes. What happens if you have nothing in your hand? Wouldn't "event.entityPlayer.getItemInUse()" return null?
  15. public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) { return false; }
  16. Huge distances. I was specifically teleporting the player to the overworld spawn. At distances less than 32 blocks portals showed up again. (Or I should say: at a distance of about 32 blocks I observed a portal being created on one occasion)
  17. Possible. I wouldn't know. I took mine from someone else and I haven't needed to chance it (except for the info, of course) since then. Took me weeks to find that documentation page, too (you can give me a thanks over here, if you'd like).
  18. I doubt that. I took a looksee at my own mcmod.info file and cross referenced with the official documentation and here's what I see: "authorList" is not a recognized object (should be "authors"). "credits" is supposed to be a string, not an array of strings
  19. It looks like it doesn't like your mcmod.info file If you have one, can you post it please?
  20. Also, that isn't the support for "normal players." It's "there is a problem with Forge" support. That said: Really now http://www.minecraftforge.net/forum/index.php/topic,13894.msg74494.html#msg74494 http://www.minecraftforge.net/forum/index.php/topic,14551.msg74240.html#msg74240 http://www.minecraftforge.net/forum/index.php/topic,11001.msg74190.html#msg74190 http://www.minecraftforge.net/forum/index.php/topic,14541.msg74193.html#msg74193 http://www.minecraftforge.net/forum/index.php/topic,14784.msg75339.html#msg75339 All of those from the search for "HTTP 403" all of them have your exact problem and all of them either reference an older thread or have a solution.
  21. Really now. Let me see here. The error you're getting is....urllib2 HTTP 403. I can see how that's not in the EAQ with those words. The forum, however is searchable. http://www.minecraftforge.net/forum/index.php/topic,11001.0.html BAM, it is in the EAQ: Also: And wtf do you think you are? You're not a MODDER and this is the MODDER support forums.
  22. It utilizes the same function he's already using and I already stated what's actually occurring. I have experience in these matters http://www.minecraftforge.net/forum/index.php/topic,14684.msg74887.html
×
×
  • Create New...

Important Information

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