WorldFeatures,一款受 此 Reddit 帖子启发的插件。它会在世界生成时,以可定制的方式自动从原理图中构建结构。
版本:3.03
插件名称由 tmcaffeine 提供
源代码(警告:其中仍包含一些我新手时期编写的代码)
描述:
将 .schematics 保存到游戏内的 Created 文件夹中,或下载其他人的 .schematics,以便在新区块生成时随机生成。每个结构都有各自的可定制生成几率。
依赖项
你需要在 plugins 文件夹中放置 WorldEdit.jar 才能使其正常工作。你可以在 获取它。
权限:
你需要使用 PermissionsBukkit 或 SuperPermsBridge 来使用这些权限。如果你没有安装其中之一,它将默认使用你的 OP 列表。
此权限允许玩家使用所有命令。请谨慎使用。
命令:
/wf <name>
创建一个名为 <name> 的选定长方体原理图。可以通过手持种子或自定义物品来选择长方体。
/wf copy <name>
将此原理图从你的 Created 文件夹复制并粘贴到 ToUse 文件夹中。你的世界将自动生成此结构,无需重置。
安装:
将 WorldFeatures.jar 插入到你的 plugins 文件夹中。
自定义:
首次启动服务器后,会创建一个 WorldFeatures 文件夹。里面包含三样东西:
- "Created" 文件夹 - 这是你在游戏中创建的原理图的存放位置。
- "ToUse" 文件夹 - 这是你可以放置自己或他人创建的原理图的地方。每个 .schematic 都需要一个匹配的 .yml 文件。如下文所述。
- "Settings.yml" - 如下文所述。
Settings.yml 目前包含 2 项内容:
- wandmaterial - number - 选择原理图的长方体时应手持什么?
- chunkchance - 1 到 100 之间的数字 - 几率解释如下。
各个原理图的 .yml 文件
每个原理图都需要在 ToUse 文件夹中有自己的 .yml 文件(文件名应为 <schematicname>.yml)。如果你从其他地方加载 .schematic,请复制并粘贴一个 .yml 并更改其名称。每个 .yml 文件中应包含以下内容:
- dontpaste - 你不希望从原理图中粘贴的方块 ID。目前唯一有效的 ID 是 "0",用于不粘贴空气。
- anywhereminY/anywheremaxY - 如果 "place" 设置为 "anywhere",结构可以生成的最小和最大高度
- chance - 当加载区块时,它会检查该区块生成内容的几率(通过 Settings.yml 中的 chunkchance)。如果可以生成,它会遍历所有原理图并检查每个原理图的这个数字。如果多个结构被选为在一个区块上生成,它将随机选择其中一个进行生成。这意味着这个“几率”是相对的,而不是确切的数值。
- maxspawns - 此 .schematic 可以生成的最大次数
- basement - 如果你有应该位于地下的方块,这是你希望地下垂直方块的数量。例如,如果我有一个高 30 个方块的建筑物,且我只希望 10 个在地面上,我会将 '20' 设为 "basement"。
- biome - 可以是 "none" 或以下任意值:
- DESERT
- EXTREME_HILLS
- DESERT_HILLS
- FOREST_HILLS
- JUNGLE_HILLS
- TAIGA_HILLS
- SMALL_MOUNTAINS
- MUSHROOM_ISLAND
- MUSHROOM_SHORE
- FROZEN_OCEAN
- FROZEN_RIVER
- HELL
- ICE_MOUNTAINS
- ICE_PLAINS
- FOREST
- OCEAN
- PLAINS
- RAINFOREST
- RIVER
- SAVANNA
- SEASONAL_FOREST
- SHRUBLAND
- SWAMPLAND
- TAIGA
- TUNDRA
- BEACH
- JUNGLE
- randomrotate - 此原理图是否应随机旋转?默认为 true。
- place 可以设置为以下任意值:
- ground - 原理图将贴合地面,不会在水面上生成
- anywhere - 它可以在 .yml 规定的 min 和 max 范围内的任何地方生成
- air - 它只会在空中生成
- underground - 它只能在地面下生成
更新日志
3.0
- 终于更新了!!
- "wandID" 改为 "wandmaterial"
- 更高效的世界创建和 .yml 保存
- .yml 文件对于不同的原理图也有所不同。要查看差异,只需在游戏中使用种子和 /wf 命令创建一个原理图即可
WorldFeatures, A Plugin Inspired by this Reddit post. It automagically builds structures from schematics in a customizable way when the world is created.
Version: 3.03
Plugin name by tmcaffeine
Source (be warned, it still has some code from when I was a noobie)
Description:
Save .schematics to your Created folder in-game or download someone else's .schematics to be generated randomly when new chunks are formed. Each has its own customizable chance to spawn.
Dependency
You will need WorldEdit.jar in your plugins folder for this to work. You can get it at
Permissions:
You will need to use PermissionsBukkit or SuperPermsBridge to use these permissions. If you do not have either, it will default to your OP list.
This permission allows the player to use every command. Use this wisely.
Commands:
/wf <name>
Creates a schematic named <name> of the selected cuboid. A cuboid can be selected by holding seeds or a customized item.
/wf copy <name>
Copies and pastes this schematic from your Created folder into your ToUse folder. Your world will automatically start generating this structure without needing a reset.
Installation:
Insert WorldFeatures.jar into your plugins folder.
Customizing:
After starting up the server for the first time, a WorldFeatures folder will be made. Inside this will be three things:
- The "Created" folder - this is where the schematics you create in-game will go to.
- The "ToUse" folder - this is where you can place yours or someone else's created schematics. Every .schematic needs a matching .yml. This is explained below.
- "Settings.yml" This is explained below.
The Settings.yml has 2 things right now:
- wandmaterial - number - what should be held when selecting a cuboid for a schematic?
- chunkchance - number between 1 and 100 - chance is explained below.
Individual .ymls for schematics
Each schematic needs its own .yml in the ToUse folder (it should be named <schematicname>.yml). If you are loading a .schematic from elsewhere, copy and paste a .yml and change its name. In each .yml should be these things:
- dontpaste - The IDs of blocks that you do not want to paste from the schematic. The only ID that works right now is "0" to not paste air.
- anywhereminY/anywheremaxY - the minimum and maximum height the structure can spawn at if "place" is set to "anywhere"
- chance - When a chunk is loaded, it checks the chance of the chunk to generate something (by chunkchance in the Settings.yml). If it can, it runs through all the schematics and checks this number for each one. If multiple structures are chosen to generate on one chunk, it will randomly choose one of them to be generated. This means that this "chance" is relative and not an exact amount.
- maxspawns - the maximum amount of times this .schematic can spawn
- basement - if you have blocks that should be below-ground, this is the number of vertical blocks you want underground, so if I had a building of 30 blocks high, and I only wanted 10 to be above-ground, I would put '20' as the "basement".
- biome - can be "none" or any of these values:
- DESERT
- EXTREME_HILLS
- DESERT_HILLS
- FOREST_HILLS
- JUNGLE_HILLS
- TAIGA_HILLS
- SMALL_MOUNTAINS
- MUSHROOM_ISLAND
- MUSHROOM_SHORE
- FROZEN_OCEAN
- FROZEN_RIVER
- HELL
- ICE_MOUNTAINS
- ICE_PLAINS
- FOREST
- OCEAN
- PLAINS
- RAINFOREST
- RIVER
- SAVANNA
- SEASONAL_FOREST
- SHRUBLAND
- SWAMPLAND
- TAIGA
- TUNDRA
- BEACH
- JUNGLE
- randomrotate - should this schematic randomly rotate? Default is true.
- place can be set to any of these values:
- ground - the schematic will stick to the ground and not spawn over water
- anywhere - it can spawn anywhere within the .yml range of min and max
- air - it will only spawn in the air
- underground - it can only spawn underground
Changelog
3.0
- Finally updated!!
- "wandID" turned into "wandmaterial"
- More efficient world creation and .yml saving
- .ymls are different for the schematics as well. To see the difference, simply create a schematic with seeds and the /wf command in game
评论 0
登录后参与评分
还没有评论,来抢沙发吧