Carpet PRY Addition 是 fabric-carpet 模组的服务端 Fabric 扩展,专为 Primaryuan Server 开发。它添加了 35 个可配置的 Carpet 规则和 9 个新命令(以及 /player 扩展),涵盖错误修复、假人增强、玩家交互和生存玩法扩展。
错误修复
Xaero Minimap + LuckPerms 兼容性修复 (fixXaeroLib)
解决了在服务器上同时使用 Xaero's Minimap / World Map 和 LuckPerms 时,假人(carpet bot)数据丢失或强制清空物品栏的问题。
相关上游问题:
BlueMap 兼容性修复 (fixBlueMap)
修复了假人不触发 Fabric API 连接事件的问题,这导致像 BlueMap 这样的模组无法正确追踪假人的加入/离开。
相关上游问题:
末影水晶位置同步 (fixEndCrystalSync)
修复了当末影水晶被活塞推动时的客户端位置不同步问题,包括无敌状态下的水晶。
踩空误判修复 (fixStandingOnAir)
将支持方块的重传移至玩家移动之后,匹配官方 26.4 Snapshot 1 的修复,并额外抑制“踩空”INFO 日志。重传和 200 刻冷却仍然生效。仅影响 26.3 版本。
相关上游问题:
假人增强
假人皮肤 (fakePlayerSkinMode / fakePlayerSkinSet)
通过集成可选的 skinrestorer 模组来自定义 carpet 假人的外观。在服务端安装 skinrestorer 以启用这些功能。

summon 模式 — 假人使用召唤它的玩家的皮肤。
same_skin 模式 — 所有假人共享一个统一的皮肤,由 fakePlayerSkinSet 指定(默认:Brokeyuan)。
- 皮肤仅应用于假人的会话——不会持久化到 skinrestorer 的存储中,因此同名玩家(离线模式服务器上的相同 UUID)永远不会被重新换肤。
- 皮肤在生成前应用(如果可用)。待定查找可能会短暂显示默认皮肤;真实玩家不受影响。
- 安装了 Carpet TIS Addition 后,
/player <name> rejoin 也会获得相同的皮肤处理——rejoin 重用 Carpet 的生成逻辑,其中应用了皮肤钩子。
假人名称建议 (fakePlayerNameSuggestions)

自定义在使用 /player 命令生成假人时显示的推荐名称列表。定义一个逗号分隔的名称列表以便快速选择。
假人珍珠传送系统 (fakePlayerTpp)
一个使用假人和末影珍珠的传送网络。管理员在关键位置设置站点,玩家通过在目的地让临时假人右键点击珍珠来在他们之间传送。
命令:
/tpp <station> — 传送至站点。
/tppset — 管理站点、玩家别名和每个站点的珍珠使用次数。数据持久化存储在 config/carpet-pry-tpp.json 中。
/tpp 需要 Carpet TIS Addition —— 其 /player rejoin 会在假人登出位置和方向重生站点假人。这是一个软依赖:如果没有它,/tpp 会立即报告缺失要求,而 /tppset 和其他一切正常工作。
假人连续掉落 (fakePlayerDropAll)
使用 /player <name> dropall(或 dropall once)立即清空物品栏。定时模式每次触发掉落一组物品:每刻、固定间隔、随机间隔、延迟后或每秒 N 次。dropall stop 取消任务。
假人物品链接 (fakePlayerSendto)
添加了一个 /player <name> sendto <target> 子命令,在假人之间创建单向物品流:每次触发传输一组物品,在多个目标间轮询,当目标满时源端缓冲物品。支持与 dropall 相同的速率修改器;sendto stop 移除所有链接。链接仅存在于内存中,重启后不保留。
假人大脑 (fakePlayerBrain)
使用 /player <name> brain <mode> 赋予假人 19 种生物行为模式之一。它们保持玩家身体和物品栏;不创建额外的实体或物品。支持 CJK 模式名称、彩色名称后缀和当前服务器运行期间 rejoin 使用的 keep。
玩法扩展
玩家帽子 (playerHat)

使用 /hat 命令将任何主手物品戴在头上。当 不死图腾 放置在头盔槽位时,受到致命伤害会触发生存效果:再生 II + 吸收 II + 抗性提升 I。
玩家头颅皮肤 (playerHeadSkin)
真实玩家和 Carpet 假人佩戴玩家头颅以使用完整皮肤;更换头颅会更新皮肤,移除头颅或禁用该规则则恢复之前的皮肤。头颅保持可见。服务端无需安装任何皮肤模组或启用 playerHat。
骑乘玩家 (ridingPlayers)

在主手持有不死图腾并右键点击另一名玩家的头部即可骑乘在其头顶。玩家可通过 /riding on|off 控制是否允许他人骑乘。最多可堆叠 ridingPlayersStackLimit(默认 16)名玩家形成一座塔。
其他相关规则:
ridingPlayersAutoDismount — 当玩家的游戏模式发生变化时,乘客自动下马。
ridingPlayersClientInteract — 一个客户端规则(默认开启),允许在携带乘客时与方块和实体进行交互。需要在客户端安装本模组。
拾取玩家 (pickupPlayers)

在主手持有不死图腾并右键点击另一名玩家的腿部即可将其抱起(他们骑在你的头上)。点击躯干无效,且假人不参与此互动。玩家可通过 /picking on|off 控制是否允许他人抱起自己。共享与骑乘相同的堆叠上限(ridingPlayersStackLimit)。
拍头玩家 (patPatPlayers)
像撸猫一样拍打其他真实玩家的头部:每次右键都是一次抚摸脉冲——目标会随着节奏上下晃动,头顶出现爱心,被拍者眼前会出现一颗爱心、柔和的方向性音效,并且每位玩家可以单独选择退出(/patnod,配置保存在 config/carpet-pry-patnod.json 中)。假人被排除在外;手持任意物品均可生效,且不消耗交互次数。
和平玩家 (peacefulPlayers)
启用 /pvp 命令:每位玩家都可以自行开启或关闭自己的 PVP 状态。PVP 关闭的玩家无法攻击其他玩家,也不会受到来自其他玩家的伤害(自伤不受影响);被阻挡的攻击会播放提示音,以保留“戳一下”的信号。管理员可以使用 /pvp on|off @a 为任何人或全服切换 PVP 状态,/pvp list 显示当前所有 PVP 关闭的玩家。状态会在重启后持久保存于 config/carpet-pry-pvp.json 中。
谁叫了我 (whoCalledMe)
在聊天中命名一名玩家会触发三种声音和一条标题;提及自己也有效,且假人被排除。匹配不区分大小写,较长名称优先;mention 模式需要 @name。whoCalledMeSound 选择声音,whoCalledMeHighlight 从 16 种颜色、rainbow(彩虹)或 false(关闭,默认青色)中选择。
MiSide 字幕 (textAnimation)
使用 /text @a|player <message> 在原版客户端上播放 MiSide 风格的字幕。文字输入、停留,然后掉落并淡出;末尾的感叹号会使文字变大。默认为白色,支持 & 颜色代码和内联选项。前 12 名符合条件的接收者获得实体字幕;其余者获得动作栏打字机效果。假人被排除在外。
穿透点击 (clickThrough)
右键点击墙上的告示牌、悬挂式告示牌、旗帜、物品框或画作,直接打开其背后的容器。潜行保持正常交互,被阻止的容器仍然被阻止。适用于原版客户端;安装 ClickThrough Server 会禁用此处理程序。
玩家缩放
玩家缩放 (playerScale + playerScaleMin / playerScaleMax)
注册原版的 minecraft:scale 属性并为玩家启用 /scale set|reset|info 命令:玩家可以调整自身大小,管理员(或所有人,取决于模式)可以调整他人。数值只需大于 0,受 playerScaleMin(默认 0.1)和 playerScaleMax(默认 1.5)限制。安装在客户端时会自动补偿 FOV。
真实玩家缩放 (playerScalePhysics)
可选的物理链接,提供三种模式(温和的 √scale 曲线、温和 + 小尺寸下限、或严格比例):移动速度、跳跃高度、步高、交互范围、坠落安全性和重力均随体型缩放。仅为瞬时修改器——不会写入存档。
玩家缩放关联实体 (playerScaleLinkedEntities)
由玩家使用物品直接生成的活体实体(盔甲架、刷怪蛋生物、建造的铁傀儡等……)在生成时继承玩家的体型快照。
其他功能
- 更多末影水晶类型 (
moreEndCrystalTypes) — 可在哭泣的黑曜石上放置末影水晶;invulnerable 放置无敌水晶。它们的光束指向 (0, 128, 0)。
- 白日梦 (
sleepingDuringTheDay) — 在白天睡觉可以快进到夜晚(灵感来自 PCA)。
- 更好的雪球 (
betterSnowball) — 雪球会对玩家造成击退和伤害(“隐藏在雪中的石头”)。
- 隐形草 (
invisibleInTallGrass) — 头部位于高草中时自动获得隐身效果。
- Unicode 命令参数 (
unicodeArgumentsSupport) — 允许在命令参数中使用非 ASCII 字符(中文、日文、韩文等),从而创建带有 CJK 名称的假人(源自 YACA)。
下载前须知
- 依赖项: 服务器必须安装 fabric-carpet 和 Fabric API。
- 需要 Fabric Loader >= 0.16.0。
- 可选: 若要使用假人皮肤功能(
fakePlayerSkinMode / fakePlayerSkinSet),则需要安装 skinrestorer。
- 这是一个服务端模组。请将其放入服务器的
mods 文件夹中。仅在需要使用玩家缩放视野补偿以及 ridingPlayersClientInteract 规则时,才需要在客户端安装。
- 所有规则默认均为关闭状态(
ridingPlayersClientInteract 除外)——请使用 /carpet 命令或 Carpet 配置文件来启用您需要的规则。
- 源代码: GitHub
- 文档: Wiki | GitHub README
鸣谢
Carpet PRY Addition is a server-side Fabric extension for the fabric-carpet mod, developed for the Primaryuan Server. It adds 35 configurable Carpet rules and 9 new commands (plus /player extensions) covering bug fixes, fake player enhancements, player interaction, and survival gameplay expansion.
Bug Fixes
Xaero Minimap + LuckPerms Compatibility Fix (fixXaeroLib)
Resolves an issue where fake player (carpet bot) data is lost or inventory is forced empty when Xaero's Minimap / World Map and LuckPerms are used together on the server.
Related upstream issues:
- Xaero's World Map #1191 — When using with LuckPerms and carpet, carpet bot's player data initialize failed
- LuckPerms #4232 — When using with Xaero's Minimap and Xaero's World map, carpet bot's inventory empty
- fabric-carpet #2158 — Bot's inventory force empty with LuckPerms xaerolib (include in Xaero's Minimap and Xaero's Worldmap)
BlueMap Compatibility Fix (fixBlueMap)
Fixes an issue where fake players do not trigger Fabric API connection events, causing mods like BlueMap to fail tracking fake player join/leave correctly.
Related upstream issues:
End Crystal Position Sync (fixEndCrystalSync)
Fixes client-side position desync when end crystals are pushed by pistons, including invulnerable crystals.
Standing On Air Misjudgment Fix (fixStandingOnAir)
Moves support-block resends after player movement, matching the official 26.4 Snapshot 1 fix, and additionally suppresses the standing-on-air INFO log. Resends and the 200-tick cooldown remain active. Only affects 26.3.
Related upstream issues:
- MC-311474 — standing on air log false positives
- MC-311727 — root cause (check runs before movement), fixed in 26.4 Snapshot 1
Fake Player Enhancements
Fake Player Skin (fakePlayerSkinMode / fakePlayerSkinSet)
Customize the appearance of carpet fake players by integrating with the optional skinrestorer mod. Install skinrestorer on the server to enable these features.

summon mode — the fake player uses the skin of the player who summoned it.
same_skin mode — all fake players share a unified skin, specified by fakePlayerSkinSet (default: Brokeyuan).
- Skins apply to the fake player's session only — nothing is persisted to skinrestorer's storage, so real players sharing the same name (same UUID on offline-mode servers) never get reskinned.
- Skins are applied before spawn when available. A pending lookup may briefly show the default skin; real players are unaffected.
- With Carpet TIS Addition installed,
/player <name> rejoin gets the same skin treatment — rejoin reuses Carpet's spawn logic, where the skin hook applies.
Fake Player Name Suggestions (fakePlayerNameSuggestions)

Customize the name suggestion list shown when using the /player command to spawn fake players. Define a comma-separated list of names for quick selection.
Fake Player Pearl Teleport System (fakePlayerTpp)
A teleport network using fake players and ender pearls. Admins set up stations at key locations, and players teleport between them by having a temporary fake player right-click a pearl at the destination.
Commands:
/tpp <station> — teleport to a station.
/tppset — manage stations, player aliases, and per-station pearl use counts. Data is persisted in config/carpet-pry-tpp.json.
/tpp requires Carpet TIS Addition — its /player rejoin respawns the station's fake player at its logged-off position and orientation. This is a soft dependency: without it, /tpp immediately reports the missing requirement, while /tppset and everything else work normally.
Fake Player Continuous Drop (fakePlayerDropAll)
Use /player <name> dropall (or dropall once) to empty the inventory immediately. Timed modes drop one stack per trigger: every tick, at a fixed or random interval, after a delay, or N times per second. dropall stop cancels the task.
Fake Player Inventory Link (fakePlayerSendto)
Adds a /player <name> sendto <target> sub-command creating a one-way item flow between fake players: one stack is transferred per trigger, round-robin across multiple targets, and the source buffers items when a target is full. The same pace modifiers as dropall are supported; sendto stop removes all links. Links live in memory only and do not survive restarts.
Fake Player Brain (fakePlayerBrain)
Give fake players one of 19 mob behavior modes with /player <name> brain <mode>. They keep their player body and inventory; no extra entities or items are created. Supports CJK mode names, colored name suffixes and keep for rejoins during the current server run.
Gameplay Expansion
Player Hat (playerHat)

Wear any main-hand item on your head with the /hat command. When a Totem of Undying is placed in the helmet slot, taking fatal damage triggers a survival effect: Regeneration II + Absorption II + Fire Resistance I.
Player Head Skin (playerHeadSkin)
Real and Carpet fake players wear a player head to use its full skin; swapping heads updates it, and removing it or disabling the rule restores the previous skin. The head stays visible. Server-side, with no skin mod or playerHat required.
Riding Players (ridingPlayers)

Hold a Totem of Undying in your main hand and right-click another player's head to ride on top of them. Players can control whether others may ride them via /riding on|off. Up to ridingPlayersStackLimit (default 16) players can stack in one tower.
Additional related rules:
ridingPlayersAutoDismount — passengers dismount when a player's game mode changes.
ridingPlayersClientInteract — a client-side rule (on by default) that allows interacting with blocks and entities even when carrying passengers. Requires the mod to be installed on the client.
Picking Up Players (pickupPlayers)

Hold a Totem of Undying in your main hand and right-click another player's legs to pick them up (they ride on your head). Torso clicks do nothing, and fake players don't participate. Players control whether others may pick them up via /picking on|off. Shares the same stack limit as riding (ridingPlayersStackLimit).
Pat Players (patPatPlayers)
Pat other real players on the head, cat-petting style: each right-click is a stroking pulse — the target bobs down and up with the rhythm with hearts above their head, while the patted player gets a heart in front of their eyes, a soft directional sound and a per-player opt-out (/patnod, persisted in config/carpet-pry-patnod.json). Fake players are excluded; works with any item in hand and never consumes the interaction.
Peaceful Players (peacefulPlayers)
Enables the /pvp command: each player can turn their own PVP on or off. Players with PVP off cannot attack players and take no damage from players (self-inflicted damage unaffected); blocked attacks play a cue sound so the "poke" signal is preserved. Admins can toggle PVP for anyone or server-wide with /pvp on|off @a, and /pvp list shows everyone who currently has PVP off. States persist across restarts in config/carpet-pry-pvp.json.
Who Called Me (whoCalledMe)
Naming a player in chat triggers three sounds and a title; self-mentions also work and fake players are excluded. Matching is case-insensitive, with longer names taking precedence; mention mode requires @name. whoCalledMeSound chooses the sound, and whoCalledMeHighlight chooses one of 16 colors, rainbow or false (default aqua).
MiSide Subtitles (textAnimation)
Use /text @a|player <message> to play MiSide-style subtitles on vanilla clients. Text types in, holds, then drops and fades; trailing exclamation marks enlarge it. Defaults to white, supports & color codes and inline options. The first 12 eligible recipients get entity subtitles; the rest get an actionbar typewriter. Fake players are excluded.
Click Through (clickThrough)
Right-click wall signs, wall hanging signs, wall banners, item frames or paintings to open the container directly behind them. Sneaking keeps normal interaction, and blocked containers remain blocked. Works on vanilla clients; installing ClickThrough Server disables this handler.
Player Scaling
Player Scale (playerScale + playerScaleMin / playerScaleMax)
Registers the vanilla minecraft:scale attribute for players and enables the /scale set|reset|info command: players adjust their own size, and admins (or everyone, depending on the mode) can adjust others. Values only need to be greater than 0, bounded by playerScaleMin (default 0.1) and playerScaleMax (default 1.5). Includes automatic FOV compensation on clients with the mod installed.
Realistic Player Scale (playerScalePhysics)
Optional physics linkage in three modes (gentle √scale curve, gentle + small-size floors, or strictly proportional): movement speed, jump height, step height, interaction range, fall safety and gravity all scale with size. Transient modifiers only — nothing is written to the save.
Player Scale Linked Entities (playerScaleLinkedEntities)
Living entities spawned directly by a player using an item (armor stands, spawn-egg mobs, built golems, ...) inherit the player's size snapshot at spawn time.
Other Features
- More End Crystal Types (
moreEndCrystalTypes) — place end crystals on crying obsidian; invulnerable places an invulnerable crystal. Their beams point to (0, 128, 0).
- Daydreaming (
sleepingDuringTheDay) — sleep in a bed during daytime to skip forward to night (inspired by PCA).
- Better Snowball (
betterSnowball) — snowballs deal knockback and damage to players ("stones hidden in snow").
- Invisibility Grass (
invisibleInTallGrass) — standing with your head inside tall grass grants automatic invisibility.
- Unicode Command Arguments (
unicodeArgumentsSupport) — allows non-ASCII characters (Chinese, Japanese, Korean, etc.) in command arguments, enabling fake players with CJK names (ported from YACA).
Before You Download
- Required dependencies: fabric-carpet and Fabric API must be installed on the server.
- Fabric Loader >= 0.16.0 is required.
- Optional: skinrestorer is needed for the fake player skin features (
fakePlayerSkinMode / fakePlayerSkinSet).
- This is a server-side mod. Place it in the server's
mods folder. Client installation is only needed for the player-scaling FOV compensation and the ridingPlayersClientInteract rule.
- All rules are off by default (except
ridingPlayersClientInteract) — use /carpet or the Carpet configuration files to enable the ones you want.
- Source code: GitHub
- Documentation: Wiki | GitHub README
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧