-
Posts
751 -
Joined
-
Last visited
Everything posted by ObsequiousNewt
-
[Solved]Make a block affected by Efficiency
ObsequiousNewt replied to AndrewSherman's topic in Modder Support
Okay, I get your point. I've got Eclipse up now, researching... ...And it looks like the material doesn't matter. What *does* matter is ItemSpade.blocksEffectiveAgainst, which is static/final. Which means that you'll have to override ItemSpade. Rather silly. It seems there should be a Forge hook for this. (Unless there already is and I'm looking over it...) -
world.getBlockTileEntity(x,y,z) returns null: world.setBlock((int)c.xCoord, (int)c.yCoord-1, (int)c.zCoord, TrapsBase.arrowSlot.blockID, 1, 3); TileEntityDispenser dis = (TileEntityDispenser)world.getBlockTileEntity((int)c.xCoord, (int)c.yCoord, (int)c.zCoord); if(dis != null) { addTrapItem(dis); } else { System.out.print("Boo."); //this runs } Yes, that's the right TE. Perhaps you might try removing the "-1"? Or adding one in the next line? getIcon won't help you. I'm using a custom renderer and yes I checked that it wasn't just rendering wrong. It was still shooting arrows in the incorrect direction. If you're sure, then I don't know.
-
No. I'm an open-source coder, but I respect his decision.
-
EntityEnderman uses dataWatcher object 16. Copypasta!
-
I'm not quite sure myself what is the proper time to use a data watcher. Copypasta is my best bet as well. Um. That's odd. I feel over my head here. Maybe I should just slowly back away... At any rate I won't do any coding of entities until something is done about the NAABB situation.
-
Draw Second Image On Top of Main GUI Texture
ObsequiousNewt replied to dperny's topic in Modder Support
Bind, draw, bind, draw. Simple. -
If you mean it's not loading in debug mode, then yes, it's not loading. Well, I like to develop and test my programs in the IDE. I haven't tried yet whether it even loads up in regular Minecraft. Sure I could do it that way too, but I'd like to know if it is possible to get it to run in the IDE, especially since it's much quicker and easier when resolving problems since I don't always have to log a lot of information, recompile, and re-obfuscate all the time. It's just about convenience at this point. I've never used Debug myself. What exactly does it do? In eclipse, it lets you change code in classes and you will immediately see the result, except you add/delete/rename a method, field or class. Now, that seems handy. That would make logging a whole lot easier. I should use that.
-
I may add that I recommend to use the reobfuscate_srg.(bat/sh), since then you don't have to worry about updating your mod every Minecraft bugfix update (like the 1.5.0 -> 1.5.1 -> 1.5.2 updates) Why, exactly?
-
Or set noclip.
-
Then change the velocity and not the acceleration. Or make the acceleration even lower.
-
Changing the color of an item programmatically
ObsequiousNewt replied to Boxtop5000's topic in Modder Support
1. I think you just need glColor(). 2. Yes, it is an RGB hex value. Transparency is hardcoded to 1. -
Try putting your variable in the dataWatcher.
-
The pox upon Calc. He could have made everything easier by open-sourcing his mods, but noooo.
-
If you mean it's not loading in debug mode, then yes, it's not loading. Well, I like to develop and test my programs in the IDE. I haven't tried yet whether it even loads up in regular Minecraft. Sure I could do it that way too, but I'd like to know if it is possible to get it to run in the IDE, especially since it's much quicker and easier when resolving problems since I don't always have to log a lot of information, recompile, and re-obfuscate all the time. It's just about convenience at this point. I've never used Debug myself. What exactly does it do?
-
[Solved]Make a block affected by Efficiency
ObsequiousNewt replied to AndrewSherman's topic in Modder Support
Meh, I had a feeling it wasn't getting called correctly (and so didn't register your material type.) Ah well. Unfortunately I don't have my Eclipse up right now, so I'll just ask to make quite certain that efficiency isn't having any effect? After all, dirt gets mined quickly. I have a nasty feeling, though, that Minecraft has "if dirt" hardcoded rather than "if material is ground." -
I'm... fairly sure you can't. Not without messing with MC rendering code. Go ahead and correct me if I'm wrong.
-
Oh. Then check player.rotationYaw.
-
Sounds to me like a derp on your part... TE code?
-
Well, yeah. It's crashing because half the classes are missing. Because that was one of those that didn't compile.
-
If you have metadata-dependent icons, you need to override... um, I think it's getIcon(side, meta).
-
Derp. I didn't understand what you mean. In that case, you're setting the metadata to 1 every time.
-
I don't think so, and probably.
-
Minecraft has failed to launch-
ObsequiousNewt replied to Harrison1220's topic in Support & Bug Reports
Did you watch the tutorial in MCA? You put the jar in the mods/ folder, NOT the jar.