一个用于在原版 JSON 文件中提供更多操作杠杆的库。
此处所有内容仅在服务器端需要,客户端无需使用,因此你可以放心基于此构建你的数据包!
当前功能:
- 一种新的方块谓词
exclusions_lib:overlaps_structure: 该谓词将接受一个方块位置(可通过可选的offset字段进行调整,与大多数其他谓词类似),以及可选的structures和/或range参数,并检查该位置是否与某个结构重叠。如果提供structures字段,则仅检查指定的结构;如果提供range值(最大为 32),则会检查该位置周围的区域。
利用此功能可防止特性生成时与结构重叠!或者你可能希望有一种矿石只生成在特定结构附近?
- 标签排除项(NeoForge 版本中不包含此项,因为 Neo 已内置此功能):
本质上是标签的黑白名单字段。想要创建一个包含
#minecraft:small_flowers中所有内容的标签,但排除凋灵玫瑰呢?同时仍希望与其他添加新花朵的模组保持兼容?只需将凋灵玫瑰的 "excluded" 字段设置为 true,即可创建出一个“普通花朵”标签!此功能非常强大,允许你执行多种操作,例如从你自己的标签中移除其他模组的边缘情况物品,同时仍保留其在你所引用公共标签中的条目,甚至可以直接从其他模组(或原版)的标签中移除条目!
示例用法,创建一个包含 #minecraft:small_flowers 中所有内容,但排除凋灵玫瑰以及其他几个物品的标签:
"values": [
"#minecraft:small_flowers",
{
"id": "minecraft:wither_rose",
"excluded": true
},
"minecraft:apple",
"minecraft:waxed_exposed_cut_copper_stairs"
]
}```
A library for giving you more levers to use in vanilla json files.
Everything here is only needed on the server, and not the client, so feel free to build your datapacks based off of this!
Current Features:
-A new block predicate, exclusions_lib:overlaps_structure:
This predicate will take a block position (adjusted by an optional offset field, like most other predicates), and optionally a structures and/or range, and check whether it would overlap a structure. With a structures field, it only checks for certain structures, and with a value for a range (max 32), it will instead check an area around the position.
Use this to stop features from being placed overlapping structures! Or maybe you'd want an ore that only generates near a certain structure?
-Tag Exclusions (NOT IN NEOFORGE VERSION AS NEO ALREADY HAS THESE BUILT IN):
Basically a blacklist field for tags. Want to make a tag that contains everything in #minecraft:small_flowers, except for wither roses? But you still want it to be compatible with every other mod that would add new flowers? Just add wither roses with its "excluded" field set to true, and now you've made a "normal flowers" tag! Is very powerful, allowing you to do all sorts of things, like removing other mod's edge case items from your own tags, while still keeping their item in the common tag you're pulling from, or even straight up removing entries from other mods' tags (or vanilla) yourself!
Example Usage, for a tag that will contain everything in #minecraft:small_flowers, EXCEPT for wither roses, along with a couple other things:
"values": [
"#minecraft:small_flowers",
{
"id": "minecraft:wither_rose",
"excluded": true
},
"minecraft:apple",
"minecraft:waxed_exposed_cut_copper_stairs"
]
}```
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
下载 Exclusions Lib
修复了数月无人报告的崩溃问题
模组现在真正可用
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧