⚠ 自 MC 1.21.5 起,画作物品不再能持有无效变体。在使用模组 Invariable Paintings 时,无效的画作在被破坏时将不再掉落自身。
No Kebab
概述
在原版 Minecraft 中,当画作的 ID 不匹配任何现有变体时,它会被自动替换为另一个。不问缘由。如果你折腾数据驱动的画作,数据包中的任何错误都可能导致已放置的画作在加载世界时丢失。
No-Kebab 作为对此的防护措施。无效的画作仍会回退到另一种变体,但它们会记住其 NBT 数据中原先存在的变体 ID,并在保存游戏时保留该 ID。下次你用正确的变体集加载该世界时,这些画作将恢复其原始外观。
趣闻:在 MC 1.21 之前,无效的画作总是会被还原为 minecraft:kebab 变体,这也是模组名称的由来。
环境
核心功能完全在服务器端运行。
仅当启用 Missingno Display 功能时,才需要客户端支持,此时需要_所有_客户端都安装。
Missingno Display
这会改变无效画作的外观,使其更加显眼,并显示其 ID。
默认情况下,它在专用服务器上禁用,而在集成服务器(单人游戏和局域网)上启用。
这可以在配置文件 nokebab.properties 中切换,选项名为 customTracker。需要完全重启才能生效。
迁移
命令 /nokebab migrate 可用于批量更改现有画作的变体。它需要权限等级 3(管理员)。
这只会更改当前加载区块中已放置画作的变体。 以物品形式存在或位于未加载区块中的画作不会受到影响。
如果迁移导致某幅画作无法再贴合墙壁,则该画作将被跳过并显示错误消息。
摘要
/nokebab migrate <mode> <source> <destination>
<source> 是要迁移的画作变体。<destination>` 是它们将被替换成的变体。具体细节取决于模式。
<mode> 可以是:
literal,寻找与源完全匹配的画作,并将它们全部更改为同一变体。regex,允许使用正则表达式,因此<source>可以匹配多个变体,而<destination>可以使用替换变量。
例如,更改多个画作命名空间的命令为:
/nokebab migrate regex "oldspace:(.*)" "newspace:$1"
⚠ As of MC 1.21.5, painting items can no longer hold invalid variants. When using the mod Invariable Paintings, invalid paintings will no longer drop themselves when broken.
No Kebab
Overview
In vanilla Minecraft, when a painting is loaded with an ID that doesn't match any existing variant, it will be automatically replaced with another one. No questions asked. If you mess around with data-driven paintings, any error in your datapacks may cause already-placed paintings to be lost upon loading a world.
No-Kebab serves as a safeguard against that. Invalid paintings will still fall back to a different variant, but they will remember the variant ID that was originally present in their NBT data, and keep that ID when saving the game. The next time you load that world with the correct set of variants installed, those painting will be restored to their original appearance.
Trivia: Prior to MC 1.21, invalid paintings would invariably be reverted to the minecraft:kebab variant, hence the mod's name.
Environment
Core functionalities are fully server-side.
Client-side is required only if the Missingno Display feature is enabled, in which case it will be required an all clients.
Missingno Display
This changes the appearence of invalid paintings, making them stand out, and revealing their ID.
By default, it will be disabled on dedicated server, and enabled on integrated servers (singleplayer and LAN).
This can be toggled in the config file nokebab.properties, with the option called customTracker. This requires a full restart to take effect.
Migration
The command /nokebab migrate can be used to change the variant of existing paintings in bulk. It requires a permisssion level of 3 (Admin).
This will only change the variant of placed paintings in currently loaded chunks Paintings in item form or in unloaded chunks will not be affected.
If a migration would result in a painting no longer being able to fit its wall, this painting will be skipped with an error message.
Synopsis
/nokebab migrate <mode> <source> <destination>
<source> is the variant of paintings that should be migrated. <destination> is the variant they will be replaced with. Their specifics vary depending on the mode.
<mode> can be either:
literal, will seek paintings that exactly match the source, and change them all to the same variant.regex, allows the use of Regular Expressions, so<source>can match multiple variants, and<destination>can use substitution variables.
For example, the command to change the namespace of multiple paintings would be:
/nokebab migrate regex "oldspace:(.*)" "newspace:$1"
下载 No Kebab
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
下载 No Kebab
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Kebab
- 移植至 MC 1.21.5,标记之前的分支为不兼容。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧