File Details
Carpet Player Addition 1.1.0.jar
- R
- May 23, 2026
- 49.81 KB
- 5
- 1.21.6
- Fabric
File Name
carpet-player-addition-1.1.0.jar
Supported Versions
- 1.21.6
Curse Maven Snippet
CarpetPlayerAddition v1.1.0
Version Update - English
CarpetPlayerAddition v1.1.0 adds the first wireless-terminal-like pick feature for Carpet fake players.
Because the pick feature has to capture the player's middle-click input on the client and then ask the server to move items from the bound fake player, v1.1.0 should be installed on both the client and the server when using /player <fakeName> pick <true|false>. The other /player inventory-management commands are still server-side command features, but this version is published as a client-and-server mod so the middle-click workflow can work in singleplayer, LAN, and multiplayer.
The new /player <fakeName> pick <true|false> command binds the executing player to a specified fake player and toggles middle-click item pickup. When enabled, middle-clicking a block in survival sends the block's corresponding item request to the server. The server first checks the player's own offhand, hotbar, and main inventory for the same item before touching the bound fake player.
If the player already has at least half a stack of the requested item, the mod does not take anything from the fake player. It only swaps the player's selected hotbar slot with the slot that already contains the item. If the player has the item but less than half a stack, that slot is first swapped into the selected hotbar slot, then the mod only pulls the missing amount from the fake player until the selected stack reaches half a stack. If the player has none of the item, the mod behaves like the earlier pick behavior and tries to fetch up to half a stack from the fake player. If the player has none of the item and has no inventory capacity, no item is taken from the fake player and nothing is dropped on the ground. Creative mode automatically disables this pick feature, while switching back to survival automatically enables it again for players who already have a fake-player binding.
版本更新内容 - 中文
CarpetPlayerAddition v1.1.0 加入了第一批仿无线终端体验的中键取物功能。
由于中键取物必须在客户端捕获玩家的鼠标中键输入,再把请求发给服务器,由服务器从绑定假人身上转移物品,所以使用 /player <fakeName> pick <true|false> 时,v1.1.0 需要客户端和服务端都安装。其它 /player 库存管理指令本质上仍是服务端命令功能,但这个版本会按客户端 + 服务端版本发布,以保证中键流程在单人、局域网和多人服务器中都能工作。
新增 /player <fakeName> pick <true|false> 指令,用来把执行指令的玩家绑定到指定假人,并开关中键取物功能。功能开启后,玩家在生存模式下用鼠标中键点击方块时,客户端会把对应方块物品请求发送给服务器。服务器会先检查玩家自己的副手、快捷栏和主背包里是否已有相同物品,然后才会考虑从绑定假人身上取物。
如果玩家已经拥有数量大于等于半组的目标物品,模组不会从假人处取任何物品,只会把玩家当前主手所在快捷栏与已有目标物品的槽位交换。如果玩家已有目标物品但不足半组,会先把该槽位交换到主手,再只从假人处补足缺少的数量,直到主手达到半组。如果玩家完全没有目标物品,则沿用之前的逻辑,尝试从假人处取最多半组。若玩家完全没有目标物品且背包没有可用容量,则不会从假人取物,也不会把物品丢在地上。切换到创造模式会自动关闭该功能,切回生存模式会对已经绑定过假人的玩家自动开启。
指令总表 / 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; it prefers the player's existing matching item, only tops up from the fake player when below half a stack, and takes nothing if the player has no matching item and no capacity. |
[num] can be omitted for 1, set to 1-64, or set to all. / [num] 可省略为 1,也可以填写 1-64 或 all。