A Minecraft mod with fantasy weapons for Forge, NeoForge, and Fabric. A companion to Fantasy Armor.
Downloads: CurseForge · Modrinth.
Fabric requires Fabric API and Cloth Config. AutoConfig1u is bundled on 1.14.4 and 1.15.2.
| Loader | Minecraft |
|---|---|
| Forge | 1.12.2, 1.14.4, 1.15.2, 1.16.5, 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21.1, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3 |
| NeoForge | 1.21.1, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3 |
| Fabric | 1.14.4, 1.15.2, 1.16.5, 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21.1, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3 |
Build with JDK 25 and the shared fantasy-build repository checked out at ../fantasy-build. Toolchains select Java 8, 17, 21, or 25 for each target.
# Build all platforms or one platform
./gradlew assemble
./gradlew :platforms:fabric-1.21.1:assemble
# Run a development client or server
./gradlew :platforms:fabric-1.21.1:runClient
./gradlew :platforms:fabric-1.21.1:runServerResult JARs go to dist/. ./gradlew clean removes build outputs and dist/.
Tests run unit checks and Minecraft server scenarios. Run both profiles before a release:
./gradlew test --no-parallel --max-workers=2
./gradlew test -PtestProfile=configured --no-parallel --max-workers=2
# Test one platform
./gradlew :platforms:fabric-1.21.1:test --no-parallel --max-workers=2The default profile checks default settings; configured checks modified settings.
Success means BUILD SUCCESSFUL and PASS for every selected platform in the final summary.
Server reports are in platforms/<target>/build/reports/test/<profile>/results.xml.
Client rendering still needs a manual check. Minecraft 1.12.2–1.16.5 platforms have no GameTest runner; verify it with runClient and runServer.
Forge 1.12.2 uses config/fantasy_weapons.cfg; damage and attack speed are synchronized from the server on login.
- definitions/content.kt — weapons, model sizes, materials, and recipes.
- definitions/translations.kt — translations.
- definitions/targets.kt — supported platforms and release version.
- definitions/mod.kt — mod metadata.
resources/— shared textures and models.core/,minecraft/,loaders/,platforms/— shared logic and version/loader-specific code.build-logic/— connects project definitions to Fantasy Build.
Resources are generated automatically during builds and Gradle game launches. To generate them separately, run ./gradlew generateResources.
P.S. I also want to note that part of this code was written using AI, which isn't something I'm proud of, but I'm tired of Minecraft development and constantly having to update the API for every new version. I’m familiar with 1.7.10, but I don’t want to delve deeply into how the new versions of Minecraft work, let alone three or more loaders at the same time. I tried to keep it under control as best I could. Sorry if there’s any garbage code or bad design choices here.