Better Safe Bed — Minecraft 26.3 (NeoForge) 的现代移植版
即使附近有怪物,也能安心入睡。
通常情况下,如果床周围水平距离 8 格、垂直距离 5 格内有怪物,你就会收到“你现在无法休息,附近有怪物”的提示——即便那些怪物位于你基地下方的洞穴里、外墙之外或屋顶上,根本无法触碰到你。
本模组增加了一项额外检查:只有当怪物真正锁定(targeting)玩家时,才会阻止休息。确保安全后,再安心睡眠。
现在提供 Minecraft 26.3 (NeoForge) 的现代移植版 ——仅服务端机制,无 GUI/渲染内容。
功能说明
Monster.isPreventingPlayerRest 仅在怪物针对该特定玩家时才返回 true
- 纯服务端运行;多人游戏中无需安装在客户端
现代移植版备注 (26.3)
- 单 Mixin 移植,行为与原版一致
- 已通过 GitHub Actions CI 构建和验证,包括一项无头运行时测试:启动客户端、加入世界并正常退出
安装方法
- 为 Minecraft 26.3 安装 NeoForge
- 将
bettersafebed263-*-neoforge-*.jar 放入你的 mods 文件夹
原版模组及致谢
这是由 Itamio 基于 frankV 制作的 Better Safe Bed 进行的非官方现代移植——原版(在 Modrinth 上拥有 110 万次下载)尚未更新至 26.3。
- 原版模组:
- 原版源码:
- 许可证:MIT (Copyright © 2023 frankV) —— 详见
LICENSE
原版概念、设计和逻辑的所有功劳归于 frankV。此移植版旨在将其适配至 Minecraft 26.3。详见 NOTICE。
Better Safe Bed — Modern Port for Minecraft 26.3 (NeoForge)
Sleep peacefully even when monsters lurk nearby out of reach.
Normally, if a monster is within 8 blocks horizontally and 5 blocks
vertically from your bed, you get "You may not rest now, there are
monsters nearby" — even if that monster is in a cave beneath your
base, outside its walls, or on its roof, and could never reach you.
This mod adds an extra check: a monster only prevents resting if it
is actually targeting you. Sleep when you're safe.
Now with a modern port for Minecraft 26.3 (NeoForge) — server-side
mechanism only, no GUI/render.
What it does
Monster.isPreventingPlayerRest returns true only when the monster
targets that specific player
- Server-side; doesn't need to be on the client in multiplayer
Modern port notes (26.3)
- Single-mixin port, same behaviour as the original
- Built and verified in CI via GitHub Actions, including a headless
runtime test that launches the client, joins a world, and quits cleanly
Installation
- Install NeoForge for Minecraft 26.3
- Drop
bettersafebed263-*-neoforge-*.jar into your mods folder
Original mod & credit
This is an unofficial modern port by Itamio of Better Safe
Bed by frankV — the original (1.1M downloads on Modrinth) has not been updated to 26.3.
- Original mod:
- Original source:
- License: MIT (Copyright © 2023 frankV) — see
LICENSE
All credit for the original concept, design, and logic goes to
frankV. This port exists to bring it to Minecraft 26.3. See NOTICE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧