Starter Structure 增加了在世界首次生成时生成特定结构的可能性。它会检查 config 文件夹中的 schematic(蓝图)文件,选择一个并将其放置在出生点。
支持结构方块蓝图(SBS,.nbt 文件)和 WorldEdit 蓝图(WES,.schem/.schematic 文件)。两者均可包含实体数据,用于直接生成已保存的实体。对于 WES,请使用 //copy -e 来包含它们。也可以在蓝图中放置告示牌来决定实体应在何处生成。两者均支持自定义 NBT 数据。模组运行无需安装 WorldEdit!WorldEdit 仅用于生成蓝图文件,之后您可以将其移除。蓝图也可以在其他实例中创建,并将文件复制到整合包中。
还提供了各种配置选项,用于指定玩家应生成的位置(以及结构生成的位置)以及结构的放置方式。默认情况下,结构会贴合其下方的地形,下方的空隙会被填充。悬浮在空中的树木部分也会被移除。结构还可以在另一个维度中生成,即第一位玩家到达的地方,这可以在配置中进行设置。
所有可用的配置选项:
显示剧透
shouldGenerateStructure 默认值 true
是否生成位于 './config/serilum/starterstructure/schematics/...' 中的结构图。
structureDimension 默认值 "minecraft:overworld"
结构生成的维度。在末地或下界中,它会在玩家首次到达时生成。
forceExactSpawn 默认值 true
通常玩家出生点是在一个随机区域内。启用此选项后,玩家将在设定的坐标处始终出生(在最近的空气块处)。
ignoreTreesDuringStructurePlacement 默认值 true
防止结构放置在树木顶部。放置期间将忽略任何树叶和原木方块。
fitStructureToTerrain 默认值 true
将结构放置在其下方的平均地面高度处,并用地面方块填充其下方的空隙。
generationIgnoreJigsawAndStructureBlocks 默认值 true
某些结构图文件可能包含拼图方块或结构方块。这些方块在默认情况下在结构生成过程中会被忽略。
generateJigsawStructures 默认值 false
结构图中的拼图方块是否生成其模板池中的组件,类似于拼图方块的“生成”按钮。
jigsawGenerationLevels 默认值 6,最小值 0,最大值 20
从每个拼图方块生成的拼图组件层级数。当 enable generateJigsawStructures 时使用。
protectStructureBlocks 默认值 true
是否保护生成的结构中的方块免受破坏/恶意破坏。
protectSpawnedEntities 默认值 true
是否保护在生成的结构中刷新的实体免受伤害。
playersInCreativeModeIgnoreProtection 默认值 true
如果启用,处于创造模式的玩家将能够破坏和放置结构方块。
playersInCreativeModeIgnoreEntityProtection 默认值 false
如果启用,处于创造模式的玩家将能够伤害在结构中刷新的受保护实体。
preventSpawnedEntityMovement 默认值 false
如果阻止生成的结构中刷新的实体离开其出生方块移动。默认禁用。
spawnNonSignEntitiesFromSupportedSchematics 默认值 true
是否生成保存在结构图文件(结构方块 .nbt 或 WorldEdit .schem)中的实体。这些是不通过告示牌创建的实体。
shouldUseStructurePosition 默认值 false
是否使用 generatedStructurePosition 配置选项。
generatedStructureXPosition 默认值 0,最小值 -10000000,最大值 10000000
生成结构的精确 X 位置。当 shouldUseStructurePosition 启用时使用。
generatedStructureYPosition 默认值 0,最小值 -1000,最大值 1000
生成结构的精确 Y 位置。当 shouldUseStructurePosition 启用时使用。
generatedStructureZPosition 默认值 0,最小值 -10000000,最大值 10000000
生成结构的精确 Z 位置。当 shouldUseStructurePosition 启用时使用。
shouldUseStructureOffset 默认值 false
是否使用 generatedStructureOffset 配置选项。
generatedStructureXOffset 默认值 0,最小值 -1000,最大值 1000
生成结构的 X 偏移量。当 shouldUseStructureOffset 启用时使用。
generatedStructureYOffset 默认值 0,最小值 -1000,最大值 1000
生成结构的 Y 偏移量。例如,如果你注意到建筑物总是高出一个方块,可以将其设置为 -1。当 shouldUseStructureOffset 启用时使用。
generatedStructureZOffset 默认值 0,最小值 -1000,最大值 1000
生成结构的 Z 偏移量。当 shouldUseStructureOffset 启用时使用。
shouldUseSpawnCoordinates 默认值 false
是否使用 spawnCoordinate 配置选项。
spawnXCoordinate 默认值 0,最小值 -10000000,最大值 10000000
当 shouldUseSpawnCoordinates 启用时的出生点新 X 坐标。
spawnYCoordinate 默认值 0,最小值 -1000,最大值 1000
当 shouldUseSpawnCoordinates 启用时的出生点新 Y 坐标。
spawnZCoordinate 默认值 0,最小值 -10000000,最大值 10000000
当 shouldUseSpawnCoordinates 启用时的出生点新 Z 坐标。
shouldUseSpawnCoordOffsets 默认值 false
是否使用 spawnCoordOffset 配置选项。
spawnXCoordOffset 默认值 0,最小值 -1000,最大值 1000
当 shouldUseSpawnCoordOffsets 启用时的出生点 X 坐标偏移量。
spawnYCoordOffset 默认值 0,最小值 -1000,最大值 1000
当 shouldUseSpawnCoordOffsets 启用时的出生点 Y 坐标偏移量。
spawnZCoordOffset 默认值 0,最小值 -1000,最大值 1000
当 shouldUseSpawnCoordOffsets 启用时的出生点 Z 坐标偏移量。
配置文件夹:
蓝图可以放置在 ./config/serilum/starterstructure/schematics 内。
蓝图可以是 .nbt、.schem 和 .schematic 类型。
可以包含多个,模组会随机选择一个。
自定义告示牌数据位于 ./config/serilum/starterstructure/signdata
允许通过 NBT 数据创建实体。你基本上是将 /summon 命令放入 signdata 文件夹中的 .txt 文件里。
在结构内的蓝图上放置一个指向该文件的告示牌,它会在结构生成时创建一个实体。
更多信息请见下文。
蓝图:
蓝图可以通过结构方块(.nbt 文件)或 WorldEdit(.schem / .schematic 文件)创建。你可以选择你喜欢的方法!我推荐使用 WorldEdit,因为它还允许你指定玩家的出生点。你只需要 WorldEdit 来创建蓝图。之后你可以移除它,因为Starter Structure 在世界创建时生成出生结构不需要 WorldEdit。
如何生成 WorldEdit 蓝图:
Show Spoiler
使用 //wand 命令获取用于设置蓝图角落的工具。
左键点击第一个方块作为蓝图的底角位置。
右键点击对角线的第二个方块,确保之后删除临时方块。
你也可以使用 //pos2 命令。
站在你希望结构生成时玩家出生的位置,并输入 //copy 命令。
现在执行 //schematic save <schematic-name> 以生成蓝图文件。
文件将保存在 ./config/worldedit/schematics
将其复制到 Starter Structure 的配置文件夹 ./config/serilum/starterstructure/schematics
每当生成新世界时,Starter Structure 现在都会生成复制的结构!
如果 ./config/serilum/starterstructure/schematics 中有多个蓝图,将随机选择一个。
告示牌:
在生成的结构中,可以使用告示牌轻松生成实体:
Show Spoiler
一个简单的实体:
--------------------------
[Entity]
modid:entityid
--------------------------
换行符会被忽略。这三个告示牌完全相同,会在结构生成时在原地生成一个村民。
自定义 NBT 数据告示牌:
如果你想生成一个不那么简单的实体,例如带有自定义名称或自定义物品的实体,你可以引用包含该数据的文件。
以 [NBT] 行开头。然后在下面指定文件名。这可以是任何名称。
--------------------------
[NBT]
nbtfilename
--------------------------
这将在 ./config/serilum/starterstructure/signdata/igloo_entity.txt 中查找实体数据
此文件包含以下 NBT 数据:
并在结构生成时生成一个带有物品和状态效果的命名僵尸实体:
实体 NBT 数据基本上就是一个 /summon 命令。有许多网站可以帮助你生成它。
例如,你可以使用网站 MCStacker 通过其 /summon 页面生成实体。
可以将整个生成的 /summon 命令放入 ./config/serilum/starterstructure/signdata/file.txt 中:
Starter Structure 会移除 /summon 部分,并生成带有 ID 的正确 NBT 数据。
将其转换为:
只要下载源保持在 CurseForge 或 Modrinth 生态内,您可以自由地将此模组用于任何整合包。
Serilum.com 提供了所有可用模组的概览及更多信息。
如需反馈问题、提出想法或建议,请访问 Github 仓库。谢谢!
Starter Structure adds the possibility to generate a specific structure when a world is first being generated. It looks in the config folder for schematic files, picks one, and places it at the spawn point.
Both structure block schematics (SBS, .nbt file) and WorldEdit schematics (WES, .schem/.schematic file) are supported. Both can contain entity data, which is used to spawn saved entities directly. For WES, use //copy -e to include them. Signs can also be placed in the schematic to decide where entities should spawn. For both, custom NBT data is supported. WorldEdit does not have to be installed for the mod to work! It would only be used to generate the schematic file, after which you can remove it. Schematics can also be created in another instance, and the file copied to a modpack.
There are also various config options available to specify where the player should spawn (and where the structure should generate) and how the structure should be placed. By default the structure is fitted to the terrain below it, with the gaps underneath filled up. Tree parts it leaves floating are removed as well. The structure can also generate in another dimension, where the first player arrives, which can be set in the config.
All available config options:
Show Spoiler
shouldGenerateStructure default true
Whether a schematic that's located in './config/serilum/starterstructure/schematics/...' should be generated.
structureDimension default "minecraft:overworld"
The dimension the structure generates in. Outside the overworld, it generates where the first player arrives.
forceExactSpawn default true
Usually player spawn points are in a randomized area. With this enabled, players will always spawn at the set coordinates (at the nearest air pocket).
ignoreTreesDuringStructurePlacement default true
Prevents structures from being placed on top of trees. Any leaf and log blocks will be ignored during placement.
fitStructureToTerrain default true
Places the structure at the average ground height below it, and fills gaps underneath it with the ground block.
generationIgnoreJigsawAndStructureBlocks default true
Some schematic files might contain jigsaw or structure blocks. These are by default ignored during structure generation.
generateJigsawStructures default false
Whether jigsaw blocks in the schematic generate the pieces of their template pool, like the jigsaw block's Generate button.
jigsawGenerationLevels default 6, min 0, max 20
How many levels of jigsaw pieces are generated from each jigsaw block. Used when generateJigsawStructures is enabled.
protectStructureBlocks default true
Whether the blocks from the generated structure should be protected from breaking/griefing.
protectSpawnedEntities default true
Whether entities spawned inside the generated structure should be protected from damage.
playersInCreativeModeIgnoreProtection default true
If enabled, players that are in creative mode will be able to break and place the structure blocks.
playersInCreativeModeIgnoreEntityProtection default false
If enabled, players that are in creative mode will be able to damage protected entities which spawned in structures.
preventSpawnedEntityMovement default false
If spawned entities inside the generated structure should not be allowed to move away from the block they spawned on. Disabled by default.
spawnNonSignEntitiesFromSupportedSchematics default true
If entities saved in the schematic file (structure block .nbt or WorldEdit .schem) should be spawned. These are entities not created with signs.
shouldUseStructurePosition default false
If the generatedStructurePosition config options should be used.
generatedStructureXPosition default 0, min -10000000, max 10000000
The exact x position for the generated structure. Used when shouldUseStructurePosition is enabled.
generatedStructureYPosition default 0, min -1000, max 1000
The exact y position for the generated structure. Used when shouldUseStructurePosition is enabled.
generatedStructureZPosition default 0, min -10000000, max 10000000
The exact z position for the generated structure. Used when shouldUseStructurePosition is enabled.
shouldUseStructureOffset default false
If the generatedStructureOffset config options should be used.
generatedStructureXOffset default 0, min -1000, max 1000
The x offset for the generated structure. Used when shouldUseStructureOffset is enabled.
generatedStructureYOffset default 0, min -1000, max 1000
The y offset for the generated structure. Can for example be set to -1 if you notice a building always spawns one block too high. Used when shouldUseStructureOffset is enabled.
generatedStructureZOffset default 0, min -1000, max 1000
The z offset for the generated structure. Used when shouldUseStructureOffset is enabled.
shouldUseSpawnCoordinates default false
If the spawnCoordinate config options should be used.
spawnXCoordinate default 0, min -10000000, max 10000000
The new X coordinate of the spawn when shouldUseSpawnCoordinates is enabled.
spawnYCoordinate default 0, min -1000, max 1000
The new Y coordinate of the spawn when shouldUseSpawnCoordinates is enabled.
spawnZCoordinate default 0, min -10000000, max 10000000
The new Z coordinate of the spawn when shouldUseSpawnCoordinates is enabled.
shouldUseSpawnCoordOffsets default false
If the spawnCoordOffset config options should be used.
spawnXCoordOffset default 0, min -1000, max 1000
The X coordinate offset of the spawn when shouldUseSpawnCoordOffsets is enabled.
spawnYCoordOffset default 0, min -1000, max 1000
The Y coordinate offset of the spawn when shouldUseSpawnCoordOffsets is enabled.
spawnZCoordOffset default 0, min -1000, max 1000
The Z coordinate offset of the spawn when shouldUseSpawnCoordOffsets is enabled.
Config Folders:
Schematics can be placed inside ./config/serilum/starterstructure/schematics.
Schematics can be the types .nbt, .schem and .schematic.
Can contain multiple, the mod picks one at random.
Custom sign data is inside ./config/serilum/starterstructure/signdata
Allows the creation of entities via NBT data. You basically put the /summon command inside a .txt file in the signdata folder.
Place a sign within the schematic with a reference to that file, and it creates an entity on structure generation.
See below for more information.
Schematics:
Schematics can be created via structure blocks (.nbt files) or via WorldEdit (.schem / .schematic files). You can choose the method you prefer! I recommend using WorldEdit, as it also allows you to specify where a player should spawn. You only need WorldEdit to create the schematic. After that you can remove it, as Starter Structure does not need WorldEdit to generate the spawn structure on world creation.
How-to generate a WorldEdit schematic:
Show Spoiler
Use the //wand command to receive the tool to set the corners of the schematic.
Left-Click the first block where you want the bottom corner to be.
Right-Click the second block of the opposite corner, make sure to break the temporary blocks after.
You can also use //pos2 command.
Stand where you want to spawn when the structure generates, and enter the //copy command.
Now do //schematic save <schematic-name> to generate the schematic file.
The file will be saved in ./config/worldedit/schematics
Copy it over to Starter Structure's config folder ./config/serilum/starterstructure/schematics
Starter Structure will now generate the copied structure whenever a new world is generated!
If multiple schematics are inside ./config/serilum/starterstructure/schematics, one will be chosen at random.
Signs:
Inside the generated structure, entities can easily be spawned with signs:
Show Spoiler
A simple entity:
--------------------------
[Entity]
modid:entityid
--------------------------
New lines are ignored. These 3 signs are all the same, and will spawn a villager in its place on structure generation.
Custom NBT data sign:
If you'd like to spawn an entity that's less simple, for example with a custom name or custom items, you can make a reference to a file containing that data.
Start with the [NBT] line. Then specify the file name below that. This can be anything.
--------------------------
[NBT]
nbtfilename
--------------------------
This will look for entity data inside ./config/serilum/starterstructure/signdata/igloo_entity.txt
This file contains the following NBT data:
And will spawn a named zombie entity with items and a status effect when the structure generates:
The entity NBT data is basically just a /summon command. There are various websites available to help you generate it.
You can for example use the website MCStacker to generate an entity, via their /summon page.
You can put the entire generated /summon command inside the ./config/serilum/starterstructure/signdata/file.txt:
Starter Structure will remove the /summon part and generate the correct NBT data with ID.
Converting it to:
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Starter Structure
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复了偶尔在结构顶部或角落生成的问题。
- 修复了藤蔓等方块在结构生成时脱落的问题。
- 结构现在能更好地适应地形,并填充下方的空隙(可配置)。
- 移除了结构生成后悬空未连接的树枝部分。
- 新增了 'structureDimension'、'generateJigsawStructures' 和 'jigsawGenerationLevels' 配置选项。
- 通过 Collective 改进了蓝图支持。
包含之前版本详细信息的完整更新日志可在我的网站上查看:
>
- 将最新更改反向移植至 Minecraft 版本 26.1.2,该版本现已重新获得活跃支持。
包含先前版本详细信息的完整更新日志请访问我的网站:
>
- 修复了每次加载世界时结构都会重新生成的问题。
- 修复了原本应放置一个奖励箱却放置了两个的问题。
- 修复了结构有时会在下界顶端生成的问题。
- 修复了在启用 'forceExactSpawn' 时,重生锚每次重生消耗两次充能的问题。
- 修复了当 /summon 命令没有模组 ID(例如 '/summon villager')时,带有 [NBT] 的告示牌无法生成对应实体的问题。
- 修复了在结构生成过程中,Supplementaries 的彩旗等方块丢失数据并导致崩溃的问题。
- 修复了无法读取方案文件时的错误。
- (26.3) 修复了使用 26.3 版本保存的结构块 .nbt 文件无法生成的问题。
包含先前版本详细信息的完整更新日志可在我的网站上找到:
>
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
对 Minecraft 的沙漠神殿进行了全面重新设计!

评论 0
登录后参与评分
还没有评论,来抢沙发吧