-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
http://docs.oracle.com/javase/tutorial/reflect/
-
Reflections.
-
getBlockTextureFromSide and metadata question
Draco18s replied to skullywag's topic in Modder Support
Its because of the magic of Java and Strings. http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java -
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.
-
getBlockTextureFromSide and metadata question
Draco18s replied to skullywag's topic in Modder Support
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. -
[1.6.4] Stone Texture Replaced by that of Custom Ore *SOLVED*
Draco18s replied to MetroidMan347's topic in Modder Support
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! -
getBlockTextureFromSide and metadata question
Draco18s replied to skullywag's topic in Modder Support
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. -
[1.6.4] Stone Texture Replaced by that of Custom Ore *SOLVED*
Draco18s replied to MetroidMan347's topic in Modder Support
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()); -
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.
-
Tile entities use this.posX And unless you post actual code, we are unable to help you.
-
[1.6.4] Stone Texture Replaced by that of Custom Ore *SOLVED*
Draco18s replied to MetroidMan347's topic in Modder Support
[me=Draco18s]sees no code[/me] [me=Draco18s]shrugs and leaves, unable to locate problem.[/me] -
getBlockTextureFromSide and metadata question
Draco18s replied to skullywag's topic in Modder Support
return Block.planks.getBlockTextureFromSide(par1, par2); //returns spruce texture OMG ITS MAGIC! -
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.
-
Forge server crashes when I try to load mods
Draco18s replied to Prowler1000's topic in Support & Bug Reports
Define "doesn't work" by posting an actual error. -
[SOLVED] [1.6.4] Spawning mobs in other mods biomes
Draco18s replied to saxon564's topic in Modder Support
Yup! -
[1.6.4] Detect if a player is using an item always
Draco18s replied to XVicarious's topic in Modder Support
Yes. What happens if you have nothing in your hand? Wouldn't "event.entityPlayer.getItemInUse()" return null? -
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) { return false; }
-
[SOLVED] Change player dimension on item right click
Draco18s replied to coolAlias's topic in Modder Support
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) -
[1.6.4] How to properly export/compile a mod
Draco18s replied to Robosphinx's topic in Modder Support
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). -
[1.6.4] How to properly export/compile a mod
Draco18s replied to Robosphinx's topic in Modder Support
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 -
[1.6.4] How to properly export/compile a mod
Draco18s replied to Robosphinx's topic in Modder Support
It looks like it doesn't like your mcmod.info file If you have one, can you post it please? -
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.
-
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.
-
[SOLVED] Change player dimension on item right click
Draco18s replied to coolAlias's topic in Modder Support
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