本说明适用于该模组的 v3/v4 版本。v1/v2 版本的说明请参见此处。
Invariable Paintings
将每种画作变体变为独立的物品。当画作被破坏时,它会掉落锁定特定变体的物品,而非空白画作。游戏内未添加新的物品类型,锁定变体的物品与原版创造模式菜单中提供的物品工作方式相同。
空画作不再可以放置,但已填充的画作可以在各处找到。
环境要求
核心功能完全在服务器端运行。
客户端安装为严格可选,仅包含微小的提示文本更改。
原版客户端可以使用 资源包 来替代模组。加入服务器但未加载该资源包的客户端将看到原版画作纹理,而非自定义纹理。
服务器端需要 Patched 才能将画作添加到战利品表中。它在技术上不是必需的,但如果没有它,画作只能通过交易获得。
获取画作
交易
已填充的画作可以向 大师牧羊人 和 流浪商人 购买。牧羊人不再出售无变体的画作,但在定价时会要求提供其中一种变体。
元素类画作是流浪商人的专属商品,而一些随机挑选的其他画作则是村民的专属商品。 模组画作默认对两者均可用。
探索拾取
此功能需要 Patched。
已填充的画作可以在许多自然生成的箱子、可疑的沙块以及钓鱼活动中找到。 某些画作仅限于特定地点;例如,凋灵画作只能在下界找到。 模组画作默认在大多数地点均可获得。
战利品表作为内置的数据包提供,可以被禁用。如果没有该数据包,所有仅限地点获得的画作将改为通过交易获得。
模组画作
默认情况下,模组画作将成为“通用”池的一部分,并从所有来源中获得。
在数据包中,您可以通过将它们添加到 内置独占标签 中,使画作仅限于特定来源。
您还可以在全局 invarpaint:exclusive 标签中添加新标签来创建自定义独占集合。在战利品表和交易中,使用 invarpaint:lock_variant_randomly 战利品函数从给定池中随机化画作的变体:
{
"function": "invarpaint:lock_variant_randomly",
"variants": [
// 包含来自通用池的画作,注意前面的感叹号 !
"!#invarpaint:exclusive",
// 包含来自特定标签的画作。
"#invarpaint:exclusive/villager",
// 也可以包含任意画作变体
"minecraft:wither"
"minecraft:endboss"
]
}
库存纹理
提供的纹理包仅包含原版画作的纹理;模组画作将回退到通用纹理。
具有变体 CIT 的模组画作
要添加自定义纹理,我建议使用 Variants-CIT。所需的配置文件已包含在 Invarpaint 自己的包中,因此您无需进行任何设置。在纹理包中,只需将您的纹理添加到与画作变体 ID 匹配的路径即可:
/assets/<namespace>/textures/item/painting/<variant>.png
原版客户端上的模组画作
有两种方法。
在这两种情况下,您都需要为每种画作变体创建自定义 JSON 模型。
如果您熟悉 Bash,您可以借用用于生成 Invarpaint 自身包的 脚本,它涵盖了这两种用例。
最简单的方法是获取提供的包,并编辑 画作模型,使其也引用您画作的模型。
或者,您可以配置服务器以设置画作的 item_model 组件,这样,您可以在不同的包中使用单独的模型。反过来,没有纹理包就加入您服务器的客户端将会看到缺失的模型。
使用此命令更改配置: /invarpaint config server.item_model true
画作物品的物品模型将被设置为 <namespace>:painting/<path>。现有画作需要放置并破坏才能更新。
其他更改
服务器端
- 创造模式玩家按住 Ctrl 可以选择画作的变体。
- 在狭窄空间中放置锁定变体的画作更加宽容。(原版需要精确瞄准特定的方块。)当尝试在过小的空间中放置画作时,会显示警告。
- 修复了 MC-257133,即放置画作失败会导致库存不同步,导致客户端认为它已消耗了该物品。
客户端
- 略微重做了画作物品的提示文本。画作标题出现在物品名称中,作者信息与大小显示在同一行。
相关模组
Collector's Stockbook
将您的画作收藏整齐地收纳在一个堆叠中。
No Kebab
防止意外卸载的自定义画作从世界中移除。
This readme is for v3/v4 of the mod. Find the readme for v1/v2 here.
Invariable Paintings
Turns each painting variant into its own item. When a painting is broken, it will drop the variant-locked item instead of the blank one. No new item type was added to the game, variant-locked items work the same as the ones available in the vanilla creative menu.
Empty paintings can no longer be placed, but filled ones can be found in various places.
Environment
Core functionalities are fully server-side.
Client-side installation is strictly optional, containing only minor tooltip changes.
Vanilla clients can use a resource pack instead of the mod. Clients that join without the pack will see the vanilla painting textures instead of the custom ones.
Patched is needed on the server-side in order to add paintings to loot tables. It is technically optional, but without it, paintings will only be available via trading.
Obtaining paintings
Trading
Filled paintings can be bought from Master Shepherds and Wandering Traders. Shepherds no longer sell variantless paintings, but will now require one in their pricing.
The elemental paintings are exclusive to the Wandering Trader, and a few haphazardly chosen others are exclusive to the villagers. Modded paintings will be available to both by default.
Looting
This feature requires Patched.
Filled paintings can be found inside many naturally generated chests, suspicious soils, and while fishing. Some paintings are exclusive to certain location; for example, the Wither painting can only be found in the nether. Modded paintings will be available in most locations by default.
The loot tables are provided as a built-in datapack which can be disabled. Without the datapack, all location-exclusive paintings will instead be available via trading.
Modded-paintings
By default, modded paintings will be part of a "common" pool and be available from all sources.
In datapacks, you can make paintings exclusive to certain sources by adding them to the builtin exclusive tags.
You can also create custom exclusive sets by adding new tags to the global invarpaint:exclusive tag. In loot-tables and trades, use the invarpaint:lock_variant_randomly loot-function to randomize a painting's variant from a given pool:
{
"function": "invarpaint:lock_variant_randomly",
"variants": [
// Include paintings from the common pool, notice the leading exclamation mark !
"!#invarpaint:exclusive",
// Include paintings from a specific tag.
"#invarpaint:exclusive/villager",
// Can also include arbitrary painting variants
"minecraft:wither"
"minecraft:endboss"
]
}
Inventory Textures
The provided texture-pack only includes textures for vanilla paintings; modded paintings will fallback to a generic texture.
Modded paintings with Variant-CITs
To add custom textures, I recommend using Variants-CIT. The required configuration file is already included in Invarpaint's own pack, so no set-up is needed from you. In a texturepack, simply add your textures to pathes that match the painting's variant ID:
/assets/<namespace>/textures/item/painting/<variant>.png
Modded painting on Vanilla clients
There are two ways to go about it.
In both cases you'll need to create custom JSON models for every painting variant.
If you're familiar with Bash, you can borrow the scripts used to generate Invarpaint's own pack, which covers both use cases.
The simplest way is to take the provided pack, and edit the painting model so that it also references the models for your paintings.
Alternatively you can configure the server so that it sets the paintings' item_model component, that way, you can have separate models in separate packs. On the flipside, clients that joins your server without the texture pack will see missing models.
Use this command to change the config : /invarpaint config server.item_model true
Painting items will have their item model set to <namespace>:painting/<path>. Existing paintings will need to be placed and broken in order to be updated.
Miscellaneous changes
Server-side
- Creative players can pick a painting's variant by holding Ctrl.
- Placement of variant-locked paintings in tight spaces is more forgiving. (Vanilla would require targeting one specific block.) Shows a warning when trying to place a painting in a space that is too small.
- Fixes MC-257133, whereby failing to place a painting causes an inventory desync, causing the client to believe it has consummed the item.
Client-side
- Slightly reworked the tooltip for painting items. The painting title appears in the item name, and the author appears on the same line as the size.
Related mods
Collector's Stockbook
Keep your painting collection neatly packed inside a single stack.
No Kebab
Prevents accidentally uninstalled custom paintings from being removed from the world.
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Invariable Paintings
下载 Invariable Paintings
下载 Invariable Paintings
- 移植至 MC 1.21.11 和 MC 26,标记之前的分支为不兼容。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
基于 GTCEu 1.12.2 的现代 GregTech
评论 0
登录后参与评分
还没有评论,来抢沙发吧