
Breeder's Ledger 是一款面向服务器的 NeoForge 动物所有权模组,为多人游戏 Minecraft 带来了真实的牲畜管理体验。认领动物、保护它们、控制谁能与之互动,并见证所有权通过繁殖世代传承。
功能仍在开发中!

认领动物
所有权设定非常简单。喂食一只动物,它就是你的了。
玩家用小麦喂了一只羊
> 羊现在的拥有者:Steve
> 其他玩家无法剪毛、染色、牵领或繁殖它(可配置)
第一个喂食未认领动物的玩家将成为其拥有者。如果其他人喂食了你的动物,不会导致所有权被窃取。
世代所有权
当你的动物繁殖时,它们的后代将自动继承所有权。以下是其内部逻辑的解析:
if (sameOwner) return ownerA; // 父母双方都是你,后代归你
if (differentOwner) return null; // 父母分属不同玩家,后代保持中立
if (breeder != null) return breederAsOwner; // 谁喂食了它们,谁就获得后代
因此,如果父母双方都属于你,那么后代就是你的。如果它们属于两位不同的玩家,后代将保持中立状态,以避免所有权冲突。
所有权保护
一旦认领,你的动物将受到防破坏保护。服务器管理员可以单独切换每种保护选项,以便规则符合服务器的氛围:
| 保护项 |
配置键 |
| 其他玩家攻击 |
allowHurt |
| 喂食 / 繁殖 |
allowFeedBreed |
| 剪毛 |
allowShear |
| 挤奶 |
allowMilk |
| 戴上拴绳 |
allowLead |
| 骑乘 / 上马 |
allowRide |
| 染色(绵羊) |
allowDye |
| 命名牌 |
allowNameTag |
| 盔甲 / 挽具 |
allowHarness |
想要一个任何人都能挤牛奶但没人能偷你马匹的服务器?只需两个开关即可搞定。
动物行为模式
空手右键点击你自己的动物,可在行为模式之间循环切换:
NORMAL(普通) > STAY(停留) > FOLLOW(跟随) > HERD_BOND(群居绑定) > NORMAL(普通) > ...
NORMAL 是原版的行为模式。STAY 会锁定动物位置,防止它四处游荡。FOLLOW 会让它使用自定义目标跟随你。HERD_BOND 会让它留在附近同类型动物身边,非常适合在不使用围栏的情况下保持羊群聚集。
FollowMode next = animal.getData(ModAttachments.FollowMode.get()).next();
animal.setData(ModAttachments.FollowMode.get(), next);
player.sendSystemMessage(Component.literal("§e[Breeder's Ledger] §r" + animal.getName().getString() + " is now §e" + next.displayName() + "§r."));
每种模式都会实时同步给附近的所有玩家,确保大家看到相同的行为。

HUD 状态叠加层
悬停在任何动物上,准星附近会出现一个面板,一目了然地显示所有值得了解的信息:
(Your) Horse (你的)马
速度 (horseValue / maxValue)
跳跃 (horseValue / maxValue)
最大生命值 (horseValue / maxValue)
繁殖 ( isInLove() )
已存活时间 (服务器时间)
(Your) Sheep (你的)绵羊
可剪毛 ( isShearable() )
繁殖 ( isInLove() )
已存活时间 (服务器时间)
(Your) Baby Sheep (你的)小绵羊
生长进度 (剩余时间)
已存活时间 (服务器时间)
它会根据你所查看的动物类型调用不同的统计模块。可骑乘的动物会显示速度、跳跃和最大生命值。绵羊和鸡会显示羊毛和蛋的计时器。任何可繁殖的生物都会显示繁殖冷却时间和生长进度。拥有者的名字始终作为标题显示在最上方。
面板本身也非常可定制。你可以更改颜色主题,切换到仅显示数值紧凑模式,从四种 HUD 位置中选择一种,放大或缩小它,切换淡入淡出动画(开发中),甚至将其锁定在潜行键后,使其仅在按住 Shift 键时出现。

服务器管理员控制
服务器操作员完全掌控所有权系统,任何更改在应用时会立即同步给所有连接的玩家。
PacketDistributor.sendToPlayer(player, OwnershipConfig.INSTANCE.toSyncPayload());
PacketDistributor.sendToAllPlayers(syncPayload); // 每次配置更新时触发
管理员还可以一键执行完整的所有权重置,这将清除所有动物的拥有者信息,将其跟随模式重置为普通状态,并清除任何不消失标记。这对于全新开始或修复社区服务器上的混乱局面非常有用。
永不消失
当拥有者在在线时,被拥有的动物永远不会消失。模组按玩家追踪此状态,因此即使你远离农场,你精心培育的马或珍贵的绵羊也会保持加载和存活状态。
专为多人游戏设计
整个模组以服务器优先为设计理念。所有权数据存储在 NeoForge Data Attachments 中,以便在重启后持久保存。所有内容会在登录、实体生成、繁殖以及配置更改时进行同步。权限检查确保只有 OP 才能执行重置或配置编辑。整个系统能够优雅地处理多个玩家与同一动物交互的情况,不会出现竞态条件或数据过时的问题。
完美适用于
DISCORD:
无需记忆命令。只需喂食一只动物,它就是你的了。
NeoForge | 客户端 + 服务端

Breeder's Ledger is a server-friendly animal ownership mod for NeoForge that brings real livestock management to multiplayer Minecraft. Claim animals, protect them, control who can interact with them, and watch ownership pass down through breeding generations.
FEATURES ARE STILL WIP !

Claiming Animals
Ownership is dead simple. Feed an animal and it's yours.
Player feeds a Sheep with Wheat
> Sheep is now owned by: Steve
> No other player can shear, dye, lead, or breed it (configurable)
The first player to feed an unclaimed animal becomes its owner. Ownership won't be stolen if someone else feeds your animal.
Generational Ownership
When your animals breed, their babies inherit ownership automatically. Here's how it resolves under the hood:
if (sameOwner) return ownerA; // both parents are yours, baby is yours
if (differentOwner) return null; // different owners, baby stays neutral
if (breeder != null) return breederAsOwner; // whoever fed them gets the baby
So if both parents belong to you, the baby is yours. If they belong to two different players, the baby stays neutral so there's no ownership conflict.
Ownership Protections
Once claimed, your animals are protected from griefing. Server admins can toggle each protection individually so the rules fit the server's vibe:
| Protection |
Config Key |
| Other players attacking |
allowHurt |
| Feeding / breeding |
allowFeedBreed |
| Shearing |
allowShear |
| Milking |
allowMilk |
| Putting on a lead |
allowLead |
| Riding / mounting |
allowRide |
| Dyeing (sheep) |
allowDye |
| Name tags |
allowNameTag |
| Armor / harness |
allowHarness |
Want a server where anyone can milk cows but nobody can steal your horse? Two toggles and you're done.
Animal Behavior Modes
Right-click your own animal with an empty hand to cycle through behavior modes:
NORMAL > STAY > FOLLOW > HERD_BOND > NORMAL > ...
NORMAL is just vanilla behavior. STAY locks the animal in place so it stops wandering off. FOLLOW makes it trail you around using a custom goal. HERD_BOND gets it to stay close to nearby animals of the same type, which is great for keeping a flock together without fences.
FollowMode next = animal.getData(ModAttachments.FollowMode.get()).next();
animal.setData(ModAttachments.FollowMode.get(), next);
player.sendSystemMessage(Component.literal("§e[Breeder's Ledger] §r" + animal.getName().getString() + " is now §e" + next.displayName() + "§r."));
Every mode syncs to all nearby players in real time so everyone sees the same behavior.

HUD Stat Overlay
Hover on any animal and a panel appears in near your crosshair with everything worth knowing at a glance:
(Your) Horse
Speed (horseValue / maxValue)
Jump (horseValue / maxValue)
Max HP (horseValue / maxValue)
Breeding ( isInLove() )
Seen (server age)
(Your) Sheep
Can shear ( isShearable() )
Breeding ( isInLove() )
Seen (server age)
(Your) Baby Sheep
Growth (time left)
Seen (server age)
It pulls from several stat modules depending on what kind of animal you're looking at. Speed, jump, and max health show up for rideable animals. Wool and egg timers appear for sheep and chickens. Breeding cooldown and growth progress show for anything breedable. And the owner's name always sits at the top as a header.
The panel itself is pretty customizable too. You can change the color theme, switch to compact mode that shows only values, pick from four HUD positions, scale it up or down, toggle the fade animation (WIP), and even lock it behind a sneak key so it only appears when you're holding Shift.

Server Admin Controls
Server operators get full control over the ownership system and any changes sync out to all connected players the moment they're applied.
PacketDistributor.sendToPlayer(player, OwnershipConfig.INSTANCE.toSyncPayload());
PacketDistributor.sendToAllPlayers(syncPayload); // fires on every config update
Admins can also do a full ownership reset in one action, which wipes every animal's owner, resets their follow mode back to normal, and clears any no-despawn flags. Useful for fresh starts or fixing a messy situation on a community server.
No Despawn
Owned animals never despawn while their owner is online. The mod tracks this per-player so your carefully bred horse or your prize sheep stays loaded and alive even if you wander far from the farm.
Built for Multiplayer
The whole mod is designed server-first. Ownership data lives in NeoForge Data Attachments so it persists across restarts. Everything syncs on login, on entity spawn, on breeding, and whenever the config changes. Permission checks make sure only OPs can do resets or config edits. And the whole system handles multiple players interacting with the same animals gracefully without race conditions or stale data.
Perfect For
-
Multiplayer survival servers with shared farms
-
Community farming setups where griefers are a real concern
-
Roleplay worlds that want actual livestock ownership as part of the lore
-
Hardcore servers where losing a prized horse to other players is annoying
-
Competitive servers where animal stats actually matter
DISCORD:
No commands to memorize. Just feed an animal and it's yours.
NeoForge | Client + Server
评论 0
登录后参与评分
还没有评论,来抢沙发吧