首先:本项目最初是将 fireball1725 的 1.7.10 模组 Default World Generator 移植到 1.8.9。旨在辅助我自己及其他人使用整合包中的模组时,创建或使用替代的“世界类型”。
自版本 1.12-2.3 起:

许可协议:
我以 MIT 许可证获得此模组,因此也以相同许可证重新分发它。
这意味着它可以自由用于任何整合包中。不过,如果您将此说明翻译成其他语言,请尽量链接回本页面。
使用方法:
注意:本页面包含 v2.0 及以上版本(运行于 mc1.12+)的使用说明。
有关旧版本的使用方法,请参阅:
* MC 1.9.*、1.10.* 和 1.11.*:请参阅 这些说明!
* MC 1.8.9:请参阅 原始文本配置说明!
在 v2.0+ 版本中,所有选项仅在 Minecraft 客户端内可用。
1) 加载 Minecraft 标题屏幕
2) 点击 Mods(模组)
3) 选择 Default World Generator
4) 按下 Configure(配置)按钮
此时您将进入编辑器图形界面。
提示:
* 如果您只想设置一个默认值,并且不希望弹出列表以选择世界类型,则必须取消列出所有其他项。在这种情况下,第一个元素被视为主要选项,将用于设置用户的世界类型默认值。
* 种子(Seeds)现在与生成器/世界类型绑定,除非留空。这允许数据包中包含预生成的区块数据。
* 世界名称(World Name)是新建世界默认名称的一部分。
* 当使用一组列出的配置时,自定义图标的 png 文件应放入 config/defaultworldgenerator-port/*.png。(放置后,您可以按下图标按钮来循环切换它们)
* 初始化命令(init commands)就是每次单人世界加载或服务器世界启动时运行的命令(例如 "say Hello World")。这些命令可用于运行 mcfunctions,或设置游戏规则,并且可以为每个预设设置不同的内容。(一个非常有用的功能可能是运行 "gamerule gameLoopFunction <packname:presetname>",以便为每个刻启动后台函数)
* “datapacks”代表该目录及其子目录中的任何文件。列出的目录必须位于 config/defaultworldgenerator-port/<name> 下。因此,如果您想更改公共数据包中的末影螨掉落表,您需要包含文件 config/defaultworldgenerator-port/common/data/loot_tables/minecraft/entities/endermite.json。
与之前的版本不同,这些文件集在整合包更新时将自动同步到存档文件中。
关于更高级配置概念和想法的视频系列即将上线。
更新日志(Changelog):
虽然这个项目最初只是一个简单的移植,但随着时间推移,该模组增加了许多功能、调整,甚至在 1.12 版本中进行了彻底的重构。以下是按时间倒序排列的变更:
- [自 v1.12-2.3]:与 Pack Mode 集成。设置预设以使用您通过 CraftTweaker/Pack Mode 配置的模式。这将强制应用于该预设,从而自动告知用户需要重启,并在加载世界时设置模式。
- [自 v1.12-2.0]:初始命令(Initial commands),这是一组可以在服务器每次启动(或单人游戏加载)时运行的命令,可以设置难度、游戏规则和 mcfunctions。
- [自 v1.12-2.0]:每个世界可以支持一个或多个“数据包”文件集,这些现在也移入了 config/defaultworldgenerator-port/(例如,config/defaultworldgenerator-port/common/data/loot_tables/minecraft/entities/endermite.json 用于 1.11.* 末影螨掉落表示例)。
- [自 v1.12-2.0]:当世界类型被锁定后,种子也被锁定(这允许“数据包”功能将现有世界注入新游戏中,因为种子必须匹配以避免地形错位。)
- [自 v1.12-2.0]:在结构按钮上添加了强制启用或禁用的切换开关。
- [自 v1.12-2.0]:专用服务器现在会询问您想要使用哪个预设(如果有多个处于活动状态),否则将强制使用该预设(而不是在没有 server.properties 时仅预先设置为默认值)。
- [自 v1.12-2.0]:允许多个预设,并让用户在世界启动前进行选择。
- [自 v1.12-2.0]:配置文件更改为二进制格式(现在必须在客户端中进行配置)。
- [自 v1.11.2-1.0]:默认世界数据:如果您的整合包根目录下有一个名为 DefaultWorldData 的目录,该目录中的文件将被复制到新的游戏存档中(或者在您添加此目录后首次加载世界时)。这允许您将掉落表和结构注入到新世界中,以覆盖 mc/mod 的默认值。(示例 DefaultWorldData/data/loot_tables/minecraft/entities/endermite.json 将覆盖末影螨的掉落表)
- [自 v1.11.2-1.0]:奖励箱子(Bonus Chest)可以通过 GUI 配置或配置文件默认启用(并可选地锁定)。
- [自 v1.9.4-0.4 起]:在客户端图形用户界面(GUI)中进行高级配置(从主菜单进入 -> 模组 -> 默认世界生成器 -> 配置)。所有设置均可在 Minecraft 客户端内完成,此外还可以从有效条目列表中选择世界生成器,自定义功能则使用相应的自定义 GUI。) 所有设置都可通过 GUI 编辑,因此无需手动编辑配置文件,只需在完成配置后将文件复制到整合包中即可。
- [自 v1.9.4-0.4 起]:支持设置推荐种子。请注意,即使用户手动更改了种子(即使世界类型被锁定),该设置仍会被覆盖;但在新建世界或创建服务器实例时,将默认使用此种子。
- 已移除超平坦(superflat)配置,改为直接使用 "S:CustomizationJson="。如果你使用的是“自定义化”(customized)世界生成器,则为 JSON 格式;而在“自定义化”和“超平坦”两种情况下,它实际上对应的是预设(preset)字符串。这有望满足大多数世界类型的自定义需求。
- 修复了在 1.7.10 版本中发现的一个小故障:如果你将一个默认的自定义项(例如超平坦)进行修改,之前无法对其进行配置。现在,除非设置为锁定状态,否则用户可以完全覆盖这些默认值。
- 服务器支持。此版本的模组不再仅限客户端,在服务器上也不会崩溃。此外,它会尝试按照配置的预设启动服务器,因此你无需每次配置新实例时都记得设置 level-type。
First: This project started as a port of fireball1725's 1.7.10 mod: Default World Generator to 1.8.9. To aid in projects by myself and others that use mods the use or create alternative "World Types" in a pack.
As of version 1.12-2.3:

Licensing:
I received this mod under the MIT license, and thus am redistributing it under the same license.
This means it can be freely used in any modpack. However if you translate this post into another language, please do try and link back to this post.
How To Use:
Note this page contains instructions for v2.0 and above (running on mc1.12+)
For information on how to use the older versions please see:
* MC 1.9.*, 1.10.* and 1.11.*: See these instructions!
* MC 1.8.9: See: See the original text config instructions!
In v2.0+ all options are only available inside the Minecraft client.
1) Load the Minecraft title screen
2) Click Mods
3) Select Default World Generator
4) Press configure
At this point you will be in the editor gui.
Tips:
* If you only want one default, and to not pop up the list to choose a world type, everything must be not listed, in this case the first element is considered the primary, and will be used to set the users world type defaults
* Seeds are now locked with generator/world type if not left blank. This allows pre made chunk data in the datapacks.
* World Name is part of the default new world name
* pngs for custom icons when using a set of listed configurations go into config/defaultworldgenerator-port/*.png (once there you can press the icon button to toggle through them)
* The init commands are just commands (like "say Hello World") that run every time a single player world is loaded, or a server world is started. These can be used to run mcfunctions, or set gamerules and be different for each preset. (A very useful thing might be to run "gamerule gameLoopFunction <packname:presetname>" to kick off a background function each tick for your pack)
* the "datapacks" represent any file in the directory and subdirectors of that listed. The listed directories must be in config/defaultworldgenerator-port/<name> Thus if you wanted to change the endermite loot table in the common datapack you would include the file config/defaultworldgenerator-port/common/data/loot_tables/minecraft/entities/endermite.json
Unlike the previous versions, these sets of files will automatically sync to the save file when the pack is updated.
A series of videos covering more advance configuration concepts and ideas will be here soon.
Whats New (Changelog):
While this started as a simple port over time the mod has had many additions, tweaks, and even an overhaul for 1.12. Here are the changes in reverse chronological order:
- [as of v1.12-2.3]: Integration with Pack Mode. set a preset to use a specific mode you have configured with CraftTweaker/Pack Mode. This is then enforced for the preset, thus automatically informing the user a restart is needed, and setting the mode when a world is loaded.
- [as of v1.12-2.0]: Initial commands, a set of command that can be run every time the server is started (or single player is loaded) can set difficulty, gamerules, and mcfunctions
- [as of v1.12-2.0]: each world can support one or more "data packs" file sets, these are now also moved into config/defaultworldgenerator-port/ (ex. config/defaultworldgenerator-port/common/data/loot_tables/minecraft/entities/endermite.json for the 1.11.* endermite loot table example)
- [as of v1.12-2.0]: seed is now locked down when the world type is locked (This allows the "data pack" feature to inject existing worlds into a new game, since the seed must match to avoid cliffs.
- [as of v1.12-2.0]: Added toggle on the structures button for force or disable it
- [as of v1.12-2.0]: Dedicated server now asks what preset you want to use (if multiple are active) otherwise forces the preset (rather than just pre-defaulting it if there was no server.properties.
- [as of v1.12-2.0]: Allow for multiple presets, and letting the user choose before the world is launched
- [as of v1.12-2.0]: Changed config to a binary config (now must be configured in client)
- [as of v1.11.2-1.0]: Default World Data: If you have a directory in the root of your pack named DefaultWorldData, the files from this directory will be copied into new game saves (or the first time you load a world after you add this directory) this allows you to inject loot_tables and structures into new worlds that will override the mc/mod defaults. (example DefaultWorldData/data/loot_tables/minecraft/entities/endermite.json will override the endermite loot_table)
- [as of v1.11.2-1.0]: Bonus Chest can be enabled by default (and optionally locked down) either in the gui config or config file
- [as of v1.9.4-0.4]: In Client GUI for advanced configuration (enter from the title screen -> Mods -> Default World Generator -> config) Here all settings can be set from within the Minecraft client, in addition the world generators are selected from a list of valid entries, and customization uses the relevant customization gui) All settings can be edited from the gui, so you do not need to manually edit the config, just copy it into your modpack when you are done.
- [as of v1.9.4-0.4]: ability to set a recommended seed, note this can be overwritten by the user if they manually do so even if the world type is locked, however it will be used by default when a new world is selected, and by default when a server instance is created.
- The superflat config has been removed in favor of simply having "S:CustomizationJson=", this is json if you are using the "customized" world generator, but is really the "preset" string in both "customized" and "flat".. This hopefully will work for most world type customization.
- Fixed a minor glitch I've noticed in 1.7.10, if you change a default a customization one, say superflat. You were unable to configure it, now the defaults fully override-able by the user unless its configured to be locked.
- Server Support. This version of the mod is no longer client only, and will not crash on a server, furthermore it attempt to start the server with the presets configured, so you do not need to remember to set level-type every time you configure a new instance.
评论 0
登录后参与评分
还没有评论,来抢沙发吧