项目简介
这是一个服务端 Fabric 模组,提供了一些简单的命令来在运行时创建自定义维度。
在创造模式下建造时,无论是进行装饰性建筑还是红石工程,在一个独立的维度中工作往往更加有益。
使用方法
安装模组后,操作员(operators)将可以使用 /multiverse 命令。
该命令的权限也可以通过权限模组进行修改,请参阅权限部分。
该命令非常简单,只有少数几个子命令。 首先我们来讨论如何创建自定义维度。
创建自定义维度
要创建自定义维度,我们将使用 create 子命令。
create 子命令有 2 个分支:
/multiverse create from <dimension-type> <dimension-id> <seed?> <has-custom-gamerules?> <has-custom-tickrate?> <has-structures?>
/multiverse create vanilla <overworld> <nether> <end> <seed?>
在第一个 from 分支中,我们可以指定一个预定义的维度类型,为我们的维度赋予一个命名空间标识符,可选地指定种子(否则为随机),并指定该维度是否拥有独立的游戏规则或是否继承其游戏规则。
最后,您还可以指定 /tick 命令是否能在该特定维度中独立工作。
如果设置为 true,在该维度内运行的任何 /tick 命令将仅影响该特定维度,而在任何没有自定义刻率的维度中运行的 /tick 命令也将只影响那些同样没有自定义刻率的维度。
维度类型定义了地形生成方式以及一些行为,您可以在 Minecraft wiki 上找到相关列表。
默认情况下,原版有 3 种类型:minecraft:overworld、minecraft:the_nether 和
minecraft:the_end。
Multiverse 添加了 3 种类型:multiverse:void、multiverse:white_glass 和 multiverse:flat,
分别生成虚空世界、一层白色玻璃的平坦世界以及“默认”原版平坦世界(基岩、泥土、草方块)。
您还可以定义自己的维度类型以获取更多控制权,请参阅 定义自定义维度类型部分。
指定的维度 ID 可以是任何命名空间 ID,只要不存在具有该 ID 的现有维度即可,例如您不能使用 minecraft:overworld,因为原版已使用该 ID。
以下是一个创建名为 example:my_dimension 的维度的示例命令,它是一个带有随机种子的玻璃超级平坦世界,拥有独立的游戏规则:
/multiverse create from multiverse:white_glass example:my_dimension random true
第二个 vanilla 分支允许您创建一组 3 个维度,其行为镜像原版 3 个维度的行为。
以下是一个示例命令:
/multiverse create vanilla example:my_overworld example:my_nether example:my_end
这将创建 3 个维度,example:my_overworld、example:my_nether 和
example:my_end,分别对应主世界、下界和末地的生成。
example:my_overworld 和 example:my_nether 可以通过下界传送门链接,并且其行为将完全如同 minecraft:overworld 和 minecraft:the_nether。
末地传送门也是如此。
值得注意的是,通过末地传送门返回会将玩家传送到他们的出生点,或全局出生点(可能仍在 minecraft:overworld 中)。
此外,生成的末地维度会刷出末影龙。
传送至自定义维度
Multiverse 提供了一个命令用于传送到不同的维度:
/multiverse teleport <dimension> <position?> <rotation?>
删除自定义维度
删除自定义维度非常简单:
/multiverse delete <dimension>
运行此命令不会立即删除您的维度,而是会要求您确认是否真的要删除该维度,因为此操作具有破坏性且不可撤销。
运行 /multiverse delete <dimension> force 将绕过此提示。
克隆维度
Multiverse 允许您克隆任何维度,这在迭代建造或需要测试红石装置行为时非常有用。
您可能希望在克隆维度之前运行 /save-all,以确保它以最新状态被克隆。
命令如下:
/multiverse clone <from-dimension> <to-dimension> <has-custom-tickrate?> <region-from?> <region-to?>
其中 <from-dimension> 是您想要从中克隆的现有维度,
而 <to-dimension> 是您想要作为克隆创建的命名空间 ID。
您还可以指定克隆的维度是否拥有自己的自定义刻率管理器,更多详情请阅读 创建自定义维度部分。
最后,您还可以指定一个 区域范围 进行克隆,您也可以仅指定一个区域,在这种情况下,只有该区域会被克隆, 如果未指定,则复制整个维度。 这不推荐,因为占用大量存储空间的维度会复制所有区域文件,并且可能会导致服务器挂起。
维度文件
Multiverse 的维度位于你的 world/dimensions/<namespace>/<path> 目录中,
例如,如果你创建了一个名为 example:world 的维度,那么你的维度文件将位于
world/dimensions/example/world。
从这里开始,世界的结构与主世界/下界/末地相同。
定义自定义维度类型
Multiverse 允许你在数据包中定义自己的自定义维度类型!
以下是关于如何在 Minecraft wiki 上创建数据包的指南。
其格式与 vanilla 加载自定义维度的方式完全相同,只是位于不同的目录中。
你可以参考 Minecraft wiki 上的教程来创建新维度,但与其将维度文件放在
data/<namespace>/dimension/<path>.json 中,你应该将维度文件放在
data/<namespace>/multiverse/dimension/<path>.json 中。
自定义维度类型仍应注册在
data/<namespace>/dimension_type/<path>.json。
此仓库中包含一个示例数据包,你可以将其作为模板下载 这里, 或者你可以在此处查看它 这里。
权限
你可以通过使用权限模组(如 LuckPerms)进一步自定义命令的访问权限。
权限 "multiverse.commands.multiverse" 授予了 /multiverse 命令的使用权,
以及更具体的子命令权限:
"multiverse.commands.multiverse.create""multiverse.commands.multiverse.clone""multiverse.commands.multiverse.delete""multiverse.commands.multiverse.teleport"
许可证
根据 MIT 许可证分发。有关更多信息,请参阅 MIT License。
Multiverse
A fabric mod for Minecraft that allows creating custom dimensions at runtime with commands!
About The Project
This is a server-side fabric mod that provides a few simple commands for creating custom dimensions at runtime.
The motivation for this when building in creative, whether working on decorative builds or working with redstone it can be beneficial to work in a separate dimension.
Usage
After installing the mod the /multiverse command should become available to operators.
The permissions for the command can also be modified using a permissions mod, see the
permissions section.
The command is quite simple, with only a few subcommands. Let's first discuss how to create a custom dimension.
Creating Custom Dimensions
To create a custom dimension we will use the create subcommand.
There are 2 branches from the create subcommand:
/multiverse create from <dimension-type> <dimension-id> <seed?> <has-custom-gamerules?> <has-custom-tickrate?> <has-structures?>
/multiverse create vanilla <overworld> <nether> <end> <seed?>
In the first, from, we can specify a pre-defined dimension type, give our dimension a
namespaced identifier, optionally specify a seed (otherwise random), and also specify
whether the dimension should have its own gamerules or whether it should inherit
its gamerules.
Finally, you can also specify whether the /tick command will work independently for
that specific dimension.
If set to true any /tick commands run inside that dimension will affect only that
specific dimension, /tick run in any dimension that doesn't have a custom tickrate
will also only affect dimensions that also don't have a custom tickrate.
Dimension types define how the terrain is generated as well as some behaviors
which you can find listed on the Minecraft wiki.
By default, vanilla has 3 types: minecraft:overworld, minecraft:the_nether, and
minecraft:the_end.
Multiverse adds 3 types: multiverse:void, multiverse:white_glass, and multiverse:flat,
generating a void world, a flat world with one layer of white glass, and a "default"
vanilla flat world (bedrock, dirt, grass) respectively.
You can also define your own dimension types for more control, see the defining custom dimension types section.
The specified dimension id can be any namespaced id as long as no existing dimension has
that id, for example you cannot use minecraft:overworld because vanilla uses that id.
Here's an example command to create a dimension called example:my_dimension that is
a glass superflat world with a random seed with its own gamerules:
/multiverse create from multiverse:white_glass example:my_dimension random true
The second vanilla allows you to create a set of 3 dimensions that mirror the behavior
of vanilla's 3 dimensions.
Here's an example command:
/multiverse create vanilla example:my_overworld example:my_nether example:my_end
This will create 3 dimensions, example:my_overworld, example:my_nether, and
example:my_end with overworld, nether, and end generation respectively.
example:my_overworld and example:my_nether can be linked with nether portals
and will behave just like minecraft:overworld and minecraft:the_nether would.
The same is true for the end portal.
It is worth noting that returning back through the end portal will put the player
at their spawn, or at global spawn (which may still be in minecraft:overworld).
Additionally, the generated end dimension will spawn the ender dragon.
Teleporting to Custom Dimensions
Multiverse provides a command to teleport to different dimensions:
/multiverse teleport <dimension> <position?> <rotation?>
Deleting Custom Dimensions
Deleting custom dimensions is very simple:
/multiverse delete <dimension>
Running this command won't immediately delete your dimension, instead it will ask you to confirm whether you truly want to delete the dimension as this action is destructive and cannot be undone.
Running /multiverse delete <dimension> force will bypass this prompt.
Cloning Dimensions
Multiverse allows you to clone any dimension, this may be useful when iterating on a build or for when you need to test the behavior of a redstone contraption.
You will likely want to run /save-all prior to cloning a dimension to ensure that
it's cloned in its most up-to-date state.
The command is as follows:
/multiverse clone <from-dimension> <to-dimension> <has-custom-tickrate?> <region-from?> <region-to?>
Where <from-dimension> is the existing dimension you want to clone from,
and <to-dimension> is the namespaced id you want to create as a clone.
You can also specify whether the cloned dimension will have its own custom tickrate manager, for more details read the creating custom dimensions section.
Finally, you can also specify a region area to clone, you may also only specify one region in which case only that region will be cloned, if unspecified the entire dimension will be copied. This is not recommended as dimensions which take up a lot of storage as it copies all region files, and it also may hang your server.
Dimension Files
Multiverse's dimensions are located in your world/dimensions/<namespace>/<path> directory,
for example, if you create a dimension called example:world then your dimension files will be
in world/dimensions/example/world.
From here the structure of worlds is the same as the overworld/nether/end.
Defining Custom Dimension Types
Multiverse allows you to define your own custom dimension types in a datapack!
Here's a guide on how to create a datapack on the Minecraft wiki.
The format is exactly the same as if you were to define a custom dimension for
vanilla to load but just in a different directory.
You can follow this tutorial on the Minecraft wiki
on how to create a new dimension but instead of putting your dimension files in
data/<namespace>/dimension/<path>.json you should put your dimension files in
data/<namespace>/multiverse/dimension/<path>.json.
Custom dimension types should still be registered at
data/<namespace>/dimension_type/<path>.json.
There is an example datapack in this repository which you can download as a template here, or you can view it here.
Permissions
You can further customize access of the commands through the use of a permissions mod
such as LuckPerms.
The permission "multiverse.commands.multiverse" grants the /multiverse command with
further more specific permissions for the subcommands:
"multiverse.commands.multiverse.create""multiverse.commands.multiverse.clone""multiverse.commands.multiverse.delete""multiverse.commands.multiverse.teleport"
License
Distributed under the MIT License. See MIT License for more information.
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
下载 Multiverse
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复自定义维度中的世界边界在重新登录前未与玩家同步的问题
- 更新至 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧