脆弱的床
床是易碎的:破坏一张床会将其彻底摧毁。想要收回一张床,唯一的方法是使用附魔了精准采集的工具来破坏它。
现在,床不再是那种像睡袋一样放下、睡完就能捡起来带走的东西了,它变得更加固定。你需要考虑好要把床放在哪里,否则你就得重新制作一张新的。
此外,你也不能再从村庄等建筑中直接“偷”走一张床了。你可以借用一张并在里面过夜,但如果你要继续旅程,就必须自己制作一张床。
我建议安装一个数据包,防止在杀死绵羊时掉落羊毛,而仅在剪毛时掉落羊毛,例如我方便制作的这个数据包 killed-sheep-dont-drop-wool。配合本模组使用,会让第一晚的挑战性更高。
行为机制
- 使用精准采集工具破坏床的任意一半,都会精确掉落一张床。
- 不使用精准采集工具破坏床,不会掉落任何物品。
- 爆炸(TNT、苦力怕、在下界或末地引爆床)不会掉落任何物品。
- 只要工具附魔了精准采集,任何工具都可以(镐、斧、铲、锄均可)。
工作原理
本数据包覆盖了原版16种颜色床的掉落表(minecraft:blocks/<color>_bed)。无需函数,无需tick:零性能开销。
原版机制中,只有破坏床头部分才会掉落床。当玩家破坏床尾时,游戏会在无工具掉落上下文的情况下移除床头,因此普通的精准采集条件有一半的概率会失败。为了避免这种情况,允许床的两半都能掉落床,但前提是必须使用精准采集工具进行破坏。由于只有被玩家直接破坏的那一半才拥有工具掉落上下文,这确保了始终只掉落一张床且永远不会重复掉落。
兼容性
- Minecraft 1.21 至 26.2(数据包格式 48 至 107),针对 1.21.11 开发。
- 仅影响16种原版床。由模组添加的床保留其各自的掉落规则。
- 任何其他替换原版床掉落表的数据包或模组都会与此发生冲突;最后加载的生效。
- 能够让玩家工具一次性破坏多个方块的模组(如矿脉挖掘等)可能会同时破坏床的两半并掉落两张床。
安装
将 fragilebeds.zip 放入世界的 datapacks 文件夹中,然后运行 /reload 命令或重启世界。
Fragile Beds
Beds are fragile: breaking one destroys it. The only way to get a bed back is to break it with a tool enchanted with Silk Touch.
Now beds aren't something you can just put down, sleep then pick up like a sleeping bag, it becomes something more stationnary. You have to think where you gonna put down our bed, or you're gonna have to craft another one.
Also, now you cannot just steal a bed from a structure like a village. You can borrow one and sleep in it for a night, but if you want to continue your journey, you will have to craft your own beds.
I recommand to install a datapack that prevent sheep from dropping wool when killed, and only drop wool when sheared like this datapack killed-sheep-dont-drop-wool that I've convientely made. With both, it will make the first night more challenging.
Behavior
- Breaking either half of a bed with a Silk Touch tool drops exactly one bed.
- Breaking a bed without Silk Touch drops nothing.
- Explosions (TNT, creepers, beds exploding in the Nether or the End) drop nothing.
- Any tool works as long as it has Silk Touch (pickaxe, axe, shovel, hoe).
How it works
The pack overrides the loot tables of the 16 vanilla beds (minecraft:blocks/<color>_bed). No functions, no tick: zero performance cost.
Vanilla only drops the bed from the head half. When a player breaks the foot, the game removes the head afterwards without any tool in the loot context, so a plain Silk Touch condition would fail half of the time. To avoid that, both halves can drop the bed, but only when broken with Silk Touch. Since only the half broken directly by the player has a tool in its loot context, this always gives exactly one bed and never duplicates it.
Compatibility
- Minecraft 1.21 to 26.2 (data pack formats 48 to 107), developed for 1.21.11.
- Only the 16 vanilla beds are affected. Beds added by mods keep their own drops.
- Any other data pack or mod that replaces the vanilla bed loot tables will conflict with this one; the last one loaded wins.
- Mods that break several blocks at once with the player's tool (vein mining, etc.) might break both halves with Silk Touch and drop two beds.
Installation
Put fragilebeds.zip in the datapacks folder of your world, then run /reload or restart the world.
评论 0
登录后参与评分
还没有评论,来抢沙发吧