
thomas
Hi, I want you to make an item that can be played like a slot machine, and if it hits the jackpot, it means being immortal and very strong for 4 minutes and...
00—fabricServer1.20.1mod
Hakari Jackpot Slot
- Added a Hakari-inspired slot machine item (
Hakari's Jackpot Slot) that players can right-click to roll for a 15% jackpot. On a win, it grants 4 minutes 11 seconds of invulnerability plus heavy buffs (Strength V, Resistance IV, Regeneration III, Absorption hearts, Speed II, Fire Resistance). - Jackpot invulnerability is tracked server-side and restored every tick during the duration; it safely reverts to the player's prior invulnerability state when time expires.
- Losing spins give brief nausea and slowness to sell the miss.
- Claim the item with the
/hakaricommand or find it in the Combat creative tab. - The item uses a nether star look; no custom texture is required.
- Note: The mod enforces invulnerability during jackpots, which may conflict with other mods that toggle the same flag; jackpot duration does not persist across server restarts.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.