Skip to content

Configuration

Malik Aljazzar edited this page Oct 12, 2026 · 3 revisions

Configuration

The mod uses two server config files, both generated on first launch:

config/lc_ftb_hook-server.toml               prices, upkeep timing, backends, war
config/lc_ftb_hook-protection-prices.toml    price of every protection, dismantle order

Changes apply live. NeoForge watches both files, so edits take effect without a restart. The exceptions: claimBackend and currencyBackend need a restart. Admins can also read and change single values in game with /lc_ftb_hook config list|get|set (Commands).

Prices are in tenths of a copper

Every price value (claim prices, force-load upkeep, protection prices) is written in tenths of a copper: 10 means 1 copper, 8 means 0.8 copper. "Copper" is the smallest coin of the active currency mod:

Coins (in copper)
Lightman's Currency copper 1, iron 10, gold 100, emerald 1,000, diamond 10,000, netherite 100,000
Create: Numismatics spur 1, bevel 8, sprocket 16, cog 64, crown 512, sun 4,096

The same value therefore buys more in Lightman's coins than in Numismatics coins: 100000 (10,000 copper) is one Lightman's diamond coin, but 2 suns, 3 crowns, 4 cogs and 1 sprocket. Bills are always rounded down to the nearest whole copper. The comments in the generated files spell every default out in both currencies.

lc_ftb_hook-server.toml

[general]

Key Default Description
claimPricingMode EXPONENTIAL How the price of a team's next claim scales with how many chunks it already has (free chunks excluded): CONSTANT, LINEAR or EXPONENTIAL. See Features.
claimPrice 100000 CONSTANT only: price of every claim (10,000 copper).
claimBasePrice 100000 LINEAR/EXPONENTIAL: price of a claim in the first price tier (10,000 copper).
claimIncrementSize 20 LINEAR/EXPONENTIAL: how many chunks make up one price tier.
claimIncrementPrice 10000 LINEAR only: price increase per tier (1,000 copper).
claimPriceGrowthPercent 0.05 EXPONENTIAL only: price increase per tier, compounding (0.05 = +5%).
freeChunks 0 The first N chunks of each team are free to claim and exempt from protection upkeep.
unclaimRefundRatio 0.8 Share of the claim price refunded on unclaim (0 to 1).
forceLoadUpkeepPrice 1000000 Upkeep per force-loaded chunk per period (100,000 copper). Force-loading itself is free.
upkeepPeriodMinutes 5 How often upkeep is charged, in real-time minutes (1 to 10080).
lockClaimVisibilityPublic true FTB Chunks: locks each team's claim visibility to Public so claims can't be hidden from wars or the marketplace. false lets teams choose again.
forceLoadUpkeepMode DEFAULT When force-load upkeep is charged: ALWAYS every period; DEFAULT only while one of the team's members is online.
protectionUpkeepMode DEFAULT When protection upkeep is charged (and can be dismantled for non-payment): HEAVY even with nobody online; DEFAULT while anyone is online; LIGHT only while one of the team's members is online.

[backends]

Key Default Description
claimBackend AUTO AUTO, FTB or OPAC. AUTO prefers FTB if both are installed. Needs a restart.
currencyBackend AUTO AUTO, LIGHTMANS_CURRENCY or NUMISMATICS. AUTO prefers Lightman's Currency if both are installed. Needs a restart.

An unknown or not installed value falls back to AUTO with a warning in the log.

[war]

Key Default Description
warEnabled true Enables the war system. When off, war costs are ignored, war actions are blocked and the war button is hidden.
warOutgoingCostMultiplier 2.0 Declaring war costs x × the target's base upkeep per period, per war.
warCostMultiplier 1.2 Incoming wars: with base upkeep b and k incoming wars, the surcharge is b × Σ(l^n) for n = 0..k-1.

Protection prices

lc_ftb_hook-protection-prices.toml has one section per installed claim mod: [ftb] for FTB Chunks and [opac] for Open Parties and Claims. Only the section of the claim mod in use applies.

Each section lists every protection of that claim mod with its price, in tenths of a copper per chunk that has the protection active, per upkeep period. A region's bill for one protection is floor(price × chunks with it active / 10) copper, so small prices still add up over many chunks. Each entry's comment describes the protection and gives its default in both currencies.

FTB Chunks defaults:

Key Default (tenths of a copper per chunk)
entity_interact_mode 1000
nonliving_entity_attack_mode 1000
block_edit_mode 1000
block_interact_mode 1000
allow_mob_griefing 800
allow_explosions 700
allow_pvp 500
allow_fake_players 500
allow_fake_players_by_id 300

The OPAC section lists OPAC's 49 protections the same way (keys start with opac_, e.g. opac_blocks_from_players).

dismantleOrder

Each section also has a dismantleOrder list: which protections are switched off first when a team can't pay its upkeep.

  1. Regions are handled in the team's region-list order: the top region loses its protections first.
  2. Inside a region, protections are switched off in the order of this list: the first entry is dropped first, the last one is kept longest.
  3. Once the team can pay again, protections come back in exactly the reverse order.

Entries are the protection keys of the same section. Protections missing from the list are dropped after the listed ones; unknown entries are ignored. The default drops the advanced protections first, then the main ones, and keeps PvP protection longest.

Clone this wiki locally