本篇教程由作者设定使用 CC BY-NC-SA 协议。

须知

- 版本1.12.2-V9.3。

- 该教程不涉及世界生成的配置。

- 绝大部分功能都可以在进行游戏时,可以打开O键菜单配置(OP权限)。

- 因个人能力有限,可能会有错误的地方。如果你了解,可以在此回复提醒。

- 配置文件在:.\minecraft\mods\OpenTerrainGenerator\worlds\<dimname>\WorldConfig.ini。

  1. <dimname>是想要设定的默认世界名称。

配置维度传送门

# 配置一个或多个方块作为传送门结构;使用英文逗号(,)分隔。

# 安装有下界传送门修正等模组时,会影响该传送门。导致只能在下界和主世界进出。

# 如果要使用其他模组的方块,以夸克模组的洞穴水晶为例,应该是:quark:white_crystal:0

# 不带命名空间则默认为“MINECRAFT”

DimensionPortalMaterials: PRISMARINE:2

# 配置传送门颜色。

PortalColor: default

# 允许的选项:

beigeblackbluecrystalbluedarkbluedarkgreendarkredemeraldflamegoldgreengreylightbluelightgreenorangepinkredwhiteyellowdefault
米色黑色蓝色水晶蓝深蓝色深绿色深红色祖母绿火焰金色绿色灰色浅蓝色浅绿色橙色粉色红色白色黄色默认

# 传送门会生成的怪物;默认为僵尸猪人。

PortalMobType: zombie_pigman

# 传送门生成怪物几率;数值越低可能性越高。

PortalMobSpawnChance: 2000

到达高度传送至其他维度

- 必须通过worldconfig中的Dimensions、O键菜单新增维度、/otg dim -c <dimname> 其中一种方法注册维度才可以使用。

- 在游戏中开启作弊按O打开OTG菜单,或在创建OTG世界菜单中配置。在OTG菜单最下面找到并进入“Advanced settings”子菜单。

  1. 维度指定,输入左边维度列表中的名称。比如我想让玩家在Far From Home 6维度到达高度256时进入Void维度,就在里面填入Void(左边的维度列表是什么名字就填什么名字,包括空格)。保持为空则高于指定高度时不会被传送。

  2. 高度指定,如果玩家所处高度大于等于256,则传送到(1)中填写的维度。可以自己定义为其他高度。

  3. 维度指定,功能同(1)。保持为空则低于指定高度时不会被传送。

  4. 高度指定,如果玩家所处高度小于等于0,则传送到(3)中所填写的维度。可以自己定义为其他高度。
    OTG功能配置-第1张图片

OTG功能配置-第2张图片

- 在配置文件中定义,使每次创建世界都默认自带高度传送设定:

# 配置文件位置:.\minecraft\mods\OpenTerrainGenerator\worlds\<dimname>\WorldConfig.ini。

# <dimname>是想要设定的默认世界名称。

# When a player goes below Y 0, they will be teleported to this dimension. The dimension must be registered either via Dimensions in the worldconfig or via the /otg dim -c <dimname> console command.

# 指定一个维度,玩家低于“DimensionBelowHeight”设定的高度时传送至该维度。

DimensionBelow: Far From Home 6


# When a player goes above Y 255, they will be teleported to this dimension. The dimension must be registered either via Dimensions in the worldconfig or via the /otg dim -c <dimname> console command.

# 指定一个维度,玩家高于“DimensionAboveHeight”设定的高度时传送至该维度。

DimensionAbove: 


# The Y coordinate (height) for the DimensionBelow setting.

# 指定一个高度,玩家低于该高度时传送至“DimensionBelow”设定的维度。

DimensionBelowHeight: 0


# The Y coordinate (height) for the DimensionAbove setting.

# 指定一个高度,玩家到达该高度时传送至“DimensionAbove”设定的维度。

DimensionAboveHeight: 256

游戏规则

# 这个维度的游戏规则。这些设置仍在开发中,可能无法全部工作(请在作者的git上提交一个问题),并且可能会在即将发布的版本中更改。

# 命令方块在执行命令时是否应通知管理员

CommandBlockOutput: true

# 当玩家穿着鞘翅时,服务器不检查这个玩家的移动速度。

DisableElytraMovementCheck: false

# 太阳或月亮是否会循环,以及改变月相。

DoDaylightCycle: true

# Whether entities that are not mobs should have drops

# 不是敌对怪物的中立生物是否有掉落物(可能猜测得不对。如果了解的话可以在评论区或私信指出)

DoEntityDrops: true

# 火焰会蔓延并且自然熄灭。

DoFireTick: true

# Whether players should only be able to craft recipes that they've unlocked first

# 玩家是否只能制作解锁的合成配方。(可能猜测得不对。如果了解的话可以在评论区或私信指出)

DoLimitedCrafting: false

# Whether mobs should drop items

# 敌对怪物是否有掉落物。(可能猜测得不对。如果了解的话可以在评论区或私信指出)

DoMobLoot: true

# 怪物是否会自然生成。IsNightWorld需要为false,不然夜晚不会刷怪。

DoMobSpawning: true

# Whether blocks should have drops

# 是否会掉落方块。

DoTileDrops: true

# Whether the weather will change

# 天气是否会改变。

DoWeatherCycle: false

# The function to run every game tick

# 不了解。

GameLoopFunction: true

# Whether the player should keep items in their inventory after death

# 玩家死亡后是否保存物品栏。

KeepInventory: false

# Whether to log admin commands to server log

# 是否将管理命令记录到服务器日志。

LogAdminCommands: true

# Determines the number at which the chain command block acts as a "chain"

# 不了解

MaxCommandChainLength: 65536

# The maximum number of other pushable entities a mob or player can push, before taking 3 doublehearts suffocation damage per half-second. Setting to 0 disables the rule. Damage affects survival-mode or adventure-mode players, and all mobs but bats. Pushable entities include non-spectator-mode players, any mob except bats, as well as boats and minecarts.

# 产生挤压伤害的实体数量。每半秒玩家和接触到的实体受到6点()伤害。

MaxEntityCramming: 24

# Whether creepers, zombies, endermen, ghasts, withers, ender dragons, rabbits, sheep, and villagers should be able to change blocks and whether villagers, zombies, skeletons, and zombie pigmen can pick up items

# 爬虫类,僵尸,末影人,恶魂,凋灵,末影龙,兔子,绵羊和村民是否可以替换方块。以及村民,僵尸,骷髅和僵尸猪人能否捡起物品。

MobGriefing: true

# Whether the player can regenerate health naturally if their hunger is full enough (doesn't affect external healing, such as golden apples, the Regeneration effect, etc.)

# 当玩家有足够的饥饿度时可以自动恢复生命值。不影响其他治疗。

NaturalRegeneration: true

# How often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick. 0 will disable random ticks, higher numbers will increase random ticks

# 请参考随机刻资料。改为0将禁用。

# 改变数值将改变每个区段给予随机刻的方块数。

RandomTickSpeed: 3

# Whether the debug screen shows all or reduced information; and whether the effects of F3+B (entity hitboxes) and F3+G (chunk boundaries) are shown.

# 调试屏幕是否显示全部或减少的信息;以及是否显示F3+B(实体命中框)和F3+G(块边界)的效果。

ReducedDebugInfo: false

# Whether the feedback from commands executed by a player should show up in chat. Also affects the default behavior of whether command blocks store their output text

# 玩家执行命令的反馈是否应该出现在聊天中,还影响命令块是否存储其输出文本的默认行为。

SendCommandFeedback: true

# Whether death messages are put into chat when a player dies. Also affects whether a message is sent to the pet's owner when the pet dies

# 当玩家死亡时,是否将死亡信息发送至聊天中。也会影响宠物死亡时是否向宠物主人发送消息。

ShowDeathMessages: true

# The number of blocks outward from the world spawn coordinates that a player will spawn in when first joining a server or when dying without a spawnpoint.

# 当玩家第一次加入服务器或在没有生成点的情况下死亡时,在世界生成坐标向外生成的区块半径。

SpawnRadius: 1

# Whether players in spectator mode can generate chunks

# 处于旁观者模式的玩家是否可以生成区块。

SpectatorsGenerateChunks: true

世界设置

# 该维度的设置。这些设置仍在开发中,可能无法全部工作(请在git上提交一个问题),并且可能会在即将发布的版本中更改。

# A message to display to the user when they transfer to this dimension.

# 当玩家进入该维度时提示的欢迎信息。

WelcomeMessage:  <string>

# A Message to display to the user when they transfer out of this dimension.

# 当玩家离开该维度时显示的信息

DepartMessage: <string>

# A boolean that tells if a world has a sky or not. Used for calculating weather and skylight. Also affects GetActualHeight(), hasSkyLight = false worlds are seen as 128 height worlds, which affects nether portal placement/detection.

# 判断该维度是否有天空。用于计算天气和天空亮度。影响GetActualHeight(),hasSkyLight = false维度将被视为高度128的世界,这会影响下界传送门的检测。

# 可能不对,不了解可以不改。

HasSkyLight: true

# Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions. Affects: Clock, Compass, sky/cloud rendering, allowed to sleep here, zombie pigmen spawning in portal frames.

# 如果在“主世界”,则返回“true”;如果在下界或末地,则返回“false”。影响:时钟,指南针,天空/云渲染,允许在这里睡觉,僵尸猪人在传送门框架中生成。

IsSurfaceWorld: true

# True for nether, any water that is placed vaporises.

# 使水蒸发,不了解。

DoesWaterVaporize: false

# Returns true if the given X,Z coordinate should show environmental fog. True for Nether.

# 不了解

DoesXZShowFog: false

# Set this to true if you want to use the fog color settings below.

# 如果要使用下方的雾颜色配置,需要将该项设为“true”

UseCustomFogColor: false

FogColorRed: 0.20000000298023224

FogColorGreen: 0.029999999329447746

FogColorBlue: 0.029999999329447746

# Is set to false for End (black sky?)

# 不了解。

IsSkyColored: true

# 雾高度

CloudHeight: 16

# 是否有闪电

CanDoLightning: true

# 是否有雨雪

CanDoRainSnowIce: true

 

# If true then the sky will be locked at midnight with the moon and stars above but the world will be lit as if it were day time. Useful for space dimensions.

# 如果是“true”,那么天空将锁定为午夜,月亮和星星挂在天上,但是世界仍旧是亮度15,就像白天一样。对于空间尺寸很有用。

IsNightWorld: true

 

# A double value representing the Y value relative to the top of the map at which void fog is at its maximum. The default factor of 0.03125 relative to 256, for example, means the void fog will be at its maximum at (256*0.03125), or 8.

# 不了解。

VoidFogYFactor: 0.03125

 

# A value above 0.0, defaults to 0.08. Affects entities jumping and falling. 0.04 would result in half the gravity and falling damage.

# NOTE: Broken for Forge 1.11.2 MP atm, should work fine for SP and 1.12.2 SP & MP.

# 重力因子;影响实体跳跃和坠落,默认值是0.08。

GravityFactor: 0.08

 

# Determine if the cursor on the map should 'spin' when rendered, like it does for the player in the nether.

# 指地图,指南针是否会和在地狱一样乱转。(mlus提供,id:115656)

ShouldMapSpin: true

 

# Used for dimensions, when set to false, no chunks are ever unloaded in the dimension. Used for The End.

# 当设置为false时,不会在维度中卸载区块。用于末地。

CanDropChunk: true

# The dimension's movement factor. Whenever a player or entity changes dimension from world A to world B, their coordinates are multiplied by worldA.provider.getMovementFactor() / worldB.provider.getMovementFactor(). Example: Overworld factor is 1, nether factor is 8. Traveling from overworld to nether multiplies coordinates by 1/8.

# 维度移动系数。会获取两个维度的移动系数,将维度A系数÷维度B系数。比如8 ÷ 1,就会像下界中1格相当于主世界8格。

MovementFactor: 1

# When set to false players cannot break blocks in this world. Defaults to: true

# 设置为“false”时,玩家不能在这个世界破坏方块。

PlayersCanBreakBlocks: true

# When set to false explosions cannot break blocks in this world. Defaults to: true

# 设置为“false”时,爆炸无法破坏方块。

ExplosionsCanBreakBlocks: true

# When set to false players cannot place blocks in this world. Defaults to: true

# 设置为“false”时,玩家不能在这个世界放置方块。

PlayersCanPlaceBlocks: true

自动给予/删除物品

# 注释原文:

# Similar to the /give command, gives players items when they leave a dimension/world.

# Example (single): { "flint_and_steel", "1" }

# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString

# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]

# Use -1 as amount to remove all matching items.

# 译文:

# 例(给予一个打火石):{ "flint_and_steel", "1" }

# 例(给予一把锋利5的钻石剑,里面的0是元数据):{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }

# 例(给予多种物品):[{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]

# 使用-1作为数量时,会删除所有匹配的物品。

 

# 当玩家进入该维度时,给予这个玩家物品。

ItemsToAddOnJoinDimension:

# 当玩家进入该维度时,从这个玩家物品栏删除匹配的物品。

ItemsToRemoveOnJoinDimension:

# 当玩家离开维度时,给予这个玩家物品。

ItemsToAddOnLeaveDimension:

#当玩家离开维度时,从这个玩家物品栏删除匹配的物品。

ItemsToRemoveOnLeaveDimension:

# 当玩家在这个维度中重生时,给予这个玩家物品。

ItemsToAddOnRespawn:

重生规则

# 如果为“true”,则这个传送门永远会传送到重生点。

# 如果为“false”,传送时就像下界传送门一样按照一定规则传送。

TeleportToSpawnOnly: true

# True if the player can respawn in this dimension (true = overworld, false = nether).

# 配置玩家是否可以在该维度重生。

CanRespawnHere: true

# Dimension that players respawn in when dying in this dimension, defaults to 0, only applies when canRespawnHere = false.

# 当玩家在该维度死亡时重生的维度。需要canRespawnHere=false时才适用。

RespawnDimension: 0

# Set this to true to set the server spawn point to SpawnPointX, SpawnPointY, SpawnPointZ

# 设置为true,可以将服务器重生点设为下面的坐标。

SpawnPointSet: false

# Use this with SpawnPointSet: true to set a spawn coordinate.

# 指定一个X坐标。

SpawnPointX: 0

# Use this with SpawnPointSet: true to set a spawn coordinate.

# 指定一个Y坐标。

SpawnPointY: 0

# Use this with SpawnPointSet: true to set a spawn coordinate.

# 指定一个Z坐标。

SpawnPointZ: 0


自然世界

这里是一些不需要怎么介绍的功能。根据需要配置启用或关闭即可。

# 默认情况下,只有一层雪落在最高的块上。

# 将其设置为“true”,使层的数量(1-8)取决于生物系的温度。

# 海拔越高温度越低,所以山上的雪越厚。

# 也会使雪从树叶上落下,树叶可以承载3层,其余的则从树叶上落下。

BetterSnowFall: false

# 默认情况下,在寒冷的生物群落中,湖泊会结冰,但只有暴露在天空中的水才会结冰。

# 将此设置为“true”会导致寒冷生物群落中暴露在天空下的任何湖泊完全冻结。

FullyFreezeLakes: false