File Details
Carpet Player Addition 1.1.1.jar
- R
- May 23, 2026
- 59.59 KB
- 5
- 1.21.6
- Fabric
File Name
carpet-player-addition-1.1.1.jar
Supported Versions
- 1.21.6
Curse Maven Snippet
CarpetPlayerAddition v1.1.1
Version Update - English
CarpetPlayerAddition v1.1.1 expands the wireless-terminal-like feature line with automatic restocking and a refined middle-click pickup rule set.
The new /player <fakeName> restock <true|false> command binds the executing player to a Carpet fake player and toggles automatic restocking. Restock is disabled by default in every game mode and only changes when the player explicitly runs the command. When enabled, right-click use from the selected hotbar slot or offhand schedules a server-side check after the vanilla use action. The mod first organizes matching items already carried by the player. If another hotbar slot already contains the target item but the selected main-hand hotbar slot does not, those two hotbar slots are swapped first. If no hotbar slot contains it but the offhand already does, matching inventory stacks are consolidated into the offhand. Otherwise the mod uses an empty hotbar slot first, and only uses the offhand when no hotbar slot can be used. If the organized stack is still below half a stack, items are pulled from the bound fake player's managed inventory and ender chest until it reaches half a stack. Dropping items does not trigger this feature.
If the fake player does not have enough matching items, the player still receives an actionbar message explaining that only a partial refill was possible or that no stock was available. This keeps the behavior visible without silently failing.
Middle-click pickup is also refined. It no longer searches armor slots. When another hotbar slot already contains the target item and the selected main-hand hotbar slot does not, pickup swaps those two hotbar slots first. If no hotbar slot contains the target item but the offhand does, inventory stacks are consolidated into the offhand. If neither hotbar nor offhand already contains the target item, an empty hotbar slot is preferred and the offhand is used only as fallback. If the consolidated local amount is still below half a stack, the missing amount is pulled from the fake player.
版本更新内容 - 中文
CarpetPlayerAddition v1.1.1 继续扩展仿无线终端功能,新增右键自动补货,并细化中键取物与自动补货的本地物品规整规则。
新增 /player <fakeName> restock <true|false> 指令,用于把执行指令的玩家绑定到指定 Carpet 假人,并开关右键自动补货。自动补货在所有游戏模式下默认关闭,不会像 pick 一样随创造/生存自动切换,必须由玩家手动开启或关闭。开启后,玩家右键使用当前快捷栏或副手物品时,模组会在原版使用动作完成后的服务器下一 tick 检查目标物品;它会先规整玩家身上已有的同类物品。如果其它快捷栏已有目标物品、但当前主手快捷栏没有目标物品,会先把这两个快捷栏互换;如果快捷栏没有目标物品但副手已有目标物品,就把背包中的同类物品规整到副手;否则优先使用空快捷栏,快捷栏不可用时才使用副手。规整后的数量仍不足半组时,再从绑定假人的可管理物品栏和末影箱中补到半组。按 Q 丢弃物品不会触发补货。
如果假人物品不足,玩家会收到字幕提示,说明只能部分补货或没有库存,不会静默失败。
中键取物逻辑也同步修改:不再搜索盔甲栏。如果其它快捷栏已有目标物品、但当前主手快捷栏没有目标物品,会先把这两个快捷栏互换;如果快捷栏没有目标物品但副手已有目标物品,则把背包中的同类物品规整到副手;如果快捷栏和副手都没有目标物品,则优先使用空快捷栏,快捷栏不可用才使用副手。规整后如果总数仍不足半组,才从假人补齐缺口。
指令总表 / Command Table
| 指令 / Command | 注释 / Note |
|---|---|
/player <fakeName> hotbar <1-9> inventory <1-27> |
交换假人快捷栏与背包储物格。 / Swaps a fake-player hotbar slot with an inventory storage slot. |
/player <fakeName> hotbar <1-9> enderchest <1-27> |
交换假人快捷栏与末影箱格子。 / Swaps a fake-player hotbar slot with an ender chest slot. |
/player <fakeName> offhand inventory <1-27> |
交换假人副手与背包储物格。 / Swaps the fake player's offhand with an inventory storage slot. |
/player <fakeName> offhand enderchest <1-27> |
交换假人副手与末影箱格子。 / Swaps the fake player's offhand with an ender chest slot. |
/player <fakeName> head inventory <1-27> |
交换假人头部装备槽与背包储物格。 / Swaps the fake player's head equipment slot with an inventory storage slot. |
/player <fakeName> head enderchest <1-27> |
交换假人头部装备槽与末影箱格子。 / Swaps the fake player's head equipment slot with an ender chest slot. |
/player <fakeName> chest inventory <1-27> |
交换假人胸甲槽与背包储物格。 / Swaps the fake player's chest equipment slot with an inventory storage slot. |
/player <fakeName> chest enderchest <1-27> |
交换假人胸甲槽与末影箱格子。 / Swaps the fake player's chest equipment slot with an ender chest slot. |
/player <fakeName> legs inventory <1-27> |
交换假人护腿槽与背包储物格。 / Swaps the fake player's legs equipment slot with an inventory storage slot. |
/player <fakeName> legs enderchest <1-27> |
交换假人护腿槽与末影箱格子。 / Swaps the fake player's legs equipment slot with an ender chest slot. |
/player <fakeName> feet inventory <1-27> |
交换假人靴子槽与背包储物格。 / Swaps the fake player's feet equipment slot with an inventory storage slot. |
/player <fakeName> feet enderchest <1-27> |
交换假人靴子槽与末影箱格子。 / Swaps the fake player's feet equipment slot with an ender chest slot. |
/player <fakeName> ite <1-27> <1-27> |
交换假人背包储物格与末影箱格子。 / Swaps a fake-player inventory storage slot with an ender chest slot. |
/player <fakeName> drop hotbar <1-9> [num] |
从假人指定快捷栏槽位丢出物品。 / Drops items from one fake-player hotbar slot. |
/player <fakeName> drop hotbar all |
丢出假人快捷栏 9 格中的全部物品。 / Drops all items from the fake player's 9 hotbar slots. |
/player <fakeName> drop offhand [num] |
从假人副手丢出物品。 / Drops items from the fake player's offhand. |
/player <fakeName> drop head [num] |
从假人头部装备槽丢出物品。 / Drops items from the fake player's head equipment slot. |
/player <fakeName> drop chest [num] |
从假人胸甲槽丢出物品。 / Drops items from the fake player's chest equipment slot. |
/player <fakeName> drop legs [num] |
从假人护腿槽丢出物品。 / Drops items from the fake player's legs equipment slot. |
/player <fakeName> drop feet [num] |
从假人靴子槽丢出物品。 / Drops items from the fake player's feet equipment slot. |
/player <fakeName> drop inventory <1-27> [num] |
从假人背包储物格丢出物品。 / Drops items from one fake-player inventory storage slot. |
/player <fakeName> drop enderchest <1-27> [num] |
从假人末影箱格子丢出物品。 / Drops items from one fake-player ender chest slot. |
/player <fakeName> drop inventory all |
丢出假人物品栏范围,不含末影箱。 / Drops the fake player's inventory range, excluding the ender chest. |
/player <fakeName> drop enderchest all |
丢出假人末影箱全部物品。 / Drops all items from the fake player's ender chest. |
/player <fakeName> drop all |
丢出假人可管理范围内全部物品。 / Drops all managed fake-player items. |
/player <fakeName> give <playerName> hotbar <1-9> [num] |
把假人指定快捷栏槽位物品转移给玩家。 / Gives items from one fake-player hotbar slot to a player. |
/player <fakeName> give <playerName> hotbar all |
把假人快捷栏 9 格物品转移给玩家。 / Gives all items from the fake player's 9 hotbar slots to a player. |
/player <fakeName> give <playerName> offhand [num] |
把假人副手物品转移给玩家。 / Gives items from the fake player's offhand to a player. |
/player <fakeName> give <playerName> head [num] |
把假人头部装备槽物品转移给玩家。 / Gives items from the fake player's head equipment slot to a player. |
/player <fakeName> give <playerName> chest [num] |
把假人胸甲槽物品转移给玩家。 / Gives items from the fake player's chest equipment slot to a player. |
/player <fakeName> give <playerName> legs [num] |
把假人护腿槽物品转移给玩家。 / Gives items from the fake player's legs equipment slot to a player. |
/player <fakeName> give <playerName> feet [num] |
把假人靴子槽物品转移给玩家。 / Gives items from the fake player's feet equipment slot to a player. |
/player <fakeName> give <playerName> inventory <1-27> [num] |
把假人背包储物格物品转移给玩家。 / Gives items from one fake-player inventory storage slot to a player. |
/player <fakeName> give <playerName> enderchest <1-27> [num] |
把假人末影箱格子物品转移给玩家。 / Gives items from one fake-player ender chest slot to a player. |
/player <fakeName> give <playerName> inventory all |
把假人物品栏范围转移给玩家,不含末影箱。 / Gives the fake player's inventory range to a player, excluding the ender chest. |
/player <fakeName> give <playerName> enderchest all |
把假人末影箱全部物品转移给玩家。 / Gives all items from the fake player's ender chest to a player. |
/player <fakeName> give <playerName> all |
把假人可管理范围内全部物品转移给玩家。 / Gives all managed fake-player items to a player. |
/player <fakeName> take <playerName> hotbar <1-9> [num] |
假人从玩家指定快捷栏槽位拿取物品。 / The fake player takes items from one player hotbar slot. |
/player <fakeName> take <playerName> hotbar all |
假人从玩家快捷栏 9 格拿取全部物品。 / The fake player takes all items from the player's 9 hotbar slots. |
/player <fakeName> take <playerName> offhand [num] |
假人从玩家副手拿取物品。 / The fake player takes items from the player's offhand. |
/player <fakeName> take <playerName> head [num] |
假人从玩家头部装备槽拿取物品。 / The fake player takes items from the player's head equipment slot. |
/player <fakeName> take <playerName> chest [num] |
假人从玩家胸甲槽拿取物品。 / The fake player takes items from the player's chest equipment slot. |
/player <fakeName> take <playerName> legs [num] |
假人从玩家护腿槽拿取物品。 / The fake player takes items from the player's legs equipment slot. |
/player <fakeName> take <playerName> feet [num] |
假人从玩家靴子槽拿取物品。 / The fake player takes items from the player's feet equipment slot. |
/player <fakeName> take <playerName> inventory <1-27> [num] |
假人从玩家背包储物格拿取物品。 / The fake player takes items from one player inventory storage slot. |
/player <fakeName> take <playerName> enderchest <1-27> [num] |
假人从玩家末影箱格子拿取物品。 / The fake player takes items from one player ender chest slot. |
/player <fakeName> take <playerName> inventory all |
假人从玩家物品栏范围拿取物品,不含末影箱。 / The fake player takes the player's inventory range, excluding the ender chest. |
/player <fakeName> take <playerName> enderchest all |
假人从玩家末影箱拿取全部物品。 / The fake player takes all items from the player's ender chest. |
/player <fakeName> take <playerName> all |
假人从玩家可管理范围内拿取全部物品。 / The fake player takes all managed player items. |
/player <fakeName> pick <true\|false> |
绑定假人并开关中键取物;其它快捷栏有目标物品而主手没有时先互换,规整后不足半组才从假人补齐。 / Binds a fake player and toggles middle-click pickup; if another hotbar slot has the target item while the main-hand slot does not, those slots are swapped first, then fake-player stock is used only when still below half a stack. |
/player <fakeName> restock <true\|false> |
绑定假人并开关右键自动补货;默认关闭,其它快捷栏有目标物品而主手没有时先互换,规整后不足半组再从假人补齐。 / Binds a fake player and toggles right-click auto-restock; it is disabled by default, swaps another matching hotbar slot with the main-hand slot first when needed, and refills from the fake player only when still below half a stack. |
[num] can be omitted for 1, set to 1-64, or set to all. / [num] 可省略为 1,也可以填写 1-64 或 all。