-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
No. You need to use a common and client proxy and use that class (which is sided through annotations) to register the tick handler.
-
call a method from a specific block using the blocks co-ordinates
Draco18s replied to jamiemac262's topic in Modder Support
int id = world.getBlockId(x, y, z); BlockYourBlock b = (BlockYourBlock)Block.blocksList[id]; b.functionCall(); -
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
Sorry, no. The only time I decompiled another mod was to watch how the author was using his own API, as it wasn't well documented at the time. -
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
I searched for "jar" inside the jar folder because I knew that it didn't matter what it was called it would end in ".jar" -
Lets make this real simple: Your packet handler is not receiving packets. Ergo your annotations are not set up correctly.
-
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
Ok. Anyway, the jars are in (took me a little bit to figure this out, too) /mcp/jars/versions -
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
MCP is not a codebase. It's an external package that performs deobfuscation because it has the mapping between obfuscated and deobfuscated names. As for version, I'm asking what version the mod is for because that's the version of minecraft you need to use to decompile. -
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
EntityLiving != EntityLivingBase Your function is not identical to the function in the Block class (which is why the @Override is throwing an error and why the function is not being called). Not variable name, variable type. -
Because I know it works?
-
Use a sided packet handler: clientPacketHandlerSpec = @SidedPacketHandler(channels = {"GenericRandom"}, packetHandler = PacketHandlerClient.class)
-
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
That link is for ModLoader, not Forge (MCP is something else entirely). What version of Minecraft are you trying to work with? -
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
Sounds like a problem with that function. Add @Override just before it. That's not a "force save of the metadata" it's just a more complicated and memory inefficient way of saving the same info in a different way. -
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
That method won't do anything on its own, it needs to be called from somewhere. Also, I don't think his block cares about adjacent solid blocks the way a furnace does. -
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
1) I'm pretty sure you're wrong, as I use that function for my TE block 2) There's also onBlockAddedToWorld -
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
You would just need to move the main mod class folder directory into the main minecraft .jar directory. You don't need to put things "in the appropriate place." But other than that, yes. No guarantee that it'll work, the decompiler might still throw a fit, but if it DOES work, 99% of the work will be done for you. The rest would be making sure there are no errors and verifying that it runs. From there it's just copying the decompiled source into your current dev environment (and then fixing any new errors that show up). -
How to either recompile obfuscated code or deobfuscate decompiled code.
Draco18s replied to Talonos's topic in Modder Support
Your best bet might actually to be to download the version of minecraft (the jar) for the version that mod is for, install the mod as if it was a jar mod, then decompile that. That worked previously (I did it once for Mystcraft, so I could look at the internals and figure out its API by example), not sure how well it works now (had trouble in 1.6.2?). Give it a shot, at least. Might not leave it in a re-compilable state without fixing errors, but if it works at all, it will work quite well. -
Either: a) google all of them and make sure they're updated for the version of Minecraft you're using b) start removing things until it works c) remove everything and start adding things until it works
-
I don't think that'll work. At all. Ever.
-
Structure generates on superflat world, but not in normal world
Draco18s replied to Ablaze's topic in Modder Support
FYI: the vanilla overworld's surface has a minimum height of 63 (not counting under the ocean, unless you want your structure to be under water). -
You don't. It is indicating that that method is accessible with an instance of item stack. ItemStack.someMethod() //static method ItemStack#someOtherMethod() //non-static method
-
ItemStack#getItem()
-
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
*The D was intentional. And I was, actually. You calculated a rotation, and then didn't do anything with it. I am helping. I pointed out where your problem is, I'm just not telling you the solution. Hint: you're accessing the block's metadata to determine which direction to rotate the model. Where are you setting the metadata? -
[Solved] Techne model as block not placed with proper rotation?
Draco18s replied to Whale Cancer's topic in Modder Support
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityLiving){ int rotation = MathHelper.floor_double((double)((entityLiving.rotationYaw * 4.0f) / 360F) + 2.5D) & 3; } Congradulations, this function DOES NOTHING. -
Block.blocksList[theId]
-
world.getBlockId(this.posx, this.posy, this.posz) ?