跳到正文

World Portal

作者:mahmudindev

Create custom world portal to travel between dimensions.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

World Portal

World Portal can create custom world portal to travel between dimensions. With this, you can make your own custom portal for your custom dimension via config or datapack and it is server-side.

This mod are made for personal gameplay tinkering, server customization, and modpack creation.

Important

  • [0.0.8] Portal frame corner left and right will be swapped.
  • [0.0.10] Client side issue fix and data migration.
  • [0.0.11] Config file migrated from “worldportal.json” to “worldportal-common.toml”.

This mod can only create a custom portal. To make a new dimension, you need datapack or another mod to do it.

Features

  • No client needed custom portal.
  • Transform nether portal to custom portal by changing its frame corners.
  • Horizontal portal (>=0.0.8).
  • Simple configuration and datapack support.

Can be added to existing world or modpack and can be removed from existing world easily. Please make sure to backup your world first.

Planned

  • End portal mode.
  • Customized portal frame.
  • Customized portal spawned mobs not just piglin or disable it.
  • Customized portal minimum spawn height.
  • Customized portal particles.
  • Command or function execution when entering and exiting portal.
  • Destination based on biome, dimension, height, moon phase, time, and weather.
  • Destination based on player level, saturation, or even economy and mana.
  • Destination based on executed command or function.
  • Destination restricted by dimension and player permissions.
  • Destination override gamerule.
  • Support for economy, permission, and quest mods.
  • And many more including compat or integration mods in the way.

Suggest new features for World Portal on GitHub Discussion or Discord would be appreciated.

Usage

You can configure this mod by config or data driven by using datapack.

Config

Portal id “minecraft:example” can be anything as long as it is unique.

worldportal-common.toml
[portals]

	[portals."minecraft:example"]
		frame_top_right = "minecraft:gold_block"
		frame_top_left = "minecraft:iron_block"
		frame_bottom_right = "minecraft:iron_block"
		frame_bottom_left = "minecraft:gold_block"
		mode = "worldportal:default"
		destination = "customdimension:dimension"

	[portals."minecraft:example_horizontal"]
		frame_top_right = "minecraft:gold_block"
		frame_top_left = "minecraft:iron_block"
		frame_bottom_right = "minecraft:iron_block"
		frame_bottom_left = "minecraft:gold_block"
		mode = "worldportal:horizontal"
		destination = "customdimension:dimension_flat"
worldportal.json (OLD)
{
    "portals": {
        "minecraft:example": {
            "frame_top_right": "minecraft:gold_block",
            "frame_top_left": "minecraft:iron_block",
            "frame_bottom_right": "minecraft:iron_block",
            "frame_bottom_left": "minecraft:gold_block",
            "mode": "worldportal:default",
            "destination": "customdimension:dimension"
        },
        "minecraft:example_horizontal": {
            "frame_top_right": "minecraft:gold_block",
            "frame_top_left": "minecraft:iron_block",
            "frame_bottom_right": "minecraft:iron_block",
            "frame_bottom_left": "minecraft:gold_block",
            "mode": "worldportal:horizontal",
            "destination": "customdimension:dimension_flat"
        }
    }
}
Datapack

In your datapack namespace folder, create “worldportal” folder with “portal” folder inside. In portal folder create json file with any name with content:

{
    "frame_top_right": "minecraft:gold_block",
    "frame_top_left": "minecraft:iron_block",
    "frame_bottom_right": "minecraft:iron_block",
    "frame_bottom_left": "minecraft:gold_block",
    "mode": "worldportal:default",
    "destination": "testdimension:dimension"
}

-> data\\{namespace}\worldportal\portal\\{name}.json

Portal id consist of {namespace}:{name}. Portal mode can be “worldportal:default” for normal portal or “worldportal:horizontal” for horizontal portal.

Compatibility

Issues

  • [Radium] Use Canary instead for better mod compatibility or manually disable “mixin.ai.poi.fast_portals” on its config.

Check other issues or report new issues on GitHub Issues is recommended.

Support

🟩 26.1-26.4 / 🟩 1.21.1 / 🟥 1.21-1.21.11 / 🟩 1.20.1 / 🟪 1.16.5 / 🟪 1.12.2

🟩 Supported
🟥 Support Dropped
🟨 In Progress
🟪 Considered

Permissions

Feel free to use in servers, modpacks, videos, live streams, or any similar media without need for attribution or ask permission. The mod file itself, its assets, and code cannot be sold, re-licensed, or put behind a paywall.

See me on GitHub
Available on CurseForge
Watch me on YouTube
Chat with me on Discord
Support me on Patreon
Support me on Ko-fi
Support me on Saweria

Consider to help me financially if you like my mods, I will be really grateful.

常见问题

World Portal 支持哪些 Minecraft 版本?

World Portal 支持 Minecraft Java 版 1.20.1–26.3,共 18 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

World Portal 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

mahmudindev 的其他作品

查看全部 →