promotional bannermobile promotional banner

GolemMechanic

Repair iron and snow golems with a dispenser. Plugin and mod.

GolemMechanic

Repair golems with a dispenser.

When a dispenser fires, it looks at the block right in front of it. Damaged golem there, matching item inside? The golem gets healed and the item is used up. Otherwise the dispenser just does its normal thing and throws the item out. You never lose an item to this.

Golem Item Heals
Iron golem Iron ingot 25 HP
Snow golem Snowball 2 HP
Snow golem Snow block 4 HP

The 25 HP match what you get healing an iron golem by hand. Snow golems have no vanilla equivalent, so those numbers are scaled against their 4 HP pool.

Runs on the server. Clients don't need it.

Which file

The loader is in the file name, and the Minecraft version sits after the +.

  • GolemMechanic-Bukkit-1.0.0.jar covers Bukkit, Spigot, Paper, Purpur and Folia in one file, across every supported version
  • GolemMechanic-Sponge-1.0.0.jar is for Sponge, API 17
  • the fabric, forge and neoforge files are per Minecraft version

Versions

Fabric runs 1.15.2 through 26.2. Forge covers 1.16.5 to 1.20.1, NeoForge picks up from 1.21.1 and goes to 26.2. The Bukkit jar handles the whole range on its own.

1.15 is the floor because healing iron golems with iron ingots only arrived in 1.15, and there is nothing to automate before that.

Those are the common releases rather than every single patch version. Within a minor line a jar will usually load on its neighbours anyway.

Compatibility

Property Info
Minecraft Version 1.15.2 - 26.2
Plugin Loader Bukkit, Paper, Spigot, Purpur, Folia
Mod Loader NeoForge, Forge, Fabric, Sponge
Dependencies None

Config

The plugin ships a config.yml where you set which item heals which golem for how much, plus particles and sound. The mods have no config yet, the values are fixed.

/golemmechanic reload re-reads the file, permission golemmechanic.admin.

Heads up

Nothing here has been run in game yet. It all compiles, the core logic has unit tests, and the jars were checked for contents and class references, but no jar has been loaded by an actual server or client so far. If you try it, tell me what breaks.

Source: https://github.com/LucasTHCR/GolemMechanic

The GolemMechanic Team

profile avatar
  • 2
    Projects
  • 263
    Downloads

More from benexiyt