questslotmachine-1.0.0+mc26.1.2.jar
Curse Maven Snippet
What's new
First release: a slot machine you play for loot
The first version of Quest Slot Machine, for Minecraft 26.1.2 on NeoForge. The file is questslotmachine-1.0.0+mc26.1.2.jar, and it runs on any NeoForge build for 26.1.2.
No mod is required to play it. Craft the machine, craft tokens, pull the lever. FTB Quests is optional: when it is installed the mod adds a quest reward that pays out in spins, and it works with any FTB Quests build for 26.1.2. Pricetag is optional too. Install this mod on both the client and the server.
The Slot Machine and its tokens
The Slot Machine is a two-block-tall golden cabinet whose marquee bulbs give off light. Place it in your base, right-click it and spend Slot Tokens on it, one token per spin. Whenever somebody spins at a machine, its lever drops for every player nearby.
Both recipes are unlocked from the start, so they show up in the recipe book in any world without having to do anything first.
- Slot Machine: 4 gold ingots, 2 iron ingots, a diamond, redstone and a comparator.
- Slot Token: an emerald and 4 gold nuggets make 2 tokens.
Spinning
Pull the lever, press SPIN, or hit Space or Enter. The three reels stop one by one, left to right, and the result sign lights up in the colour of the tier: Common, Rare, Epic or JACKPOT! An Epic sends gold nuggets flying out of the machine, a Jackpot sends gold ingots, and the whole server is told who hit it.
The server picks the prize and puts it in your inventory before the reels even stop, so closing the screen mid-spin loses nothing. With a full inventory the prize drops at your feet.
The PRIZES button (or P) opens What you can win: every tier of the pool your next spin draws from, its real chance, and every item with how many of it you can get. It also counts down the pity counter: after 25 spins in a row without an Epic or a Jackpot, the next spin is Epic or better.
With FTB Quests: quest rewards you spin for
When FTB Quests is installed, it gains a new reward type, Slot Machine Spin, with two settings: how many spins it gives (1 to 100) and which reward pool they draw from. Claiming it opens the slot machine straight away. In the quest book the reward shows the Slot Machine with the number of spins on it, so it never looks like a Slot Token reward sitting next to it.
Those spins are free ones, they work anywhere, and they are used before your tokens. They are saved on the player, not on the screen: close the machine halfway through and the rest are still waiting, even after death. Each spin remembers the pool of the quest that gave it.
Without FTB Quests, free spins can still be handed out with /slotmachine give.
For pack makers
Reward pools are datapack files in data/<namespace>/slot_pools/<name>.json, reloaded with /reload. Each tier has a weight and either a list of items with a minimum and maximum amount, or a Pricetag budget:
{ "tiers": [
{ "tier": "common", "weight": 60,
"entries": [ { "item": "minecraft:iron_ingot", "min": 4, "max": 12 } ] },
{ "tier": "jackpot", "weight": 2, "pricetag_budget": 262144 }
] }
questslotmachine:defaultpays out vanilla items, from iron and bread up to netherite and a nether star. It is the pool of Slot Tokens and of quests that don't name one.- With Pricetag installed, a tier with a
pricetag_budgetand no items picks a random item from any mod in the pack, in a stack worth about that much. It never picks anything worth more than the budget, spawn eggs, or items in the#questslotmachine:never_rewardtag (command blocks, barriers, bedrock, spawners, the Slot Token itself…).questslotmachine:pricetagis a ready-made pool that works this way. Without Pricetag, those tiers are simply skipped. - A tier with nothing to give is left out of the roll and out of the odds shown. A quest that names a pool that doesn't exist uses the default one and writes a warning in the log.
- Commands (operators only):
/slotmachine give <players> <spins> [pool]queues spins and opens the machine, exactly like the quest reward, which makes it easy to hand out spins from KubeJS, command blocks or a command reward./slotmachine open <players>just opens the machine. - Config in
config/questslotmachine-common.toml:pitySpins(25; 0 turns the pity counter off),announceJackpot(true),maxFreeSpins(100; spins past this are lost),tokenPool(the pool Slot Tokens spin from) andreach(8 blocks). On a server, the server's values are the ones that count. - The two recipes are ordinary crafting recipes. In a pack where tokens should only come from quests, remove the token one with KubeJS or a datapack.
Translations: English and Italian.
Quest Slot Machine can work together with FTB Quests, but it is not made, endorsed or supported by Feed The Beast.
This mod has no additional files

