Repository navigation
Features
Everything below works the same with FTB Chunks or Open Parties and Claims as the claim mod, and Lightman's Currency or Create: Numismatics as the currency mod. Where a backend behaves differently, it's noted. See Installation for how the backends are chosen.
Money units. Prices are counted in the smallest coin of the currency mod, called "copper" here: a Lightman's copper coin (iron = 10, gold = 100, emerald = 1,000, diamond = 10,000, netherite = 100,000) or a Numismatics spur (bevel = 8, sprocket = 16, cog = 64, crown = 512, sun = 4,096). The same price therefore buys more in Lightman's coins than in Numismatics coins. With Numismatics, amounts are paid out in the fewest coins and the price entry screens carry over into the next coin automatically. Numismatics coins are shown as icons wherever money is displayed.
A solo player pays from their own account. Every party gets its own team account in the currency mod:
- Lightman's Currency: a Lightman's team mirrors the party. The party owner is its owner, officers are its admins, members are its members. It stays in sync when ranks change.
-
Numismatics: a team account whose trusted players are the party's officers and owner. Use
/lc_ftb_hook team_bankto deposit, withdraw, check the balance or bind a bank card to it (Commands).
Only a party's officers and owner may claim, unclaim, or otherwise spend the party's money.
Party changes:
- Disbanding a party: its remaining balance goes to the owner's personal account.
-
OPAC specifics:
- When a party is founded or a player joins one, that player's own claims are released and refunded to their personal account.
- Claims of a member who leaves stay with the party.
- Disbanding releases all of the party's claims and refunds them to the owner.
Claiming charges the account of the team the chunk is claimed for. The price can scale up as a team claims more:
-
CONSTANT: every claim costs the sameclaimPrice. -
LINEAR: the price grows by a fixed amount everyclaimIncrementSizeclaims. -
EXPONENTIAL(default): the price grows by a fixed percentage (claimPriceGrowthPercent) everyclaimIncrementSizeclaims, compounding.
An unaffordable claim is refused before it happens; nothing is ever charged for a claim that then fails. Area claims (FTB's multi-select, OPAC's area claims, Xaero's map selection) are checked as a whole and reported in one message. Unclaiming refunds a share of the price (unclaimRefundRatio). The first N chunks of each team (freeChunks) are free to claim and exempt from protection upkeep.
Admins claiming for another team (e.g. FTB's /ftbchunks admin claim_as): that team pays and gets the refunds, not the admin's own team. Claims made without a player (server console, command blocks) are never charged.
FTB Teams supports server teams: admin-run teams without players, for example for the spawn, a market hall or an arena. Create them with /ftbteams server create <name>; you can have as many as you like. For server teams:
- Claiming, unclaiming and force-loading cost nothing and pay no refunds.
- There is no upkeep and they can't be part of wars.
- Their protection comes from FTB's own team settings, not from Regions. Set them with
/ftbteams server settings_for <team> <setting> <value>, separately for each server team.
Claim for a server team with /ftbchunks admin claim_as <team> or /ftbchunks admin open_claim_gui_as <team>.
Every team's territory is subdivided into Regions: named, independently configured areas. Every team always has exactly one Default region that can't be renamed or deleted and holds every chunk not assigned elsewhere.
- Create, rename, delete and reorder regions in the region list (N menu, or the Regions button on the FTB Teams team screen). Reorder by dragging the handle on the left.
- Each region has its own protection settings and therefore its own upkeep price.
- Dismantle order (which protections are switched off first when upkeep can't be paid) is applied region by region, from the top of the list down. Put your least important region at the top.
- Assign chunks from the N menu ("This chunk"), the FTB Chunks map (Shift+right-click), or Xaero's World Map right-click menu ("Assign to Region", or "New Region from Selection…" to create and assign in one step). Reassigning a chunk is queued to the next upkeep period, like any other change that affects the bill.
- FTB Chunks' map and Xaero's World Map draw a border between two regions of the same team, so region boundaries are visible at a glance.
Each region offers every protection of the active claim mod, each with its own per-chunk upkeep price from config/lc_ftb_hook-protection-prices.toml (Configuration). Hover a protection in the region settings to see what it does and what it costs.
FTB Chunks (9 protections):
| Protection | Kind |
|---|---|
| Entity interact mode (villagers, animals, …) | Access level |
| Non-living entity attack mode (item frames, armor stands, …) | Access level |
| Block edit mode (place/break) | Access level |
| Block interact mode (doors, chests, levers, …) | Access level |
| Allow mob griefing | On/off |
| Allow explosions | On/off |
| Allow PvP | On/off |
| Allow fake players (machines like deployers) | On/off |
| Allow fake players by player id | On/off |
Open Parties and Claims (49 protections): OPAC's full set, applied through OPAC's own sub-configs. They cover:
- Players: breaking, placing and using blocks; using items; interacting with or hurting entities; PvP.
- Mobs and other sources: mob griefing, explosions, fire spread, and blocks or entities affected by fake players, machines, enchantments and projectiles.
- Triggers: pressure plates, tripwires and buttons.
- Items and loot: item pickup and tossing, mob loot, player death loot, XP pickup.
- Movement: nether portals and chorus fruit teleport.
- Barriers: fluid, dispenser and piston barriers.
- Spawning: raids, natural spawning, spawners and crop trampling.
Players can't change these in OPAC's own menus; the mod keeps them in sync with the regions.
Access levels. Protections that control who may do something have four levels:
- Public: everyone (the free default).
- Allies: the team plus allied teams.
- Team: the team only, any rank.
- Private: on a privately owned chunk, its owner plus their whitelist; otherwise the team's officers and owner only.
Allies, Team and Private cost the same, so switching between them always applies right away. Any other change that would make the next upkeep unaffordable is queued ("pending") and applies at the next settlement the team can pay.
Protection is billed every upkeepPeriodMinutes:
cost = sum over every region of (that region's active protection prices x its billable chunk count)
If the account can't pay, protections are switched off one at a time, region by region from the top of the region list, each region in the configured dismantleOrder. Once the team can pay again, they come back in reverse order.
A freshly claimed chunk has no protection until the team's next successful settlement, whatever its region says. This prevents claiming, relying on protection you haven't paid for, and unclaiming before the bill is due.
upkeepPeriodMinutes, protectionUpkeepMode and forceLoadUpkeepMode control when upkeep is charged, e.g. only while a team member is online. /lc_ftb_hook upkeep_details and /lc_ftb_hook upkeep_priority show the next due time, the last bill and the current dismantle order.
Force-loading a chunk is free, but each force-loaded chunk adds forceLoadUpkeepPrice to every upkeep period. A force-load (or removal) is queued and takes effect at the next upkeep period; the region tooltips show the chunk count including queued ones, the price per chunk and the total. With OPAC, Xaero's map shows a queued force-load as accepted.
A chunk always stays part of its team's territory: upkeep, region membership and dismantle order are never affected by the marketplace. What it controls is who can loosen one chunk's protection and who profits from selling it.
Officers and the owner can list any state-owned chunk at a chosen price. Eligible players can buy it, and officers/the owner can "Buy as Country" on behalf of the team. Who may buy is set per region (buyerAccess: Anyone / Allies Only / Team Only) in the region settings.
A bought chunk becomes privately owned. It stays part of the team's territory, but its owner can:
- Loosen (never tighten) that chunk's protection relative to its region.
- Give it a custom label, shown in the info panel in the region's color (e.g. "Village - Shop").
- Keep a whitelist or blacklist of players. It applies wherever the chunk or its region would otherwise protect.
- Resell it. Officers/the owner can also expropriate it back to the team, with configurable compensation for the owner.
The team's officers and owner always keep access to privately owned chunks in their own land, even if blacklisted. A region can disable private reselling (allowPrivateSelling) without affecting "Sell as Country" listings.
A freshly claimed chunk can't be listed until the team's next successful settlement, which stops instant flipping. A freshly bought chunk can be resold immediately.
Sale prices can't be set in Emerald-based currency, neither the Emerald Coin of the "Coins" chain nor the separate "Emeralds" chain.
Teams with claims can declare war on each other from the Wars screen (N menu or FTB team screen). War raises the target's upkeep:
-
Incoming wars scale exponentially: for base upkeep
bandkincoming wars, the surcharge isb x sum(l^n)forn = 0..k-1, whereliswarCostMultiplier(default1.2). -
Outgoing wars cost a flat
x times the target's base upkeepper war, wherexiswarOutgoingCostMultiplier(default2.0).
Declarations and endings are queued to the next upkeep period. A team that can't afford its full upkeep has its outgoing wars frozen until it can. warEnabled = false turns the whole system off.
Press N (rebindable under Controls → LC FTB Hook) for the mod's own menu. It works with both claim mods and needs no other mod's screens:
- Regions (officers/owner) and Wars (when enabled).
- This chunk: owner, region, protection state, and the actions you're allowed to take here: assign to a region, create a region from a selection, manage the region, sell as country, buy, private chunk settings.
Esc or the back arrow returns to the previous screen, or to the FTB or Xaero map if you came from there.
(Optional, see Installation. Works with FTB Chunks and OPAC claims.)
- A money panel on the World Map: claim price, personal balance, team balance, country balance (officers/owner) and force-load upkeep.
- A hover panel on any claimed chunk: owner (with skin head for private owners), region name and label, sale price if listed, and the current protection state. The panel width adapts to its content.
- A right-click menu next to Xaero's own claim options: Sell, Sell as Country, Buy, Buy as Country, Assign to Region.
- Hatching for chunks that are for sale, privately owned or force-loaded.
Every part fails gracefully: an incompatible Xaero update logs a warning once and disables only that piece, and players without Xaero's World Map are unaffected.
- At every server start the mod copies its own world data to
world/data/lc_ftb_hook_backups/(the newest 10 copies are kept). - When loading, it checks its own data and repairs inconsistencies it can repair unambiguously, logging each repair. An unreadable entry is kept untouched instead of being dropped.
- It never deletes a Lightman's Currency team that still holds money. If many teams seem to vanish at once (the claim mod didn't load its data), it deletes nothing and logs an error.
- Every hook into another mod is guarded: an error inside this mod is logged and falls back to a safe default instead of breaking the other mod. A claim or protection check that fails refuses the action ("could not be checked right now - nothing was changed").