Structure Spawn Loader
A forge mod that allows defining or adding to structures' mob spawn lists via JSON
介绍
Structure Spawn Loader allows datapacks and mods to use json files to add mob spawn entries to structures’ spawn lists.
If a structure has at least one mob spawn entry (either defined by vanilla minecraft, by a mod that adds a structure, or via this utility mod or a similar mod that adds mob spawn entries to structures) for a given category of mob (monster, creature, ambient, etc), then mobs spawning for that category within the bounds of that structure will use the structure’s spawn list instead of the local biome’s spawn list.
JSON Rules and Format
- Structure spawn entry jsons must be places in
data/namespace/structure_spawn_loader/path.json. - Structure spawn entry jsons should have a
"structure"and"spawner"field as shown in the example json below. - Structure spawn entry jsons that lack either of these fields will be ignored, allowing a datapack to disable another mod or datapack’s spawn entries by overriding them with an empty
{}json. - The recommended naming convention for namespaces and paths is for
namespaceto be the id of the mod or datapack that adds the entry json, and forpathto bestructuremod/structure/entitymod/entityfor entries that add an entry forentitymod:entityinstructuremod:structure.
* Jsons added by multiple mods or datapacks will override each other in datapack order if they share the same namespace and path.
Example JSON
data/examplemod/structure_spawn_loader/minecraft/village/minecraft/evoker.json

-
"structure": The namespaced ID of the structure type to add the spawn entry to -
"spawner": A spawn entry object: -
"type": The namespaced ID of the entity type to spawn in this structure -
"weight": The relative weight of this spawn entry, compared to other spawn entries. Common monsters have a spawn weight of 100. -
"minCount"and"maxCount"affect the size of how many mobs in a group will be attempted to be spawned at once. Most mobs use 4-4, endermen use 1-4, witches and zombie villagers use 1-1.
Mod Support
Mods can use this mod in their development environment using Cursemaven.
https://www.cursemaven.com/
A data provider for spawn entry jsons is provided to assist mods with datagenerating jsons. Refer to the examplemod in the github source repository for an example of this.
常见问题
Structure Spawn Loader 支持哪些 Minecraft 版本?
Structure Spawn Loader 支持 Minecraft Java 版 1.18.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Structure Spawn Loader 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Commoble 的其他作品
查看全部 →More Red
红石线、逻辑门和物品管道!
Hyperbox
一个 Forge 模组,添加了一个内部空间比外部更大的箱子。
Jumbo Furnace
一个 Forge 模组,添加了可以同时冶炼多个物品的多方块熔炉。
Bag of Yurting
添加一个可升级的背包,能存放并卸载你最喜欢的蒙古包
评论
登录后评论和评分