跳到主要内容

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(可选)内容的下载地址
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