Integrations
Back to the topHigh Rollers plays well with the rest of a modpack. None of these mods are required. Install one and its part switches on, leave it out and the mod never loads a line of its code.
Economy mods
Section titled “Economy mods”The cashier turns items into chips. With one of these installed, it also turns that mod’s currency into chips and back. Each adds an extra row after the item rates: the cashier’s arrow buttons step onto it, and the caption tells you what one exchange is worth.
| Mod | Row | What the cashier reads |
|---|---|---|
| Lightman’s Currency | Coins | The coins in the player’s equipped wallet, in Lightman’s usual setup. A player with no wallet has no balance here. |
| Create: Numismatics | Spurs | The player’s bank account, counted in spurs |
| Impactor | Dollars | The account for the server’s primary currency, in whole units. Cents stay with Impactor. The row says Dollars whatever the currency is called. |
Trades are the same both ways, with no spread. Chips in the slot sell back for exactly what buying them cost.
- With an empty hand, Right-Click on the currency’s row buys one lot of chips, and Shift + Right-Click buys as many lots as the balance covers, up to 64. With chips in hand, it sells the same way.
- Only whole lots trade. What’s left over of a lot stays where it is.
- In a found casino the chips come out of the house’s money, and buying them wears the house down. In a banked house they come out of the cashier’s float, and an infinite house mints them.
- Every exchange is written to the audit log.
- A currency that errors is dropped from the cashier, with one line in the log.
- Built against Lightman’s Currency 2.3, Numismatics 1.0 and 1.1, and Impactor 5.3, for Minecraft 1.21.1. Numismatics needs Create.
Setting the exchange rate
Section titled “Setting the exchange rate”Each economy mod has its own section under economy in the server config, and each holds a pair of whole numbers:
economy.lightmans:coinsPerLotandcreditsPerLoteconomy.numismatics:spursPerLotandcreditsPerLoteconomy.impactor:unitsPerLotandcreditsPerLot
A lot is that many coins for that many credits of chips. A pair, not a single number, because a coin worth less than a credit is the ordinary case. If your modpack reprices its own economy, reprice these beside it.
With Jade installed, looking at a table shows the round, the seats and the stakes. The bank appears only for the table’s owner, co-owners and operators. The server sends it, so a changed client can’t peek.
- The round shows as its phase, such as Betting open, In play or Paying out, or Closed.
- The seats show as so many of so many playing, at tables that seat more than one.
- The stakes show where the table has limits.
- Operators here means anyone with
highrollers.house.manage.
JEI has two parts. You can drag an item out of JEI’s list onto the Pit Boss Key’s rates tab to set a cashier’s rate. And the games have information pages, so a player can look up a paytable without leaving JEI.
- Information pages cover the slot machine, Fortune Vault, video poker, roulette, Sic Bo, craps, baccarat, Texas Hold’em, Liar’s Dice, the Big Six, the Dice Tower, the Game Show, the racing cabinet, blackjack, scratch cards, pull-tabs, the Gacha Station and its capsule, Plinko, the claw crane, the coin pusher, and the pachinko machine and its ball. Each prints that server’s own card.
- Keno and bingo have no page.
- Dragging onto the rates tab sets which item you’re pricing, as if you’d clicked it in your inventory. You keep the item.
Redstone
Section titled “Redstone”Every table, cabinet and counter answers redstone with no other mod needed. A comparator reads how busy a table is, four control modes decide whether it’s open, and a jackpot puts out a one-tick pulse. A signal reaching any block of a table reaches the whole table.
The mode is set from the redstone button on the edge of the Pit Boss Key’s settings window.
| Mode | The table is open |
|---|---|
| Always | Whatever redstone does. This is the default. |
| With signal | While a signal reaches it |
| Without signal | While no signal reaches it |
| Once per pulse | For one round per new signal. A signal held on does nothing more. |
- Closing by redstone lets a round already going finish, then sends everyone’s credits home.
- A table’s own blocks don’t count as a signal to it, so its pulse can’t open it.
| What it reads | A comparator gives |
|---|---|
| Sic Bo, roulette, craps, the Big Six and baccarat | Players with a bet, out of six |
| Blackjack | Seated players, out of five |
| Texas Hold’em | Players sitting with a stack, out of six |
| Liar’s Dice | Players in the match, out of four |
| The Dice Tower and the Game Show | Players with a bet, out of four |
| Keno | Players staking, out of four bays |
| The racing cabinet | Bettors, out of ten stations |
| Bingo | Cards sold, against the house’s fill |
| A slot machine, video poker, the Fortune Vault | Full while a player has credits in it or a result shows, else nothing |
| A cashier, scratch card machine, prize machine or arcade machine | Nothing |
| A casino jukebox | The slot that’s playing |
- Nobody reads nothing, and a full table reads full strength. Anyone at all reads at least one.
- The jackpot pulse is full strength on every side of every block of the table, for one tick. It fires on a slot line big enough to count as a jackpot, and when a progressive pool is taken at a slot machine or video poker. It waits until the win has shown.
- The ATM has no comparator output.
Hoppers
Section titled “Hoppers”Off by default, per table: the owner’s Allow hoppers switch on the Pit Boss Key. On, chips fed in go into the table’s bank, or a cashier’s float, and a cashier’s traded items into its stock. Nothing ever comes back out, and a player’s credits are never touched.
Datapack function hooks
Section titled “Datapack function hooks”A datapack can react to bets with no Java at all. Three function tags run when a bet settles, with the player as @s and the table’s position as the run position:
| Tag | Runs when |
|---|---|
#highrollers:v1/on_win |
A settlement paid more than was wagered |
#highrollers:v1/on_loss |
A settlement paid less than was wagered |
#highrollers:v1/on_jackpot |
A progressive pool has been paid |
- The function receives macro arguments:
amount(what came back, stake included, or the pool alone for a jackpot),game(the block’s name, such asroulette_table),x,y,zanddimension, pluswagered(not on jackpots) andlink(jackpots only). - A push, where the player gets exactly their stake back, fires nothing.
- The player must be online. An offline player’s settlement fires nothing.
- Functions run at permission level 2, with their output hidden and failures logged.
- Posted prizes at bingo, the racing cabinet and the Game Show fire
on_winwith nothing wagered. - Laptop games fire nothing.
- The mod ships no functions, so an empty tag costs a server nothing. Hooks run after the ledger has moved and can’t alter or cancel a bet.
The Java API
Section titled “The Java API”Another mod can register its own currency at every cashier, read and move a player’s chips through a chip account, read their comp points, and listen for stake, payout and jackpot events. It lives in com.highrollers.api.v1 inside the mod jar and is server-side only, because the server rolls.
HighRollersApiis the one way in: a player’schipAccount,registerExchangeProvider, andcompPointsMilli.ChipAccounttakes all or nothing, and gives without losing a credit: what won’t fit is held for the player.ExchangeProviderandExchangeQuotemake a currency’s row at the cashier.TableEventspostsStakeEvent,PayoutEventandJackpotEventon NeoForge’s event bus. They fire after the ledger write and none of them can be cancelled.- The API can’t add tables, games or odds. Odds belong to datapacks.
Permissions and claims
Section titled “Permissions and claims”- A permission manager such as LuckPerms decides the mod’s six nodes. See Commands and permissions.
- There’s no claim mod integration.
protection.sealedTablesis the mod’s own protection, and a claim mod works on its own terms.