Skip to main content

The introduction to adding HammerAnimations to your workspace.

Getting Started

Getting familiar with geometry and animations

Go grab yourself the Blockbench app and play around with it.

This mod relies on Bedrock geometry and animation format, which is easy to do in Blockbench.

The model type you are looking for is Bedrock Entity.

Before using HammerAnimations, you should firstly add it to your workspace!

1.19.2 and Above

Firstly, add my repository to your workspace. The repositories block should already be present in your build.gradle

repositories {
maven {
name = "Zeitheron Maven"
url = "https://maven.zeith.org/"
content {
includeGroupByRegex "org\\.zeith.*"
}
}
}

After adding the repository, navigate to dependencies closure. In here you are going to add two dependencies:

dependencies {
implementation fg.deobf("org.zeith.hammerlib:HammerLib-1.19.2:19.3.76")
implementation fg.deobf("org.zeith.hammeranims:HammerAnimations-1.19.2:19.2.25")
}

Make sure to replace the 1.19.2 with your game version, 19.3.76 with latest HammerLib version for given version, and 19.2.25 with the latest HammerAnimations version.

After this, refresh your project in IDE of your choice.

You should see HammerLib and HammerAnimations appear in your classpath.

mods.toml

Add this piece of code to your mods.toml:

[[dependencies.mod_id]]
modId="hammeranims"
mandatory=true
versionRange="[19.2.25,)"
ordering="NONE"
side="BOTH"

Be sure to replace the 19.2.25 with the actual minimal version you require to run your mod.

1.12.2

Warning!

While 1.12.2 is very ancient version, HammerAnimations was built for 1.12.2 to support TerrariaCraft project.

Before proceeding, make sure you are using stable_39 MCP mappings. This is very important, and ignoring this is going to crash your game.

After that is ensured, add my repository to your workspace. The repositories block should already be present in your build.gradle

repositories {
maven {
name = "Zeitheron Maven"
url = "https://maven.zeith.org"
}
}

After adding the repository, navigate to dependencies closure. In here you are going to add two dependencies:

dependencies {
deobfCompile "org.zeith.HammerLib:HammerLib-1.12.2:12.2.49"
deobfCompile "org.zeith.hammeranims:HammerAnimations-1.12.2:12.2.25:deobf"
}

After this, run gradle setupDecompWorkspace idea for IntelliJ IDEA or gradle setupDecompWorkspace eclipse for Eclipse IDE.

You should see HammerLib and HammerAnimations appear in your classpath.

1.12.2 ForgeGradle 3+

When using newer ForgeGradle, you can use the fg.deobf() feature, but it may or may not work. This does allow using other mappings, but modern FG doesn't like 1.12.2 much, so your success is luck-based. HammerLib currently is not provided in its compiled artifact, you might need to use CurseForge maven.

Learn more about Curse Maven here.

As always, add my repository to your workspace. The repositories block should already be present in your build.gradle

repositories {
maven {
name = "Zeitheron Maven"
url = "https://maven.zeith.org"
}
}

After adding the repository, navigate to dependencies closure. In here you are going to add two dependencies:

dependencies {
// implementation "org.zeith.HammerLib:HammerLib-1.12.2:12.2.49" // this is remapped already to stable_39.
implementation fg.deobf("curse.maven:hammer-lib-247401:5115160") // this is not remmaped, and fg.deobf will do that
implementation fg.deobf("org.zeith.hammeranims:HammerAnimations-1.12.2:12.2.25")
}