News:
- The MyCraft Plus beta is now available! Scroll down for more info.
- New Forum!, get faster support there and give us any suggestions you have.
MyCraft Plus:
Beta Features:
Drag-and-drop mod installation
Loads ANY mod (if your mod doesn't work, please contact us on the IRC)
Fully portable
Does not modify minecraft.jar
Auto-updating
Works with any minecraft version
In-game mod menu for changing options
Proxy settings for playing at work or school
Beta Info / Download:
The MyCraft+ beta does not include all the features that will be available in the full release. More info about the planned features is available on the download page. You can also check out our blog for status updates on development.
If you'd like to try out the MyCraft+ beta then you can download it here:
If you have any problems at all with it, please contact us on the IRC or on our forums, this way we can fix as many bugs as possible before the full release.
The current beta has drag-and-drop mod installation, so you should be able to just download any mod, and drop the zip in the mods folder. The next time you run the beta, it should load automatically.
Original MyCraft:
Description:
MyCraft is a mod manager with some very useful features. Up until now, Minecraft modding has been a bit of a repetitive process. The modder must constantly update their mods, and the users must re-download the mods each time. This mod manager solves these problems.
If you would like to develop for MyCraft, you can download the example mod here: http://www.frustra.o...les/TestMod.zip
This mod includes the Blood Pickaxe (breaks blocks instantly), blue torches (retextured) and some simple recipes.
Features:
No install or jar modification!
Organized and easy mod installation
Auto-updating client, no updating needed!
Automatic hooking, no need to find which class is which!
Refactored API, no more classes like aq, ie, and eu!
No mod conflicts! (For MyCraft specific mods only)
Custom mod menu for turning mods on and off!
Built-in mods for turning off particle effects for slow computers.
Built-in flying mod!
Built-in proxy option for playing at school or work! (Note, basically what this does is redirect all requests that were supposed to go to minecraft.net to our server, it does NOT proxy the connection to any game servers that you want to play on, so there's no extra lag)
Fly Mod Info:
Turn On/Off: V
Move around: Same as walking controls
Up: Jump
Down: Sneak
2D Mode: Can only fly up or down with Jump or Sneak
3D Mode: Can fly up or down by looking up or down
Download and Instructions:
MyCraft is very easy to get working.
You can download everything you need here as well as read our development blog and see screenshots: http://www.frustra.org/mycraft
Once you've downloaded it, run MyCraft.exe by double clicking on it (or run MyCraft.jar for linux/mac).
MyCraft auto updates, so you will always have the latest version!
Statistics:
(Updated every half hour, 4 days shown)
Proxy Info:
In order to get to the mods menu to turn on the proxy, you need to be able to log in.
The problem with this, is you may not be able to do this without the proxy =)
To turn on the proxy outside of the game, go to .minecraft/bin/mycraft/ and open settings.txt
In there you will find the proxify setting. You can turn the ON of OFF yourself.
Proxy Privacy Policy:
What the proxy does is send your information, that would normally go to minecraft.net, to our server. Our server then sends it to minecraft.net, and responds with the authentication. We do not monitor the information that goes through our proxy. If you do not trust us or our service, you have the option of not using the proxy (it is off by default), By doing so you will be connected directly to minecraft.net when you play.
We have purchased Minecraft ourselves, so we have no need for extra accounts, and will never look at/distribute the information going through our proxy.
Troubleshooting:
Problem: When I try and run MyCraft.jar, nothing happens! Solution: For windows, try running MyCraft.exe first, otherwise try right clicking on the jar and doing Open With -> Java, if this doesn't work you can try running with console.
To run with console, the easiest way is to download this (Windows only): http://www.frustra.org/myc/runget.php
Place it in the same folder as MyCraft.jar
Run it by double clicking on it.
If it works, then you can download this one: http://www.frustra.o...runget.php?perm
It will run MyCraft without the black window.
If it doesn't work, paste what it says in the black window here.
(Right click and do Mark to select, and hit enter to copy)
Problem: I want to change my launching options / ram usage! Solution: If you are using MyCraft Launcher 5.0+ then all you have to do is edit the Launch Options.txt file and MyCraft will automatically load with these options.
Problem: My HD texture packs make the game freeze! Solution: Not all HD texture fixes work with MyCraft, you may want to try this one: http://www.minecraft...f=1021&t=252531
Problem: I get bad video drivers when I try to run MyCraft! Solution: First, make sure you have the latest drivers for your graphics card.
If you still get this error after updating, make sure you have MyCraft Launcher 3.1 or above.
Just rename MyCraft.jar to MyCraft-c.jar and it will run in compatibility mode!
Make sure you are running the jar, not the exe for this.
Problem: My game freezes when I start singleplayer or login! Solution: Make sure all your mods are up to date. If you still get the freeze with NO mods installed, you can
post your log file here, or talk to us on the IRC. You may also try re-downloading your minecraft.jar by removing your version file in .minecraft
Problem: I want to disable one of my mods, but I am too lazy to move it out of the folder! Solution: You're in luck! All you need to do is rename the folder for that mod so there is a # in front of it and it will be ignored by MyCraft when loading mods.
Problem: I have two mods that conflict with each other and they say to install one after the other, what do I do? Solution: If a mod says to install one after the other, install them to the same folder in MyCraft in the order
specified and it will work.
If you've still got problems, you can post here, post on this thread, or join the IRC channel for support: Click Here for Web Chat!
Server info: irc.strictfp.com #mycraft
Making a basic mod:
Basic mods can be created by making a class which extends BaseMod. In your class you can override certain methods in order to customize the mod. To start with, you must override the init() method in BaseMod.
public class ExampleMod extends BaseMod {
public void init() {
}
}
In the init() method is where you will be adding new items and recipes. In this example mod we will change the look of torches first. To do this, we call the setTexture() method in BlockMod. This method requires some parameters for the block id and the texture. The block id for a torch is 50, and we can create a new custom texture with the TextureInfo class.
BlockMod.setTexture(50, new TextureInfo("/mods/ExampleMod.png", 0));
This piece of code will set the texture of torches to the texture that is in slot 0 of the ExampleMods.png image. Slot numbers start at 0 in the top left, and are in rows of 16 (the slot below slot 0 is slot 16)
The next thing we will do in our mod is add a new crafting recipe. The one in the example will give you a diamond pickaxe if you place 2 blocks of dirt in opposite corners of the 2x2 crafting square. The id for a diamond pickaxe is 278 and the id for dirt is 3. You will receive one diamond pickaxe from this recipe.
addNewRecipe(278, 1, new Object[] {" #", "# ", Character.valueOf('#'), BlockMod.getBlockById(3)});
The last thing we will cover in this basic tutorial is creating custom items. The item we will create is a tool which will break or kill anything instantly (Blood Pickaxe in this example). To do this we need to create a new ToolMod, and override some of the methods. The getDrops() method must be overridden so that we get the drops from all blocks we break. The getSpeed() method must be overridden so that we can break blocks instantly. The SUPER tool type is used, which has the same durability as a Diamond pickaxe. We are going to add 10 to the attack, so that it can kill anything instantly.
new ToolMod("Blood Pickaxe", new TextureInfo("/mods/ExampleMod.png", 1), 10, ToolType.SUPER, new Object[0]) {
public boolean getDrops(Object block) {
return true;
}
public float getSpeed(ItemSlotMod slot, Object target) {
return this.speed;
}
};
Now that we have our custom item, we need to be able to get it in game, to do this we need to get the id of our pickaxe, and create a new recipe for it. The pattern for this recipe will be 3 dirt blocks in the shape on an L in the 2x2 crafting sqaure.
ToolMod bloodPickaxe = new ToolMod("Blood Pickaxe", new TextureInfo("/mods/ExampleMod.png", 1), 10, ToolType.SUPER, new Object[0]) { /* ... */ };
addNewRecipe(bloodPickaxe.getId(), 1, new Object[] {"# ", "##", Character.valueOf('#'), BlockMod.getBlockById(3)});
The code for our example mod is now finished, and should look like this:
public class ExampleMod extends BaseMod {
public void init() {
ToolMod bloodPickaxe = new ToolMod("Blood Pickaxe", new TextureInfo("/mods/ExampleMod.png", 1), 10, ToolType.SUPER, new Object[0]) {
public boolean getDrops(Object block) {
return true;
}
public float getSpeed(ItemSlotMod slot, Object target) {
return this.speed;
}
};
BlockMod.setTexture(50, new TextureInfo("/mods/ExampleMod.png", 0));
addNewRecipe(278, 1, new Object[] {" #", "# ", Character.valueOf('#'), BlockMod.getBlockById(3)});
addNewRecipe(bloodPickaxe.getId(), 1, new Object[] {"# ", "##", Character.valueOf('#'), BlockMod.getBlockById(3)});
}
}
All that is left for this mod to work is to draw the custom textures. This mod has 2 of them, so the ExampleMod.png file will be 32x16. The left 16x16 square being the torch, and the right the pickaxe.
Once you have drawn them, you can put the file in the mods folder along with the class files for the example mod.
I got an error when I clicked "Play Offline". I used a fresh minecraft.jar, no mods added.
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
Mods loaded:
ModLoader Beta 1.2_02v2
--- BEGIN ERROR REPORT 7a76c31 --------
Generated 1/24/11 2:39 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_22, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon X1050 version 2.1.8494 Release, ATI Technologies Inc.
java.lang.NullPointerException
at ModLoader.init(ModLoader.java:387)
at ModLoader.AddAllRenderers(ModLoader.java:81)
at oc.<init>(RenderManager.java:41)
at oc.<clinit>(RenderManager.java:121)
at net.minecraft.client.Minecraft.a(Minecraft.java:194)
at net.minecraft.client.Minecraft.run(Minecraft.java:472)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4a7f9446 ----------
Its because you actually have ModLoader in your original jar. You're using a fresh launcher jar, but the minecraft jar in your application data still contains the ModLoader data. To fix this, go into your app data folder and move minecraft.jar to minecraft_modloader.jar or something like that, you will also need to delete the version file for it to redownload. Once the fresh jar is downloaded it should work.
This looks like it would be an awesome tool for mods....
... But it is a little complex (How do the Custom Hooks work? The Javadocs don't explain anything), and the code looks a bit messy, and that's just looking at your example code.
I can't imagine how messy it would be for "advanced modding" mods.
... I don't like messy code. Maybe it's a preference thing, but I don't even understand how you're using a .getId off of a declaration. And overwriting a function within the declaration? And placing the AddRecipe instance underneath the code with no references?
To me all that stuff just seems wrong... is that a byproduct of the loader, or simply how you coded it?
Anyways, I love that you can have custom textures without having to override the standard ones.
So this really uses individual textures and doesn't override the standard ones? I keep worrying about running out of Sprite Indexes with Risugami's loader... I need a fix.
This looks like it would be an awesome tool for mods....
... But it is a little complex (How do the Custom Hooks work? The Javadocs don't explain anything), and the code looks a bit messy, and that's just looking at your example code.
I can't imagine how messy it would be for "advanced modding" mods.
... I don't like messy code. Maybe it's a preference thing, but I don't even understand how you're using a .getId off of a declaration. And overwriting a function within the declaration? And placing the AddRecipe instance underneath the code with no references?
To me all that stuff just seems wrong... is that a byproduct of the loader, or simply how you coded it?
Anyways, I love that you can have custom textures without having to override the standard ones.
So this really uses individual textures and doesn't override the standard ones? I keep worrying about running out of Sprite Indexes with Risugami's loader... I need a fix.
I will be documenting advanced modding much more in the future, but currently I haven't finished all the API for it. This mod manager has not been in development for very long, so more will come in the future.
As for the messy code, You can make the mods as clean as you want, that is just how I coded it so it was condensed. I may update the example mod to be neater in the future.
This mod loader still only allows a maximum of 256 blocks, but allows up to 32000 items, this is due to the limitations of the game itself, not the loader.
Yeah, in terms of code style modders can code however they want when making mods. XThexder has a certain coding style and he sticks to it.
Advanced modding is going to be approached in quite a different way than the basic modding, and it won't be a bunch of method calls with objects inside them. However we are still ironing out how to best do it.
I tried a bit on my own, but I'm failing to understand how to get this installed... could anyone help? And sorry for the trouble this may cause.
Download the zip and extract it to somewhere like the desktop.
Then download the Minecraft.jar from the link in the first post and place it in the lib folder in your MyCraft folder.
Then you can double click on MyCraft.jar to run it.
I wish i could say otherwise, but this isn't working for me. I downloaded both files. from the links provided. I then dragged and dropped the minecraft.jar into the lib folder. I ran the Mycraft.jar with Java and it said "Please download the minecrafr launcher jar and place it in the lib folder before running MyCraft!"
I don't understand whats wrong, cause the minecraft.jar is in there. I even deleted it, and copied my minecraft.jar from the app data folder thinger, that didnt work, so i refreshed the Dev Blog page and redownloaded from there, still doesnt work.
Hopefully this helps to solve the problem I am having. Mind you it might be something on my end because this is the second mod manager i have tried to get working and have fail.
I wish i could say otherwise, but this isn't working for me. I downloaded both files. from the links provided. I then dragged and dropped the minecraft.jar into the lib folder. I ran the Mycraft.jar with Java and it said "Please download the minecrafr launcher jar and place it in the lib folder before running MyCraft!"
I don't understand whats wrong, cause the minecraft.jar is in there. I even deleted it, and copied my minecraft.jar from the app data folder thinger, that didnt work, so i refreshed the Dev Blog page and redownloaded from there, still doesnt work.
Hopefully this helps to solve the problem I am having. Mind you it might be something on my end because this is the second mod manager i have tried to get working and have fail.
Is your the car file named minecraft.jar? or is it something else like minecraft(2).jar
If it's different, it won't find it, I'll see if I can find something else that would break it though.
Another thing you could try is renaming it Minecraft.jar (with the capital).
Edit:
I've changed how MyCraft finds the jar, so it should work now.
Clear your cache and redownload.
O:
Just wow. If this works...
Wow. This will make things so much easier!
By the way, does this work with Macs? I'll go try it now.
Ok doesn't work. Here is what Console said:
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] Running with extra ram
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] java.io.IOException: Cannot run program "javaw": error=2, No such file or directory
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at org.frustra.mycraft.RamLauncher.main(RamLauncher.java:38)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] Caused by: java.io.IOException: error=2, No such file or directory
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at java.lang.UNIXProcess.forkAndExec(Native Method)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at java.lang.ProcessImpl.start(ProcessImpl.java:91)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] ... 1 more
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] Running with normal ram (error)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] Exception in thread "main" java.lang.NullPointerException
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at org.frustra.mycraft.MyCraft.injectMyCraft(MyCraft.java:233)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at org.frustra.mycraft.MyCraft.main(MyCraft.java:160)
1/24/11 10:11:36 PM [0x0-0x6d06d].com.apple.JarLauncher[782] at org.frustra.mycraft.RamLauncher.main(RamLauncher.java:82)
Don't know if this will help you that much. Hope it will.
It should be working for mac, but I overlooked something that caused it to fail.
I myself own a mac, so I should have known.
Uploaded a fix, be sure to clear your cache.
Quote from Outlander37 »
I tried what you said, but it seems I have failed again as i was prompted by the same error message.
May I ask what OS your using? And where you have the zip extracted?
Ok, tried again and it got much further. But it still crashed after I placed the minecraft.jar in the lib folder.
Here is where the error seems to start (first noticable break in Console).
1/24/11 10:26:50 PM [0x0-0x7c07c].com.apple.JarLauncher[837] java.lang.Exception: Exit value: 1
1/24/11 10:26:50 PM [0x0-0x7c07c].com.apple.JarLauncher[837] at org.frustra.mycraft.RamLauncher.main(RamLauncher.java:77)
1/24/11 10:26:50 PM [0x0-0x7c07c].com.apple.JarLauncher[837] Running with normal ram (error)
1/24/11 10:26:51 PM [0x0-0x7c07c].com.apple.JarLauncher[837] Exception in thread "main" java.lang.NullPointerException
1/24/11 10:26:51 PM [0x0-0x7c07c].com.apple.JarLauncher[837] at org.frustra.mycraft.MyCraft.injectMyCraft(MyCraft.java:233)
1/24/11 10:26:51 PM [0x0-0x7c07c].com.apple.JarLauncher[837] at org.frustra.mycraft.MyCraft.main(MyCraft.java:160)
1/24/11 10:26:51 PM [0x0-0x7c07c].com.apple.JarLauncher[837] at org.frustra.mycraft.RamLauncher.main(RamLauncher.java:82)
Again I hope you fix this if this is a real problem.
EDIT:
I am using the latest version of MacOSX if that helps. 10.6.5
Version 2.4.4
Launcher Version 6.0
Developers: xthexder & jli
Twitter: @FrustraSoftware, @Portal2Sounds
Minecraft Server: smp.frustra.org
News:
- The MyCraft Plus beta is now available! Scroll down for more info.
- New Forum!, get faster support there and give us any suggestions you have.
MyCraft Plus:
Beta Features:
The MyCraft+ beta does not include all the features that will be available in the full release. More info about the planned features is available on the download page. You can also check out our blog for status updates on development.
If you'd like to try out the MyCraft+ beta then you can download it here:
Download and Info: http://www.frustra.org/mycraft-plus
If you have any problems at all with it, please contact us on the IRC or on our forums, this way we can fix as many bugs as possible before the full release.
The current beta has drag-and-drop mod installation, so you should be able to just download any mod, and drop the zip in the mods folder. The next time you run the beta, it should load automatically.
Original MyCraft:
Description:
MyCraft is a mod manager with some very useful features. Up until now, Minecraft modding has been a bit of a repetitive process. The modder must constantly update their mods, and the users must re-download the mods each time. This mod manager solves these problems.
If you would like to develop for MyCraft, you can download the example mod here: http://www.frustra.o...les/TestMod.zip
This mod includes the Blood Pickaxe (breaks blocks instantly), blue torches (retextured) and some simple recipes.
Features:
Turn On/Off: V
Move around: Same as walking controls
Up: Jump
Down: Sneak
2D Mode: Can only fly up or down with Jump or Sneak
3D Mode: Can fly up or down by looking up or down
Installation Tutorial!
Screenshots:
Developer Info:
Beginner Java Tutorials: Go to post
Making a basic mod: Go to post
Javadocs: http://www.frustra.o...vadocs/mycraft/
Download and Instructions:
MyCraft is very easy to get working.
You can download everything you need here as well as read our development blog and see screenshots:
http://www.frustra.org/mycraft
Once you've downloaded it, run MyCraft.exe by double clicking on it (or run MyCraft.jar for linux/mac).
MyCraft auto updates, so you will always have the latest version!
Statistics:
(Updated every half hour, 4 days shown)
Proxy Info:
In order to get to the mods menu to turn on the proxy, you need to be able to log in.
The problem with this, is you may not be able to do this without the proxy =)
To turn on the proxy outside of the game, go to .minecraft/bin/mycraft/ and open settings.txt
In there you will find the proxify setting. You can turn the ON of OFF yourself.
Proxy Privacy Policy:
What the proxy does is send your information, that would normally go to minecraft.net, to our server. Our server then sends it to minecraft.net, and responds with the authentication. We do not monitor the information that goes through our proxy. If you do not trust us or our service, you have the option of not using the proxy (it is off by default), By doing so you will be connected directly to minecraft.net when you play.
We have purchased Minecraft ourselves, so we have no need for extra accounts, and will never look at/distribute the information going through our proxy.
Troubleshooting:
Problem: When I try and run MyCraft.jar, nothing happens!
Solution: For windows, try running MyCraft.exe first, otherwise try right clicking on the jar and doing Open With -> Java, if this doesn't work you can try running with console.
To run with console, the easiest way is to download this (Windows only):
http://www.frustra.org/myc/runget.php
Place it in the same folder as MyCraft.jar
Run it by double clicking on it.
If it works, then you can download this one:
http://www.frustra.o...runget.php?perm
It will run MyCraft without the black window.
If it doesn't work, paste what it says in the black window here.
(Right click and do Mark to select, and hit enter to copy)
Problem: I want to change my launching options / ram usage!
Solution: If you are using MyCraft Launcher 5.0+ then all you have to do is edit the Launch Options.txt file and MyCraft will automatically load with these options.
Problem: My HD texture packs make the game freeze!
Solution: Not all HD texture fixes work with MyCraft, you may want to try this one:
http://www.minecraft...f=1021&t=252531
Problem: I get bad video drivers when I try to run MyCraft!
Solution: First, make sure you have the latest drivers for your graphics card.
If you still get this error after updating, make sure you have MyCraft Launcher 3.1 or above.
Just rename MyCraft.jar to MyCraft-c.jar and it will run in compatibility mode!
Make sure you are running the jar, not the exe for this.
Problem: My game freezes when I start singleplayer or login!
Solution: Make sure all your mods are up to date. If you still get the freeze with NO mods installed, you can
post your log file here, or talk to us on the IRC. You may also try re-downloading your minecraft.jar by removing your version file in .minecraft
Problem: I want to disable one of my mods, but I am too lazy to move it out of the folder!
Solution: You're in luck! All you need to do is rename the folder for that mod so there is a # in front of it and it will be ignored by MyCraft when loading mods.
Problem: I have two mods that conflict with each other and they say to install one after the other, what do I do?
Solution: If a mod says to install one after the other, install them to the same folder in MyCraft in the order
specified and it will work.
Click Here for Web Chat!
Server info: irc.strictfp.com #mycraft
Basic mods can be created by making a class which extends BaseMod. In your class you can override certain methods in order to customize the mod. To start with, you must override the init() method in BaseMod.
In the init() method is where you will be adding new items and recipes. In this example mod we will change the look of torches first. To do this, we call the setTexture() method in BlockMod. This method requires some parameters for the block id and the texture. The block id for a torch is 50, and we can create a new custom texture with the TextureInfo class.
This piece of code will set the texture of torches to the texture that is in slot 0 of the ExampleMods.png image. Slot numbers start at 0 in the top left, and are in rows of 16 (the slot below slot 0 is slot 16)
The next thing we will do in our mod is add a new crafting recipe. The one in the example will give you a diamond pickaxe if you place 2 blocks of dirt in opposite corners of the 2x2 crafting square. The id for a diamond pickaxe is 278 and the id for dirt is 3. You will receive one diamond pickaxe from this recipe.
The last thing we will cover in this basic tutorial is creating custom items. The item we will create is a tool which will break or kill anything instantly (Blood Pickaxe in this example). To do this we need to create a new ToolMod, and override some of the methods. The getDrops() method must be overridden so that we get the drops from all blocks we break. The getSpeed() method must be overridden so that we can break blocks instantly. The SUPER tool type is used, which has the same durability as a Diamond pickaxe. We are going to add 10 to the attack, so that it can kill anything instantly.
Now that we have our custom item, we need to be able to get it in game, to do this we need to get the id of our pickaxe, and create a new recipe for it. The pattern for this recipe will be 3 dirt blocks in the shape on an L in the 2x2 crafting sqaure.
The code for our example mod is now finished, and should look like this:
All that is left for this mod to work is to draw the custom textures. This mod has 2 of them, so the ExampleMod.png file will be 32x16. The left 16x16 square being the torch, and the right the pickaxe.
Once you have drawn them, you can put the file in the mods folder along with the class files for the example mod.
You deserve a reward for this, I mean it.
... But it is a little complex (How do the Custom Hooks work? The Javadocs don't explain anything), and the code looks a bit messy, and that's just looking at your example code.
I can't imagine how messy it would be for "advanced modding" mods.
... I don't like messy code. Maybe it's a preference thing, but I don't even understand how you're using a .getId off of a declaration. And overwriting a function within the declaration? And placing the AddRecipe instance underneath the code with no references?
To me all that stuff just seems wrong... is that a byproduct of the loader, or simply how you coded it?
Anyways, I love that you can have custom textures without having to override the standard ones.
So this really uses individual textures and doesn't override the standard ones? I keep worrying about running out of Sprite Indexes with Risugami's loader... I need a fix.
I will be documenting advanced modding much more in the future, but currently I haven't finished all the API for it. This mod manager has not been in development for very long, so more will come in the future.
As for the messy code, You can make the mods as clean as you want, that is just how I coded it so it was condensed. I may update the example mod to be neater in the future.
This mod loader still only allows a maximum of 256 blocks, but allows up to 32000 items, this is due to the limitations of the game itself, not the loader.
I'm glad you like the mod manager.
Advanced modding is going to be approached in quite a different way than the basic modding, and it won't be a bunch of method calls with objects inside them. However we are still ironing out how to best do it.
Download the zip and extract it to somewhere like the desktop.
Then download the Minecraft.jar from the link in the first post and place it in the lib folder in your MyCraft folder.
Then you can double click on MyCraft.jar to run it.
I don't understand whats wrong, cause the minecraft.jar is in there. I even deleted it, and copied my minecraft.jar from the app data folder thinger, that didnt work, so i refreshed the Dev Blog page and redownloaded from there, still doesnt work.
Hopefully this helps to solve the problem I am having. Mind you it might be something on my end because this is the second mod manager i have tried to get working and have fail.
Is your the car file named minecraft.jar? or is it something else like minecraft(2).jarIf it's different, it won't find it, I'll see if I can find something else that would break it though.
Another thing you could try is renaming it Minecraft.jar (with the capital).
Edit:
I've changed how MyCraft finds the jar, so it should work now.
Clear your cache and redownload.
Just wow. If this works...
Wow. This will make things so much easier!
By the way, does this work with Macs? I'll go try it now.
Ok doesn't work. Here is what Console said:
Don't know if this will help you that much. Hope it will.
It should be working for mac, but I overlooked something that caused it to fail.
I myself own a mac, so I should have known.
Uploaded a fix, be sure to clear your cache.
May I ask what OS your using? And where you have the zip extracted?
Here is where the error seems to start (first noticable break in Console).
Again I hope you fix this if this is a real problem.
EDIT:
I am using the latest version of MacOSX if that helps. 10.6.5