Extractioncraft 設定
Extractioncraft 使用多個設定檔。主要設定位於 config.yml 和 messaging.yml。內容包、戰利品表和戰利品池各有自己的設定資料夾。
config.yml
| 鍵 | 類型 | 預設值 | 說明 |
|---|---|---|---|
deleteItemsOnFailToExtract | Boolean | true | 玩家未能透過撤離點從比賽中撤離時是否失去所有物品。啟用時,預製內容會圍繞此風險進行平衡。停用會使內容更容易刷取,降低參與撤離機制的動力。 |
messaging.yml
所有訊息支援 & 顏色代碼以及在標註處的 $player / $count 佔位符。
| 鍵 | 預設值 | 說明 |
|---|---|---|
failedToJoinOngoingMatchAsPlayerMessage | Can't join this match - it has already started! | 玩家嘗試加入進行中的比賽時顯示 |
failedToJoinOngoingMatchAsPlayerInstanceIsFull | Can't join this match - the instance is already full! | 比賽已達最大玩家數量時顯示 |
failedToJoinOngoingMatchAsPlayerNoPermission | Can't join this match - you don't have the permission! | 玩家缺少加入權限時顯示 |
failedToJoinMatchAsSpectatorNoSpectatorsAllowedMessage | Can't join this match - spectators are not allowed! | 內容包停用旁觀時顯示 |
failedToJoinMatchAsSpectatorNoPermission | Can't spectate this match - you don't have the permission! | 玩家缺少旁觀權限時顯示 |
matchJoinAsPlayerMessage | [Extractioncraft] You are now in the match, $player! | 以玩家身份加入比賽時的聊天訊息。$player 會被替換為玩家名稱。 |
matchJoinAsPlayerTitle | Extract! | 加入比賽時顯示的標題 |
matchJoinAsPlayerSubtitle | Grab the loot and head to an extraction point! | 加入比賽時顯示的副標題 |
matchJoinAsSpectatorTitle | (空白) | 以旁觀者身份加入時顯示的標題 |
matchJoinAsSpectatorSubtitle | Now spectating! | 以旁觀者身份加入時顯示的副標題 |
matchJoinAsSpectatorMessage | [Extractioncraft] You are now spectating a match! Do /extractioncraft quit to stop spectating! | 以旁觀者身份加入時的聊天訊息 |
matchLeaveAsPlayerMessage | [Extractioncraft] You have left the match, $player! | 玩家離開比賽時顯示。$player 會被替換為玩家名稱。 |
matchLeaveAsSpectatorMessage | [Extractioncraft] You have left the match, $player! | 旁觀者離開比賽時顯示 |
matchFailedToStartNotEnoughPlayersMessage | This match requires $count players before starting - can't start yet! | 玩家數量不足時使用 /exc start 時顯示。$count 會被替換為最低玩家數量。 |
matchStartingMessage | [Extractioncraft] Match starting! | 比賽倒數開始時的聊天訊息 |
matchStartingTitle | Match starting! | 倒數期間顯示的標題 |
matchStartingSubtitle | in $count... | 倒數期間的副標題。$count 為剩餘秒數。 |
preventTeleportInMessage | [Extractioncraft] You have attempted to teleport into an ongoing match - you can't do that! | 有人嘗試傳送進入比賽世界時顯示 |
preventTeleportOutMessage | [Extractioncraft] You have attempted to teleport from an ongoing match - you can't do that! | 比賽玩家嘗試傳送離開時顯示 |
內容包設定
內容包是 content_packages/ 資料夾中的 YAML 檔案。每個檔案定義一個可遊玩的地圖設定。
| 鍵 | 類型 | 預設值 | 說明 |
|---|---|---|---|
isEnabled | Boolean | true | 此內容包是否啟用 |
name | String | (必填) | 套件的顯示名稱(支援 & 顏色代碼) |
description | String list | (必填) | 在設定選單中顯示的說明行 |
downloadLink | String | (可選) | 可下載內容的 URL |
version | Integer | 0 | 內容版本號,用於更新檢查 |
folderName | String | (必填) | 此套件的建築圖子資料夾名稱 |
usesEliteMobs | Boolean | false | 此套件是否需要 EliteMobs |
usesBetterStructures | Boolean | false | 此套件是否需要 BetterStructures |
usesFreeMinecraftModules | Boolean | false | 此套件是否需要 FreeMinecraftModels |
betterStructuresModulesContainerName | String | (可選) | BetterStructures 模組生成器設定檔案名稱 |
spectatable | Boolean | false | 旁觀者是否可以加入使用此套件的比賽 |
pvpEnabled | Boolean | true | 比賽期間是否啟用 PvP |
minPlayers | Integer | 1 | 開始比賽所需的最低玩家數量 |
maxPlayers | Integer | 100 | 比賽允許的最大玩家數量 |
chestLootTables | String list | [] | 用於箱子的戰利品表,格式為 filename.yml:weight |
barrelLootTables | String list | [] | 用於木桶的戰利品表,格式為 filename.yml:weight |
戰利品表權重格式
箱子和木桶的戰利品表項目使用 <loot_table_filename.yml>:<weight> 格式。當玩家開啟容器時,會根據加權機率選擇一個戰利品表。
範例:
chestLootTables:
- kobold_mines_chest_high_loot_table_10.yml:.2
- kobold_mines_chest_low_loot_table_10.yml:.2
barrelLootTables:
- kobold_mines_barrel_loot_table_10.yml:1