HeavyCorePreClickMod banner
HeavyCorePreClickMod icon

HeavyCorePreClickMod

Create a Minecraft Fabric mod for version 1.21.1. The mod should automatically right-click Ominous Vault blocks whenever the Heavy Core item appears. It...

00
fabricServer1.21.1mod

HeavyCorePreClickMod Notes

  • Server-side Fabric 1.21.1 mod that automatically pre-clicks Ominous Vaults when a Heavy Core item appears nearby.
  • Watches for Heavy Core item entities spawning/entering the world, waits a brief delay, then tries to use the closest ominous Vault block.
  • Uses the nearest alive, non-spectator player within range to perform the block interaction; ignores other vault rewards entirely.
  • Retries several times with short gaps until the Heavy Core disappears or a click succeeds, keeping the behavior reliable without spamming.
  • Only targets ominous Vault states and won't interact with other blocks or non-ominous vaults.

Known limitations / tips:

  • Needs a player within roughly 8 blocks of the vault to perform the server-side click.
  • The vault search radius is about 6 blocks around the Heavy Core; drops far away from the vault won't be handled.
  • Designed for dedicated/server environments; no client features are included.