Simpleretrogen 是一个实用模组,允许具有世界生成内容的模组将内容重新注入到已生成的区块中,并追踪哪些区块已被重新生成。
这使你可以向你的世界中添加一个新模组,并将其内容重新生成到已有的区块中。
它与大多数模组用于向世界生成中注入简单内容的 FML 基于 IWorldGenerator 的系统兼容。
命令:
目前有一个辅助命令。
配置:
要配置此模组,你需要找出哪些类实现了你希望重新生成的模组中的 IWorldGenerator 接口。
例如,slimeknights.tconstruct.world.worldgen.SlimeIslandGenerator 是 Tinkers Construct 中 slime islands 的世界生成器。
配置文件在 1.9 版本中进行了重构。你可以在文件中设置多个“标记(mark)”,每个标记包含自己的用于重新生成的类。你可以通过将它们添加到 “markerList” 列表中来激活或停用各个部分。
# Configuration file
##########################################################################################################
# CPWRGMARK
#--------------------------------------------------------------------------------------------------------#
# Marker definition
# You can create as many of these as you wish
# Activate by adding to active list
##########################################################################################################
CPWRGMARK {
# World Generator classes for marker
S:worldGens <
slimeknights.tconstruct.world.worldgen.SlimeIslandGenerator
>
}
general {
# Active markers
S:markerList <
CPWRGMARK
>
# Maximum number of retrogens to run in a single tick
I:maxPerTick=100
}
上面的示例会在 slime islands 尚未重新生成时强制进行重新生成。标记值允许更改应用于任何重新生成区块的标记,因此更改该值会强制再次运行重新生成。MaxPerTick 控制每个刻钟内将重新生成多少个区块,以确保重新生成的开销不会导致服务器出现不可接受的延迟。
Simpleretrogen is a utility mod that allows mods with world generation to perform re-injection of their content into existing generated chunks, and tracks which ones have been retrogenerated.
This allows you to add a new mod to your world and have it's content retrogenerated into existing chunks.
It works with the IWorldGenerator based system from FML used by most mods to inject simple content into world generation.
Commands:
There is one helper command at present.
Configuration:
To configure this mod you need to figure out which classes implement IWorldGenerator from the mod(s) you wish to regenerate.
As an example, slimeknights.tconstruct.world.worldgen.SlimeIslandGenerator is the worldgenerator for slime islands in Tinkers Construct.
The configuration file has been restructured for 1.9. You can have more than one "mark" in the file, each containing its own classes for retrogen. You can activate and deactivate sections by adding them to the "markerList" list.
# Configuration file
##########################################################################################################
# CPWRGMARK
#--------------------------------------------------------------------------------------------------------#
# Marker definition
# You can create as many of these as you wish
# Activate by adding to active list
##########################################################################################################
CPWRGMARK {
# World Generator classes for marker
S:worldGens <
slimeknights.tconstruct.world.worldgen.SlimeIslandGenerator
>
}
general {
# Active markers
S:markerList <
CPWRGMARK
>
# Maximum number of retrogens to run in a single tick
I:maxPerTick=100
}
The example above will force slime islands to regenerate if they haven't been. The marker value allows changing the marker, which is applied to any regenerated chunks, so changing the value will force the regenerations to run again. MaxPerTick controls how many chunks will be regenerated each tick, to ensure that the cost of regeneration doesn't cause an unacceptable slowdown to your server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧