This is the public repository for the Block Meter a Fabric Mod to measure Boxes in Minecraft.
- Get a version of gradle that's at least 4.10.2
git clone <repo>
git branch -r
to see available branchesgit checkout fabric_1_16
to select your branchgit submodule init
git submodule update
/path/to/gradle build
Because I created several mods, which have some things in common, the structure of my mods is a bit different from the example mod that Fabric or Forge provide.
In particular, I don't want the gradle files to be duplicated into every single mod repository, and some common files that contain version info for Fabric, its tools, and some library mods, have been moved to a (common) submodule.
Software | Version |
---|---|
Java (OpenJDK) | 17, 18 |
Gradle | ./gradlew or current |
All my mods use the same repository of files that match MineCraft, Fabric, and common libraries versions. This is included in the mod repository as a Versionfiles submodule, and you should get it when cloning the repo. Run git submodule init
, then git submodule update
to get the current version of the files. Do this after selecting your branch, see below.
There are branches for the various versions of MineCraft that are supported by the mod. Run git branch -r
to see which branches there are, then git checkout branchname
without the origin/
part, for example, git checkout fabric_1_16
.