Camper's Rest
稻草床、篝火和坐垫终于物有所值了。
Minecraft 26.3 添加了稻草床和坐垫。Camper's Rest 将它们与篝火结合,构建了一个小型露营系统,奖励那些真正搭建营地的人,并为这些物品赋予了实际用途。
无需模组,无需资源包:只需将其放入你世界的 datapacks 文件夹中即可。
功能
?️ 稻草床
- 在稻草床上睡过一夜可获得经验值 (XP)。
- 床会被消耗掉,并在原地掉落 3–6 小麦。将小麦制成干草块以制作新床,或直接烘焙成面包。
- 如果在夜晚结束前离开,你将拿回床本身。服务器可以将此设置改为掉落小麦,这是一种温和处理不耐烦(或恶作剧)玩家的方式。提前离开不会获得任何奖励。
? 露营地
- 在你的床附近放置一个点燃的篝火或灵魂篝火(默认为 4 格距离),醒来时你将获得更多的经验值以及再生 I效果。
- 与朋友在同一个篝火旁睡觉:每多一名睡眠者,所有人的额外奖励都会增加(+2 XP 和 +5 秒再生时间),最多支持 4 名玩家。
? 坐垫
- 坐在点燃的篝火旁的坐垫上并进食:你将获得再生效果,食物越饱腹,持续时间越长(默认为每个饥饿点 2 秒;面包可提供 10 秒)。
- 你的饥饿条运作方式与原版完全一致。没有任何东西“值得双倍”。
? 语言
- 数据包内置了英语、葡萄牙语 (BR)、西班牙语、法语、德语和俄语。无需资源包。
- 每位玩家通过
/trigger campersrest.lang set <1-6> 选择自己的语言(使用 7 列出所有语言)。服务器管理员可设置默认语言。
安装
- 下载 zip 文件。不要解压。
- 将其放入你世界的
datapacks 文件夹中(对于服务器:world/datapacks)。
- 运行
/reload 或重启世界/服务器。
需要 Minecraft: Java Edition 26.3。适用于单人游戏和多人游戏,且完全在服务器端运行。
配置
所有设置均可由操作员在游戏中更改:
/scoreboard players set <name> campersrest.config <value>
#early_leave — 0 = 提前离开床会返还床(默认),1 = 返还小麦
#xp_base — 不在篝火旁睡觉获得的经验值(默认 5)
#xp_camp — 在露营地睡觉获得的经验值(单人,默认 10)
#xp_extra — 在同一篝火旁每增加一名玩家所获得的额外经验值(默认 2)
#regen_base — 在露营地醒来时获得的再生 I 持续时间(秒,默认 20)
#regen_extra — 每增加一名玩家所获得的额外再生时间(秒,默认 5)
#limit — 计算群体奖励的最大玩家数量(默认 4)
#radius — 篝火到床或坐垫的最大距离,范围 0 到 6(默认 4)
#meal_regen — 在露营地进食时,每个饥饿点提供的再生持续时间(秒,默认 2)
#language — 默认语言,范围 1 到 6(默认 1)
#debug — 1 会在聊天栏显示诊断信息(默认 0)
快捷指令:/function campersrest:config/bed、/function campersrest:config/wheat 和 /function campersrest:config/view。
常见问题
我需要资源包吗? 不需要。翻译内容已包含在数据包内。
它会更改或替换任何原版文件吗? 不会。它使用自己的 campersrest 命名空间,仅挂钩到标准的加载和刻函数标签,因此应能与其他数据包共存。
它会拖慢我的服务器吗? 它非常轻量。篝火搜索对每个正在睡觉的玩家每秒运行约一次,并且仅在有人坐在坐垫上进食时触发。
游戏会自动检测我的语言吗? 目前还不能。由于数据包无法读取客户端语言,因此每位玩家需要使用 /trigger 命令手动选择一次语言,服务器则设置默认语言。
为什么我提前离开床会得到小麦? 这是一个服务器选项 (#early_leave)。默认情况下,你只会拿回床本身。
翻译说明
英语和葡萄牙语 (BR) 是参考语言。西班牙语、法语、德语和俄语的翻译仅为初稿,非常欢迎进行修正。文本位于 data/campersrest/function/lang/table.mcfunction。
Camper's Rest
Straw beds, campfires and cushions finally worth using.
Minecraft 26.3 added the straw bed and the cushion. Camper's Rest ties them together with the campfire into a small camping system that rewards you for actually setting up camp, and gives every one of those items a real use.
No mods, no resource pack: just drop it into your world's datapacks folder.
Features
?️ Straw bed
- Sleep through the night in a straw bed and you earn XP.
- The bed is used up, and 3–6 wheat drop where it stood. Turn the wheat into hay bales to craft new beds, or bake bread right away.
- Leave before the night passes and you get the bed back instead. Servers can switch this to wheat, which is a gentle way to deal with impatient (or trolling) players. No rewards are given when you leave early.
? Campsite
- Place a lit campfire or soul campfire near your bed (4 blocks by default) and you get more XP plus Regeneration I when you wake up.
- Sleep around the same campfire with friends: each extra sleeper increases the bonus for everyone (+2 XP and +5 seconds of regeneration), up to 4 players.
? Cushion
- Sit on a cushion next to a lit campfire and eat: you gain Regeneration, and the more filling the food, the longer it lasts (2 seconds per hunger point by default; bread gives 10 seconds).
- Your hunger bar works exactly as in vanilla. Nothing is "worth double".
? Languages
- English, Português (BR), Español, Français, Deutsch and Русский are built into the data pack. No resource pack needed.
- Each player picks their language with
/trigger campersrest.lang set <1-6> (use 7 to list them). Server owners set the default language.
Installation
- Download the zip. Do not unzip it.
- Put it in your world's
datapacks folder (for servers: world/datapacks).
- Run
/reload or restart the world or server.
Requires Minecraft: Java Edition 26.3. Works in singleplayer and multiplayer and runs entirely server-side.
Configuration
Everything can be changed in-game by operators:
/scoreboard players set <name> campersrest.config <value>
#early_leave — 0 = leaving the bed early returns the bed (default), 1 = returns wheat
#xp_base — XP for sleeping without a campfire (default 5)
#xp_camp — XP at a campsite, one player (default 10)
#xp_extra — extra XP per additional player at the same campfire (default 2)
#regen_base — seconds of Regeneration I when waking at a campsite (default 20)
#regen_extra — extra seconds per additional player (default 5)
#limit — maximum number of players counted in the group bonus (default 4)
#radius — maximum distance from the campfire to the bed or cushion, 0 to 6 (default 4)
#meal_regen — seconds of Regeneration per hunger point of a meal at a campsite (default 2)
#language — default language, 1 to 6 (default 1)
#debug — 1 shows diagnostic messages in chat (default 0)
Shortcuts: /function campersrest:config/bed, /function campersrest:config/wheat and /function campersrest:config/view.
FAQ
Do I need a resource pack? No. Translations are inside the data pack.
Does it change or replace any vanilla files? No. It uses its own campersrest namespace and only hooks into the standard load and tick function tags, so it should coexist with other data packs.
Will it slow my server down? It is lightweight. The campfire search runs about once per second for each sleeping player, and only when someone eats while sitting on a cushion.
Does the game detect my language automatically? Not yet. Data packs cannot read the client language, so each player chooses it once with the /trigger command, and the server sets the default.
Why wheat when I leave the bed early? That is a server option (#early_leave). By default you simply get the bed back.
Translations
English and Portuguese (BR) are the reference languages. The Spanish, French, German and Russian translations are first drafts, and corrections are very welcome. Texts live in data/campersrest/function/lang/table.mcfunction.
评论 0
登录后参与评分
还没有评论,来抢沙发吧