Unofficial Mo'Creatures SMP/CraftBukkit Compatibility Pack

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    33387
  • Created
    Oct 29, 2011
  • Last Released File
    Never
  • Total Downloads
    20,544
  • License

Categories

Members