-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
IC2 or BuildCraft. I know IC2 has an API; BC should have one.
-
IChunkProvider is either not all you're using or you're using something else entirely. IChunkProvider does not contain that method.
-
I am sorry but I do not see how that would work seeing that I need the server to be able to read and write to the same file. You only need to read at one point: When the server starts You only need to write at one point: When the server stops (There's one additional write operation: if the file to read doesn't exist, initialize it). There's no reason to be reading and writing to the same file at the same time (although you can). That said: Take a look at this post. It will allow you to create and read an arbitrary NBT data file.
-
It's still a thought worth checking: disable the tick handler and see what happens.
-
UUID = Universally Unique Identifier You're not supposed to be able to change it.
-
Player dies -> Items automagically dropped.
-
What do you mean by "save an integer"?
-
ItemStack itemStack = slots[i]; slots[i].stackSize = 0; Mmm...pointers.... (Tip: ItemStack is passed by reference, not by value. When you set the stack size there, you're returning a stack of size zero: itemStack === slot[i] ).
-
Entirely possible I figure that the dragon is handled similarly to other mobs that duplicating it would follow similar logic, but I guess not.
-
Do you also have EntityRegistry.registerModEntity(...) somewhere?
-
RenderingRegistry.registerEntityRenderingHandler(Class<? extends Entity> entityClass, Render renderer)
-
Might want to take a peek at my project: https://github.com/Draco18s/Artifacts/tree/master/draco18s/artifacts/item https://github.com/Draco18s/Artifacts/tree/master/draco18s/artifacts/components It'll take a little parsing to find the exact parts you're looking for, but ComponentDamage handles increasing the player's attack value the same way vanilla swords do.
-
JDGUI by itself is usually sufficient. Most mods don't obfuscate themselves, so you're left with only the Minecraft obfuscated parameters, but most you can figure out just by the context, the rest you can lookup using MCP I actually peeked inside Twilight Forest at the Anti-Builder to see if it had done anything special/clever to minimize get, save, check, and reset blocks (as I needed similar functionality). It was just a standard 3 dimensional for loop. I've also poked my nose into Mystcraft on occasion (notably when trying to figure out how to use XCompWiz's API, I'll get confused over the usage of one parameter, so I pull up base and take a look at how he was using it).
-
Call the normal block rendering in a custom renderer.
Draco18s replied to Flayr's topic in Modder Support
!!! Do not create a new renderer, one is passed to you for all special renderers. Creating a new one will likely give you an "already tesselating" error. -
Call the normal block rendering in a custom renderer.
Draco18s replied to Flayr's topic in Modder Support
You mean like renderer.renderBlockUsingTexture(Block.stone, x, y, z, textureIcon); -
Yup, that too.
-
"/textures Make that "textures A / is automatically inserted for you between your mod ID and your texture path: Cyborg53373_Elementum:/textures/gui/cellingMachineGUI.png That : is converted to a / when it attempts to load files.
-
Here's what I used: List l = worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getAABBPool().getAABB(xCoord-3, yCoord-3, zCoord-3, xCoord+3, yCoord+3, zCoord+3)); And it worked.
-
Improved error message: Using missing texture, unable to load:
Draco18s replied to TheGreyGhost's topic in Suggestions
Except that if I attempt to register a texture using setTextureName("MyMod:someImage.png") and use the same casing when I build my folder structure it will fail. If I recall correctly, it works in Eclipse, but does not work when compiled and zipped. I don't have a convenient setup at the moment to produce a test case, but I've had the problem and when I tell people to always use lower case, it works. -
Saving/Loading an ItemStack to a NBTTagCompound?
Draco18s replied to TLHPoE's topic in Modder Support
Yes. ItemStack has a writeToNBT function. Just pass in a new NBTTagCompound and you'll get the "stored" version back out. Then just add that tag to another tag. All container objects do this to save their contents. -
Do you or do you not know what "a static reference" and a "a non-static field" are?
-
Equivalent of Thread.sleep() that won't upset minecraft.
Draco18s replied to SamTebbs33's topic in Modder Support
You need to approach your problem from a different direction. onUpdate is called once every 1/20th of a second. If you need to wait 1 second you need to.... Let onUpdate get called 20 times. -
X, Y, Z, BlockID, Delay (in ticks)