跳至主要内容

Extractioncraft 設定

Extractioncraft 使用多個設定檔。主要設定位於 config.ymlmessaging.yml。內容包、戰利品表和戰利品池各有自己的設定資料夾。

config.yml

類型預設值說明
deleteItemsOnFailToExtractBooleantrue玩家未能透過撤離點從比賽中撤離時是否失去所有物品。啟用時,預製內容會圍繞此風險進行平衡。停用會使內容更容易刷取,降低參與撤離機制的動力。

messaging.yml

所有訊息支援 & 顏色代碼以及在標註處的 $player / $count 佔位符。

預設值說明
failedToJoinOngoingMatchAsPlayerMessageCan't join this match - it has already started!玩家嘗試加入進行中的比賽時顯示
failedToJoinOngoingMatchAsPlayerInstanceIsFullCan't join this match - the instance is already full!比賽已達最大玩家數量時顯示
failedToJoinOngoingMatchAsPlayerNoPermissionCan't join this match - you don't have the permission!玩家缺少加入權限時顯示
failedToJoinMatchAsSpectatorNoSpectatorsAllowedMessageCan't join this match - spectators are not allowed!內容包停用旁觀時顯示
failedToJoinMatchAsSpectatorNoPermissionCan't spectate this match - you don't have the permission!玩家缺少旁觀權限時顯示
matchJoinAsPlayerMessage[Extractioncraft] You are now in the match, $player!以玩家身份加入比賽時的聊天訊息。$player 會被替換為玩家名稱。
matchJoinAsPlayerTitleExtract!加入比賽時顯示的標題
matchJoinAsPlayerSubtitleGrab the loot and head to an extraction point!加入比賽時顯示的副標題
matchJoinAsSpectatorTitle(空白)以旁觀者身份加入時顯示的標題
matchJoinAsSpectatorSubtitleNow 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!旁觀者離開比賽時顯示
matchFailedToStartNotEnoughPlayersMessageThis match requires $count players before starting - can't start yet!玩家數量不足時使用 /exc start 時顯示。$count 會被替換為最低玩家數量。
matchStartingMessage[Extractioncraft] Match starting!比賽倒數開始時的聊天訊息
matchStartingTitleMatch starting!倒數期間顯示的標題
matchStartingSubtitlein $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 檔案。每個檔案定義一個可遊玩的地圖設定。

類型預設值說明
isEnabledBooleantrue此內容包是否啟用
nameString(必填)套件的顯示名稱(支援 & 顏色代碼)
descriptionString list(必填)在設定選單中顯示的說明行
downloadLinkString(可選)可下載內容的 URL
versionInteger0內容版本號,用於更新檢查
folderNameString(必填)此套件的建築圖子資料夾名稱
usesEliteMobsBooleanfalse此套件是否需要 EliteMobs
usesBetterStructuresBooleanfalse此套件是否需要 BetterStructures
usesFreeMinecraftModulesBooleanfalse此套件是否需要 FreeMinecraftModels
betterStructuresModulesContainerNameString(可選)BetterStructures 模組生成器設定檔案名稱
spectatableBooleanfalse旁觀者是否可以加入使用此套件的比賽
pvpEnabledBooleantrue比賽期間是否啟用 PvP
minPlayersInteger1開始比賽所需的最低玩家數量
maxPlayersInteger100比賽允許的最大玩家數量
chestLootTablesString list[]用於箱子的戰利品表,格式為 filename.yml:weight
barrelLootTablesString 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