Unofficial Mo'Creatures SMP/CraftBukkit Compatibility Pack
Unofficial Mo'Creatures SMP/CraftBukkit Compatibility Pack
Overview
Please note that although my compatibility classes do not modify Mo'Creatures or contain any Mo'Creatures code, I *DO* have express permission from DrZhark (the creator of Mo'Creatures) to release my code and files. Please also note this is an UNOFFICIAL mod, it is not supported, or maintained by DrZhark.
The Unofficial Mo'Creatures SMP/CraftBukkit Compatibility Pack is a set of classes for CraftBukkit that extends CB with the new creature types from the Mo'Creatures mod. It was created to allow CraftBukkit plugins to utilize the new mob types. For any CraftBukkit mod that retrieves mob types via the mob name, it should correctly return a corresponding CreatureType. One example of a plugin that does this is the RPG plugin called Heroes, which allows users to specify experience, damage, and HP values per creature.
Usage Example
As an example, in Heroes' experience.yml you might have:
creeper: 20 enderman: 30
which would give 20 experience for Creepers and 30 for Endermen. After installing the Compatibility Pack, you might add something like this to your experience.yml file:
wraith: 35 flamewraith: 40 ogre: 50
etc.
Requirements
CraftBukkit (Mo'Creatures only supports CB 1185, though 1188 also works. However, these compatibility files are not CB version specific and should work on later versions should the Mo'Creatures mod be updated.)
Mo'Creatures SMP (currently supports creatures from Beta 1.3.1)
Installation
Please note that this is not a fan update to Mo'Creatures itself, and you WILL need the entire Mo'Creatures SMP package for these compatibility classes to have any effect. See the Requirements section above for a link to the official Mo'Creatures mod thread.
To install, simply open your craftbukkit-0.0.1-SNAPSHOT.jar file in an appropriate editor (7zip, WinRAR etc.), extract or open the contents of the UnofficialMoCreatureCraftBukkitCompat-0.0.1Beta.zip and drag the org folder into the editor window with the craftbukkit .jar open. It will overwrite two files (CreatureType.class, and CraftEntity.class). All other .class files are new code.
Because this mod changes the CraftEntity class's getEntity function to accommodate the new creature types, it MUST be installed *after* you install Mo'Creatures SMP and its dependency, ModLoaderMP. The changes to CraftEntity for this mod also include the (small) changes that ModLoaderMP makes to it, so please do not worry about incompatibilities between the ModLoaderMP version of CraftEntity.class and the Compatibility Pack version.
If the current version of the Compatibility Pack is not present in the files section, please check out the Repository tab. The repository contains both the source code and compiled classes. To install from the repo, simply navigate inside the "compiled" directory and drag the "org" folder into the opened craftbukkit-0.0.1-SNAPSHOT.jar as mentioned above.
Source Code
If you're interested in obtaining the source code for the Unofficial Mo'Creatures SMP/CraftBukkit Compatibility Pack, please check the Repository tab.
In order to compile the code for the Compatibility Pack, you'll need to check out a version of both the Bukkit and CraftBukkit source. First compile Bukkit with code files from org/bukkit/entity in the Compatibility Pack repo. Then you will need to create a .jar with Mo'Creatures SMP as well as its dependencies. Set up Maven to use the .jar as a dependency. Then you can copy the Compatibility Pack code from org/bukkit/craftbukkit/entity into the CraftBukkit source folders and compile CraftBukkit.
Credits
Credit goes to DrZhark for creating Mo'Creatures.
Shout out to Sleaker of the Heroes devs for pointing me in the right direction while developing this pack.
Agreed. If it is possible try adding Spout?
I concur, please consider adding Spout support.
support heroes ?
It would be good to see this working with spout.
If only Mo' Creatures SMP worked with SpoutCraft D:
Tabling the request for Spout port.
Hi, removed last comment due to major facefalm lol
Will try on our craftbukkit 1337 modloader mix server.
We also run a Spout server and would be VERY interested in a total port to just craftbukkit without modloader if your capable and allowed ? fingers and toes crossed :D
:)
I second that, moved from modloader to spout a month+- ago and don't won't to keep going back on forth with flavor of mods being created and going inactive.
Spout has the benefit that you can just update the server and the clients don't have to update on their side every time.
Are you planning on attempting to integrate with Spout so that players can use the Spoutcraft launcher rather than mod their client?