Skip to content
Rosti Studios

RS-Casino documentation · v1.0.0

Configuration

Every server setting, its default and its limits. Also editable in game.

The config is config/rs_casino/rs_casino-common.toml. It is created on first start with comments and the loader re-reads changes by itself.

You can also edit it in game: run /rs:casino config as an operator to open a paper-style settings screen with pages and a Save button. The server checks every value before it writes the file.

Casinos stay inside these limits: whatever an owner sets is clamped to them.

#Currency

Key Default What it does
currency minecraft:emerald the item chips are bought with
currency_block minecraft:emerald_block a larger item for the bank and big trades. Empty for none
currency_chips 100 chips for one currency item (1 to the maximum). One digit followed by zeros: 1, 5, 10, 200 and so on, otherwise rounded down
currency_block_chips 900 chips for one currency block

currency can also be one of RS-Economy's coins. See Using RS-Economy coins.

#Roulette

Key Default Range
bet_seconds_default 30 3 to 600. Betting time at a new table
bet_seconds_min 10 3 to 600. Shortest a casino may choose
bet_seconds_max 120 3 to 600. Longest
bet_min_allowed 1 lowest minimum bet a casino may set, in chips
bet_max_allowed 1000000 highest maximum bet a casino may set, in chips

#Tables (blackjack and craps)

Key Default
table_turn_seconds 20 time for a blackjack move (5 to 120)
table_result_seconds 6 how long a result stays on the table (2 to 60)
blackjack_decks 6 decks in the shoe (1 to 8)

#Team

Key Default
max_team_size 8 players besides the owner; 0 for none
team_may_change_settings true
team_may_use_bank true

#Staff hours

Key Default
cashier_work_start 2000 time of day (0 to 24000) the staff go to work: cashiers, croupiers and dealers
cashier_work_end 9000 when they stop. A shift may run past midnight

Tables without their villager at work take no bets. See Casino staff.

#Timing

Key Default
credit_idle_seconds 120 unplayed chip returns after this (5 to 3600)
scratch_idle_seconds 60 untouched ticket clears after this
scratch_shown_seconds 5 a finished ticket stays this long
payout_chips_shown 600 most payout chips drawn at once (10 to 2000). All chips are paid regardless
wheel_turns 4 whole turns of the lucky wheel
wheel_spin_seconds 7 how long it spins

#Odds

Everything the machines pay is a setting, in times the stake.

#Slot machine

Key Default
slot_pay_cherry 8
slot_pay_lemon 10
slot_pay_bell 15
slot_pay_bar 30
slot_pay_seven 50
slot_pay_diamond 100
slot_pay_two_cherries 2

#Scratch card

scratch_pay_1 to scratch_pay_6: 100, 25, 10, 5, 2, 1. scratch_chance_1 to scratch_chance_6: 2, 6, 20, 40, 40, 110 per 1,000 tickets. The six prizes must all differ and the chances together may not exceed 1,000, otherwise the defaults are used.

#Plinko

plinko_pay_outer 25, plinko_pay_second 4, plinko_pay_third 1, plinko_pay_fourth 0, plinko_pay_centre 1. The layout is symmetric.

#Lucky wheel

wheel_pay_gold 10, wheel_pay_red 3, wheel_pay_green 2, wheel_pay_orange 1, wheel_pay_purple 0.

Before you change an odd, work out the return. Raising a payout lowers the house edge, and a payout over 100% return means the casino loses money on average. The game pages list the return of the defaults: slot about 94.3%, scratch 94.0%, plinko 93.75%, wheel 95.0%.

#Old settings file

If you have an old rs_casino.properties, its values are imported once and the file is renamed to .migrated.

Something missing or wrong? Tell us on Discord. This documentation describes v1.0.0.