Dice of Fate banner
Dice of Fate icon

Dice of Fate

Create a special item called “Dice of Fate” which, when used by a player, simulates rolling a 20-sided die (1d20) and triggers an effect based on the result....

00
neoforgeServer1.21.1mod

Dice of Fate is a server-only NeoForge mod that lets operators hand out a consumable “Dice of Fate” (a tagged, renamed paper) that triggers a 1d20 roll when right-clicked. Each use consumes one die and sends the player a roll message so the outcome is clear.

How to use:

  • OPs can run /diceoffate give [count] to receive Dice of Fate (defaults to 1).
  • Right-click while holding the die to roll. The die is consumed immediately and the result is messaged to the player.

Outcomes:

  • Roll 1: instant explosion at the player and lethal damage.
  • Roll 2–10: small boon (heal, short regeneration and speed, plus 4 golden carrots).
  • Roll 11–19: major boon (long strength and resistance, stronger regeneration, 1 enchanted golden apple, 8 experience bottles).
  • Roll 20: legendary reward (very long high-tier resistance/strength, absorption, long luck, a totem of undying, 2 netherite ingots, celebratory particles).

Implementation notes:

  • Marked with @Mod(..., dist = Dist.DEDICATED_SERVER) and uses only vanilla items/effects, so it stays compatible with vanilla clients and avoids custom registries or client assets.