本篇教程由作者设定未经允许禁止转载。

配置文件在与mods文件夹相同目录的config文件夹中,文件名为“travelersbackpack.json5”,可以用包括记事本在内的任意文本编辑器打开并编辑,以下为1.19.4版本的配置文件及翻译


为防止格式出错,我还上传了一份到蓝奏云,由于蓝奏云上传限制,我将后缀的json5改为了txt,如需下载使用请修改后缀

wwt.lanzoue.com/iizHq1qirsde


{
"backpackSettings": {
"enableTierUpgrades": true,
//是否开启逐级升级
"disableCrafting": false,
//是否开启工作台
// Enables wearing backpack directly from ground
// 是否从地面直接穿戴背包
"enableBackpackBlockQuickEquip": true,
// Enables unequipping the backpack when player clicks with empty hand on the ground
// 是否允许空手右键点击地面脱下背包
"enableBackpackRightClickUnequip": false,
// Backpack immune to any damage source (lava, fire), can't be destroyed, never disappears as floating item
// 放置的背包对任何伤害来源免疫(岩浆、火焰),无法被摧毁,永远不会成为掉落物(存疑,翻译不一定正确,未验证。另外背包的掉落物有相同的属性)
"invulnerableBackpack": true,
// List of items that can be put in tool slots (Use registry names, for example: minecraft:apple, minecraft:flint)
// 可放置在工具槽的物品列表(使用注册名称,例如:minecraft:apple,minecraft:flint)
"toolSlotsAcceptableItems": [],
// List of items that can't be put in backpack inventory (Use registry names, for example: minecraft:apple, minecraft:flint)
// 不能放入背包的物品列表(使用注册名称,例如:minecraft:apple,minecraft:flint)
"blacklistedItems": [],
"allowShulkerBoxes": true,
// 是否允许放入潜影盒
"tanksCapacity": [
162000,
243000,
324000,
405000,
486000
],
//每等级背包的液体储存罐容量
// Prevents backpack disappearing in void
// 是否允许背包在虚空中消失(存疑未验证,翻译不一定正确)
"voidProtection": false,
// Places backpack at place where player died
// 是否允许在死亡位置放置背包
"backpackDeathPlace": true,
// Places backpack at place where player died, replacing all blocks that are breakable and do not have inventory (backpackDeathPlace must be true in order to work)
// 是否允许在死亡位置放置背包替换所有可破坏且没有库存的方块(必须启用backpackDeathPlace才能生效)
"backpackForceDeathPlace": false,
"enableSleepingBagSpawnPoint": false,
// 是否启用睡袋重生点
// 如果为true,则只能将背包放置在饰品栏的“背部”槽中
"trinketsIntegration": false
//未知,未验证
},
"world": {
// Enables backpacks spawning in loot chests
// 是否允许背包在战利品箱(即宝箱)中生成
"enableLoot": true,
// Enables chance to spawn Zombie, Skeleton, Wither Skeleton, Piglin or Enderman with random backpack equipped
// 是否允许生成装备随机背包的僵尸、骷髅、凋灵骷髅、猪灵或末影人
"spawnEntitiesWithBackpack": true,
// List of overworld entity types that can spawn with equipped backpack. DO NOT ADD anything to this list, because the game will crash, remove entries if mob should not spawn with backpack
// 可以生成装备背包的主世界实体类型列表。不要向此列表添加任何内容,否则游戏会崩溃,如果不希望某个生物带着背包生成,请移除相应条目
"possibleOverworldEntityTypes": [
"minecraft:zombie",
"minecraft:skeleton",
"minecraft:enderman"
],
// List of nether entity types that can spawn with equipped backpack. DO NOT ADD anything to this list, because the game will crash, remove entries if mob should not spawn with backpack
// 可以生成装备背包的下界实体类型列表。不要向此列表添加任何内容,否则游戏会崩溃,如果不希望某个生物带着背包生成,请移除相应条目
"possibleNetherEntityTypes": [
"minecraft:wither_skeleton",
"minecraft:piglin"
],
// Defines spawn chance of entity with backpack (1 in [selected value])
// 生成带背包实体的几率(每选定的值中的1次)
"spawnChance": 500,
// List of backpacks that can spawn on overworld mobs
// 可以在主世界生物身上生成的背包种类列表
"overworldBackpacks": [
"travelersbackpack:standard",
"travelersbackpack:diamond",
"travelersbackpack:gold",
"travelersbackpack:emerald",
"travelersbackpack:iron",
"travelersbackpack:lapis",
"travelersbackpack:redstone",
"travelersbackpack:coal",
"travelersbackpack:bookshelf",
"travelersbackpack:sandstone",
"travelersbackpack:snow",
"travelersbackpack:sponge",
"travelersbackpack:cake",
"travelersbackpack:cactus",
"travelersbackpack:hay",
"travelersbackpack:melon",
"travelersbackpack:pumpkin",
"travelersbackpack:creeper",
"travelersbackpack:enderman",
"travelersbackpack:skeleton",
"travelersbackpack:spider",
"travelersbackpack:bee",
"travelersbackpack:wolf",
"travelersbackpack:fox",
"travelersbackpack:ocelot",
"travelersbackpack:horse",
"travelersbackpack:cow",
"travelersbackpack:pig",
"travelersbackpack:sheep",
"travelersbackpack:chicken",
"travelersbackpack:squid"
],
// List of backpacks that can spawn on nether mobs
// 可以在下界生物身上生成的背包种类列表
"netherBackpacks": [
"travelersbackpack:quartz",
"travelersbackpack:nether",
"travelersbackpack:blaze",
"travelersbackpack:ghast",
"travelersbackpack:magma_cube",
"travelersbackpack:wither"
],
// Enables trade for Villager Backpack in Librarian villager trades
// 是否在图书管理员村民的交易列表中添加背包
"enableVillagerTrade": true
},
"backpackAbilities": {
"enableBackpackAbilities": true,
//是否启用背包能力
"forceAbilityEnabled": false,
//是否强制启用背包能力(未验证,翻译不一定正确)
// List of backpacks that are allowed to have an ability. DO NOT ADD anything to this list, because the game will crash, remove entries if backpack should not have ability
// 允许具备能力的背包列表。不要向此列表添加任何内容,否则游戏会崩溃,如果背包不应具备能力,请移除相应条目
"allowedAbilities": [
"travelersbackpack:netherite",
"travelersbackpack:diamond",
"travelersbackpack:gold",
"travelersbackpack:emerald",
"travelersbackpack:iron",
"travelersbackpack:lapis",
"travelersbackpack:redstone",
"travelersbackpack:bookshelf",
"travelersbackpack:sponge",
"travelersbackpack:cake",
"travelersbackpack:cactus",
"travelersbackpack:melon",
"travelersbackpack:pumpkin",
"travelersbackpack:creeper",
"travelersbackpack:dragon",
"travelersbackpack:enderman",
"travelersbackpack:blaze",
"travelersbackpack:ghast",
"travelersbackpack:magma_cube",
"travelersbackpack:spider",
"travelersbackpack:wither",
"travelersbackpack:bat",
"travelersbackpack:bee",
"travelersbackpack:ocelot",
"travelersbackpack:cow",
"travelersbackpack:chicken",
"travelersbackpack:squid"
]
},
"slownessDebuff": {
// Player gets slowness effect, if carries too many backpacks in inventory
//携带过多背包玩家将获得缓慢效果
"tooManyBackpacksSlowness": true,
// Maximum number of backpacks, which can be carried in inventory, without slowness effect
//限制携带的最大背包数,超过设定数字将获得减速,最大携带数默认为3
"maxNumberOfBackpacks": 5,
"slownessPerExcessedBackpack": 1
//每超出一个背包增加n级减速
},
"client": {
// Enables tool cycling via keybind (Default Z) + scroll combination, while backpack is worn
//装备背包时可通过绑定的按键(在游戏设置中修改,默认Z键)+滚动轮循环背包中的工具格
"enableToolCycling": true,
// Allows tool cycling using keybinding only (Default Z)
//只允许使用绑定的按键切换工具(未验证,翻译不一定正确)
"disableScrollWheel": false,
// Enables tip, how to obtain a backpack, if there's no crafting recipe for it
//允许在没有背包配方的情况下显示配方提示
"obtainTips": true,
// Render tools in tool slots on the backpack, while worn
//装备背包时在界面上显示背包装备格中的工具
"renderTools": true,
// Render backpack if elytra is present
//是否在装备鞘翅时渲染背包
"renderBackpackWithElytra": true,
// Disable backpack rendering
//禁用背包渲染
"disableBackpackRender": false,
"overlay": {
// Enables tanks and tool slots overlay, while backpack is worn
//界面上显示液体罐与装备的覆盖层
"enableOverlay": true,
// Offsets to left side
//向左偏移数(默认是20还是30)
"offsetX": 610,
// Offsets to up
//向上偏移的数
"offsetY": 30
}
}
}

注:配置文件使用XML代码块,因为确实找不到合适的,XML是最接近的,如果直接复制没法使用请下载连接中的源文件或者自己对照在自己的文件中修改,另外,除了修改配置选项的操作外,其余任何对源文件的修改都将在游戏重载后清空,例如汉化注释等