Have you ever found while modding, that you need to store more Data per block?
After finding so I have created MetaBlocks
This api will allow You to add additional data per block, with no save file changes or Notch code changes, this mod runs off a modloader enabled Minecraft without inserting into minecraft.jar
For Players told to install:
download this here: Link Removed
To install just put theese folders into your .minecraft directory, it will work with ModLoader patched minecraft installs only.
There will be futher information for developers, and the developers part of the API in a day or so, once I have had time to document it.]
So this is an API that allows mod creators to store multiple forms of metadata?
Could get a bit unwieldy, I think, but we'll see how it goes.
So far it seems to work quite well, Just adding some finishing touches (like java docs) and I may release a version without the triggers part (having some trouble figuring out what I want to do there.
How exactly does this work then? At the moment, metadata for blocks is called through methods such as "getBlockMetadata" and "setBlockMetadata", but with multiple forms of metadata, how is this achieved?
How exactly does this work then? At the moment, metadata for blocks is called through methods such as "getBlockMetadata" and "setBlockMetadata", but with multiple forms of metadata, how is this achieved?
At the moment, it is static functions on a class take for example my test function
@Override
public void KeyboardEvent(KeyBinding keybinding) {
int x=ModLoader.getMinecraftInstance().objectMouseOver.blockX;
int y=ModLoader.getMinecraftInstance().objectMouseOver.blockY;
int z=ModLoader.getMinecraftInstance().objectMouseOver.blockZ;
Logger.getLogger("Minecraft").info(Boolean.toString(mod_MetaBlocks.GetBlockBool(x, y, z, "Clicked")));
}
that retrives a boolean stored on the block under the mouse.
I am considering weather it is worth altering World, so you can do worldObj.GetBlockDataBool etc, do not know if worth it.
At the moment, this mod changes no code files, just adds two, so it would work in the mods folder, rather then having to go in Minecraft.jar
Okay, I think I see where you are coming from here. Seems good to me. I'd prefer if it didn't edit base classes, since it would drop compatibility a lot to do that, and with an API especially, compatibility is important.
Okay, I think I see where you are coming from here. Seems good to me. I'd prefer if it didn't edit base classes, since it would drop compatibility a lot to do that, and with an API especially, compatibility is important.
Thats what I thought. will be releasing a WIP version soon.
I just want to start by saying I do think it is a great idea but
Have you ever considered just using tileentities to store more data then the 8 bits of data minecraft allows. This is basically how minecraft can store strings for signs for example
I just want to start by saying I do think it is a great idea but
Have you ever considered just using tileentities to store more data then the 8 bits of data minecraft allows. This is basically how minecraft can store strings for signs for example
After finding so I have created MetaBlocks
This api will allow You to add additional data per block, with no save file changes or Notch code changes, this mod runs off a modloader enabled Minecraft without inserting into minecraft.jar
For Players told to install:
download this here: Link Removed
To install just put theese folders into your .minecraft directory, it will work with ModLoader patched minecraft installs only.
There will be futher information for developers, and the developers part of the API in a day or so, once I have had time to document it.]
Mods using this:
Polite Endermen Mod by nekosune (Me!)
I am in the middle of doing this allready. It is going well too.
Could get a bit unwieldy, I think, but we'll see how it goes.
So far it seems to work quite well, Just adding some finishing touches (like java docs) and I may release a version without the triggers part (having some trouble figuring out what I want to do there.
At the moment, it is static functions on a class take for example my test function
that retrives a boolean stored on the block under the mouse.
I am considering weather it is worth altering World, so you can do worldObj.GetBlockDataBool etc, do not know if worth it.
At the moment, this mod changes no code files, just adds two, so it would work in the mods folder, rather then having to go in Minecraft.jar
Thats what I thought. will be releasing a WIP version soon.
Yes, I am also very interested in this API, especially if it will let me condense multiple crop types into a single block.
Have you ever considered just using tileentities to store more data then the 8 bits of data minecraft allows. This is basically how minecraft can store strings for signs for example
Could I have some help with this then?