Mine-and-blade-admin / Battlegear2

GNU General Public License v3.0
54 stars 54 forks source link

Mine and Blade : Battlegear - 2

Minecraft version: 1.11.2 Forge Version: 1.11.2-13.20.0.2228

This is the second iteration of Mine & Blade: Battlegear, the popular dual-wielding and combat mod for Minecraft. The mod has a heavy dependency on the use of ASM (coremod) to edit the bytecode of the minecraft base classes.

What works

Note from nerd-boy: I am not 100% happy with the way we are syncing items. It works now by sending a packet with all the "battle items" to each player that is viewing a player every second. I am not sure if this will be too much or not. Although right now I cannot think of another way to do it that doesn't require more bytecode manipulation. I think we already have enough AccessTransformers planed to keep us busy without adding more that we may in fact not need.

What doesn't work

Installation

To make a fork The files contained within the repository must be placed inside a minecraft forge-universal src installation. Due to potential legal issues of re-distributing Mojang .java files, all base class edits are distributed as .java.patch files. They serve only as documentation. You can set a dev environment by Gradle, with IntelliJIdea: gradlew setupDecompWorkspace idea genIntellijRuns or Eclipse: gradlew setupDecompWorkspace eclipse then import the project file. Complete the running configurations with the VM option: -Dfml.coreMods.load=mods.battlegear2.coremod.BattlegearLoadingPlugin

To make an addon The files in /battlegear api folder can be used as external libraries. M.U.D and Battlegear are independent. To load them while making the addon, simply put them in the /mods folder in your mod run installation.

Depending on the version of ForgeGradle, you may need to add -noCoreSearch as run configuration argument to avoid duplicated patching.

Compiling the Mod

The mod can be compiled using the following gradle command gradlew build

This will generate a jar file in the battlegear dist folder, along with its checksum.

Translations

If you can help to update any of the translation files please fork & make a pull request.

We currently have translation for the following languages (please note that many of these may be out of date)

Please feel free to add to this list or update any of the current language files. They can be found in battlegear mod src/minecraft/assets/battlegear2/lang/.

Some Notes for Texture Pack Makers

Some of the rendering capabilities of the mod are still in development, especially concerning the heraldry. The following are a few notes.