Ghillie Suit mod banner

Ghillie Suit

25 December 2020 CC0-1.0Complete
JavaMinecraftmodminecraftfabricstealth

Repository

View on GitHub
2 Stars
0 Forks
Updated 1mo ago

Languages

Java 100%

Recent Activity

  • Update README 1mo ago
  • Updated release status in changelog 1mo ago
  • Updated release git workflow to tag the release with the m… 1mo ago
  • Ported to mc version 26.3 1mo ago
  • Updated git workflow to append minecraft version 1mo ago
Fabric API

I made this to teach myself how to mod with Fabric. I used the official Fabric example mod as a template and built my own mod on top of it, a mossy ghillie suit that helps you hide from mobs and players. Most of the design work went into the stealth, so this page is about that.

Version 1.1.0 is available for Minecraft 26.2 and 26.3, with hunger-powered stealth and new enchantments.

The set

The suit has four pieces, a hood, tunic, pants, and boots, each made from Moss Weave in the normal armour shapes. Moss Weave is two moss blocks and two string, and the suit repairs with it, so one material carries the loop from making the pieces to keeping them repaired.

How the stealth works

Stealth comes from the suit in two ways. The first is a gradual reduction in how far mobs can see you, applied per piece, so each piece worn shrinks a mob's targeting range by 12.5 percent. On the standard 16-block follow range that is exactly 2 blocks per piece, and the full suit lands on a clean halving. I chose linear scaling deliberately, since a flat per-piece value is legible and every piece has an effect you can feel.

Because the reduction is a percentage, it applies the same way to mobs with very different detection ranges. The chart below shows that against real mob ranges, with a point for each piece worn.

Mob detection range by ghillie pieces worn

Mob detection range by pieces worn. Each mob shows its range with 0 to 4 pieces, halved at the full suit. The band at the left is the active ability, the full suit plus crouch while hunger remains, which makes every mob unable to target you.

The crouch is where the suit does its real work. With the full suit and a non-empty hunger bar, crouching makes you untargetable, so mobs can no longer acquire you, and clears the target of any mobs already chasing you. Other players still see you, but as a translucent ghost, the way spectators appear, and full invisibility would be unfair in PvP, so the suit leaves you that ghost instead of vanishing completely.

Active stealth now drains hunger and stops when the bar is empty. A full bar gives 10 seconds, but this duration can be increased with the new Comfort enchantment.

The full ghillie suit in action. Crouching hides you from mobs while hunger lasts

The full ghillie suit in action. Crouching hides you from mobs while hunger lasts.

The deeper reasoning and the implementation are in the stealth design notes.

Enchantments

  • Comfort

    • Each piece enchanted with Comfort adds another 5 seconds, up to 30 seconds with all four pieces enchanted.
  • Poise

    • Lets fully charged melee attacks become critical strikes while actively hidden. It goes on the tunic and cannot share it with Comfort, so there is a choice between longer stealth and stronger attacks. Ranged attacks are unaffected.

The suit also accepts Mending and Unbreaking on every piece, and Swift Sneak on the pants. Comfort, Poise, and Unbreaking are available at the enchanting table; Mending and Swift Sneak use enchanted books and an anvil. Other vanilla armour enchantments, including Protection, remain unavailable as an attempt to balance the ghillie suit with other armour sets.

Distribution and license

The mod is distributed from two places only, GitHub and Modrinth, and you can use it in a modpack as long as you link back to this page as the original mod. It is CC0, so you can copy it, change it, and use it however you like. I wrote it to learn, and I am happy for others to take it apart for the same reason.

An unhandled error has occurred. Reload 🗙