Everything posted by ObsequiousNewt
-
[Solved]Make a block affected by Efficiency
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...)
- EntityArrow
-
Adding items to blockcontainer Inventories created during worldgen
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.
-
Item 3D rendering in inventory
No. I'm an open-source coder, but I respect his decision.
-
Enderman like creature help
EntityEnderman uses dataWatcher object 16. Copypasta!
-
Rendering Items In-world
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
Bind, draw, bind, draw. Simple.
-
Debugging Core Mod
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.
-
Finishing my mod.
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?
-
How do I do This...
Or set noclip.
-
EntityArrow
Then change the velocity and not the acceleration. Or make the acceleration even lower.
-
Changing the color of an item programmatically
1. I think you just need glColor(). 2. Yes, it is an RGB hex value. Transparency is hardcoded to 1.
-
Rendering Items In-world
Try putting your variable in the dataWatcher.
-
Adding items to blockcontainer Inventories created during worldgen
((TileEntityMyDispenser) world.getBlockTileEntity(x,y,z)).addItem(stack); Oddly enough, addItem(ItemStack) is defined by TileEntityDispenser. Feel free to replace with setInventorySlotContents() or whatever. As for the orientation: getIcon() code?
-
Item 3D rendering in inventory
The pox upon Calc. He could have made everything easier by open-sourcing his mods, but noooo.
-
Debugging Core Mod
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
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."
-
Item 3D rendering in inventory
I'm... fairly sure you can't. Not without messing with MC rendering code. Go ahead and correct me if I'm wrong.
-
Model problem
Oh. Then check player.rotationYaw.
-
Rendering Items In-world
Sounds to me like a derp on your part... TE code?
-
Releasing a Mod [ISSUES]
Well, yeah. It's crashing because half the classes are missing. Because that was one of those that didn't compile.
-
Help with Plant [Solved]
If you have metadata-dependent icons, you need to override... um, I think it's getIcon(side, meta).
-
Help with Plant [Solved]
Derp. I didn't understand what you mean. In that case, you're setting the metadata to 1 every time.
-
Adding to NPC Villages
I don't think so, and probably.
-
Minecraft has failed to launch-
Did you watch the tutorial in MCA? You put the jar in the mods/ folder, NOT the jar.
IPS spam blocked by CleanTalk.