rikka0w0 / MobZReborn

Continued of https://github.com/Globox1997/MobZ
https://www.curseforge.com/minecraft/mc-mods/mobz
7 stars 1 forks source link
minecraft minecraft-mod

MobZ (Reborn)

A port of Globox1997's MobZ, for Minecraft versions (Supports both Forge and Fabric):

This branch is for Minecraft [1.21.2, 1.21.3].

1.16.5 only has Forge version, for 1.16.5 Fabric version, check out the original MobZ.

This mod adds vanilla style mobs, blocks and items.

Dependencies

Forge Version

Since 3.2.0 for Minecraft 1.17.1 (including the patched 3.0.2 for Minecraft 1.16.5), the Forge version also depends on Cloth Config API.

Neoforge Version

Neoforge support is introduced since Minecraft 1.20.4 and requires Cloth Config API.

Fabric Version

Since 3.3.0 for Minecraft 1.18.1, the Fabric version starts to depend on Fabric Shield Lib. Using this library alleviates the compatibility issue with other mods that add shields.

You need to install Fabric Loader, Fabric API, Cloth Config API and Fabric Shield Lib together with this mod. Mod menu is highly recommended. For version requirements, check out the release page of this repo.

For developers

Since 1.17.1, MobZ (Reborn) for Fabric and Forge share the common code base as much as possible (in the src folder). The entire code base uses Minecraft official mapping. The platform-specific code and resources are in forge and fabric folder, they provide a thin layer of abstraction and hide the difference between Forge and Fabric.

To modify and debug the code, first import either "forge" or "fabric" folder as a Gradle project into the Eclipse IDE, and then run the gradle task genEclipseRuns. Intellij IDEA is also supported.

To debug the Fabric project in Eclipse, you need to copy fabric\fabric_loader_dependencies.json into fabric\run\config folder, otherwise Fabric loader will complain about the dependencies.

Build artifact

Windows users need to replace ./ and ../ with .\ and ..\ respectively.

git clone https://github.com/rikka0w0/MobZReborn.git
cd MobZReborn/$LOADER_NAME
./gradlew clean prepareInfo runData
./gradlew build

where $LOADER_NAME must be one of:

  1. neofoge
  2. fabric
  3. forge

Specify JRE path:

  1. Minecraft 1.16.5 and below work best with Java 8.
  2. Minecraft 1.17 and 1.17.1 requires Java 16.
  3. Minecraft 1.18 to 1.20.4 (inclusive) requires Java 17.
  4. Starting from 1.20.5, Minecraft requires Java 21.
    ./gradlew -Dorg.gradle.java.home=/path_to_jdk_directory <commands>

Special thanks to Globox1997 who originally made this fantastic mod 感谢mcmod.cn的天涯提供的中文本地化