Mentalitys | MR Portal
Mentalitys | MR Portal 是一款适用于 Fabric 1.20.1 的模组,受 Magic Rampage 启发,添加了个人传送门和每位玩家独立的信标(Waypoint)功能。
当前版本:2.3
功能介绍
MR Portal 允许每位玩家保存信标位置并打开临时传送门前往这些地点。源传送门会在玩家面前生成,而目标传送门则在传送完成后出现。只要传送门保持开启状态,其他玩家和实体都可以穿过它们。
基础模组支持常规生存模式、单次使用卷轴传送、创造/管理员传送、收藏信标以及快速收藏快捷键。
特性
- 适用于 Fabric 1.20.1 的模组。
- 每位玩家独立的信标存储。
- 信标图形界面(GUI),用于添加、选择、重命名、删除和收藏信标点。
- 传送法杖用于生存模式下的传送。
- 无限传送法杖用于创造/管理员模式。
- 传送卷轴作为一次性传送物品。
- 支持收藏信标。
- 快速收藏传送快捷键。
- 选择目的地时预览火花/目标点。
- 传送门在玩家面前生成。
- 传送后出现目标传送门。
- 其他实体和玩家可以穿过活跃的传送门。
- 普通法杖和卷轴仅限同维度使用。
- 无限法杖和创造模式可以绕过正常的维度限制。
- 可配置传送门计时、消耗、缩放、语言和视觉行为。
2.3 版新增内容
2.3 版更新了内部传送路由,但未改变默认的 MR Portal 游戏玩法:
- GUI 信标传送现在通过请求服务进行路由。
- 快速收藏传送现在也通过相同的服务层进行路由。
- 附加组件可以通过公共 API 注册自定义传送处理器。
- 活动处理器由处理器优先级决定。
- 基础 MR Portal 保留验证、支付、冷却时间、物品消耗和同维度检查。
- 处理器拥有执行风格和验证后的传送行为。
- 处理器可以通过
usesDefaultPreviewSpark()控制是否发出基础 MR Portal 的默认预览火花。 - 内置的默认处理器保留了正常的 MR Portal 传送门行为。
这为 MR Portal 支持外部附加组件(如 Chrono Portal)做好了准备,而无需将附加组件逻辑硬编码到基础模组中。Chrono Portal 不捆绑在基础 MR Portal 中。
物品
传送法杖
- ID:
mr_portal:portal_staff - 生存模式传送物品。
- 传送门开始时消耗末影珍珠。
- 施加法杖冷却时间。
- 仅限同维度使用。
传送卷轴
- ID:
mr_portal:teleport_scroll - 一次性传送物品。
- 传送门开始时被消耗。
- 不消耗末影珍珠。
- 不施加法杖冷却时间。
- 仅限同维度使用。
无限传送法杖
- ID:
mr_portal:infinite_portal_staff - 创造/管理员传送物品。
- 无珍珠消耗。
- 无冷却时间。
- 可以绕过正常的维度限制。
使用方法
- 手持传送法杖或传送卷轴。
- 右键点击以打开信标图形界面(GUI)。
- 将当前位置添加为信标,或选择一个现有的信标。
- 确认传送以在你面前创建传送门。
- 走进传送门以完成传送。
如果你携带着法杖或卷轴,也可以使用配置的快捷键快速打开信标图形界面。
费用仅在传送门启动时应用,而不仅仅是在打开 GUI 时。
收藏信标与快速传送
- 在信标图形界面中将一个信标标记为收藏。
- 使用快速收藏快捷键为该收藏信标排队传送门。
- 快速收藏路径在激活前会显示预览延迟。
- 费用在延迟激活时发生,而非按键时。
- 首选的快速激活器顺序为:无限传送法杖、传送法杖、传送卷轴。
- 普通法杖和卷轴的快速传送仅限同维度使用。
- 无限法杖和创造模式可以绕过正常限制。
附加组件/API 支持
MR Portal 2.3 包含面向附加组件的传送处理器 API。
附加组件处理器可以:
- 注册
MRPortalTeleportHandler; - 使用优先级成为活动处理器;
- 接受或拒绝已验证的请求;
- 在基础验证后执行不同的传送风格;
- 通过
usesDefaultPreviewSpark()选择不使用基础的预览火花。
基础 MR Portal 仍然负责:
- 信标所有权和查找;
- 物品检测;
- 同维度验证;
- 珍珠消耗检查和消耗;
- 卷轴消耗;
- 法杖冷却时间检查和施加;
- GUI 和快速收藏请求计时。
这使得附加组件行为与基础经济系统和规则兼容,同时允许外部视觉或传送风格。
配置文件
配置文件会自动创建:
config/mr_portal.json
选项:
language: 模组语言,auto、en或ru。cooldownSeconds: 生存模式法杖冷却时间(秒)。maxWaypoints: 每位玩家的信标上限。portalOpenDelay: 传送门打开时间(刻)。portalActiveTicks: 传送门打开后保持开启的时间长度(刻)。portalCloseDelayTicks: 传送后直到开始坍塌之前传送门保持存在的时间长度(刻)。portalPearlCost: 普通法杖的传送消耗。applyBlindnessOnTeleport: 启用或禁用传送后的失明效果。blindnessDuration: 失明持续时间(刻)。portalScale: 传送门视觉大小。portalSpawnDistance: 玩家到源传送门的距离。portalVerticalOffset: 垂直传送门偏移量。portalAnimationSpeed: 传送门动画速度倍数。quickFavoritePortalDelayTicks: 快速收藏传送门启动前的延迟(刻)。portalExitBehindDistance: 传送后目标传送门出现在玩家身后的距离。
默认值:
language = autocooldownSeconds = 60maxWaypoints = 10portalOpenDelay = 60portalActiveTicks = 100portalCloseDelayTicks = 60portalPearlCost = 3applyBlindnessOnTeleport = trueblindnessDuration = 40portalScale = 1.5portalSpawnDistance = 2.2portalVerticalOffset = 0.0portalAnimationSpeed = 1.0quickFavoritePortalDelayTicks = 30portalExitBehindDistance = 0.2
安装 Cloth Config API 后,可通过 ModMenu -> Mentalitys | MR Portal 在游戏中编辑设置。
依赖项
- Minecraft 1.20.1 的 Fabric API。
- 推荐安装 Cloth Config API 以启用游戏内配置界面。
- 推荐安装 ModMenu 以便从模组菜单打开配置界面。
Mentalitys | MR Portal
Mentalitys | MR Portal is a Fabric 1.20.1 mod that adds personal portals and per-player waypoints inspired by Magic Rampage.
Current version: 2.3
What It Does
MR Portal lets each player save waypoint locations and open temporary portals to them. A source portal opens in front of the player, and a destination portal appears after teleporting. Other players and entities can pass through active portals while they remain open.
The base mod supports normal survival use, one-use scroll teleporting, creative/admin teleporting, favorite waypoints, and a quick favorite keybind.
Features
- Fabric 1.20.1 mod.
- Per-player waypoint storage.
- Waypoint GUI for adding, selecting, renaming, deleting, and favoriting points.
- Portal Staff for survival teleporting.
- Infinite Portal Staff for creative/admin use.
- Teleport Scroll as a one-use teleport item.
- Favorite waypoint support.
- Quick favorite teleport keybind.
- Preview spark / target point while selecting a destination.
- Portals open in front of the player.
- Destination portal appears after teleport.
- Other entities and players can pass through active portals.
- Regular staff and scroll are same-dimension only.
- Infinite staff and creative mode can bypass normal dimension restrictions.
- Configurable portal timing, cost, scale, language, and visual behavior.
New In 2.3
Version 2.3 updates the internal teleport routing without changing the default MR Portal gameplay:
- GUI waypoint teleport now routes through a request service.
- Quick favorite teleport now routes through the same service layer.
- Addons can register custom teleport handlers through the public API.
- The active handler is selected by handler priority.
- Base MR Portal keeps validation, payment, cooldown, item consumption, and same-dimension checks.
- Handlers own the execution style and post-validation teleport behavior.
- Handlers can control whether base MR Portal emits its default preview spark with
usesDefaultPreviewSpark(). - The built-in default handler preserves the normal MR Portal portal behavior.
This prepares MR Portal for external addons such as Chrono Portal support without hardcoding addon logic into the base mod. Chrono Portal is not bundled into base MR Portal.
Items
Portal Staff
- ID:
mr_portal:portal_staff - Survival teleport item.
- Costs ender pearls when the portal starts.
- Applies a staff cooldown.
- Same-dimension only.
Teleport Scroll
- ID:
mr_portal:teleport_scroll - One-use teleport item.
- Consumed when the portal starts.
- Does not cost ender pearls.
- Does not apply staff cooldown.
- Same-dimension only.
Infinite Portal Staff
- ID:
mr_portal:infinite_portal_staff - Creative/admin teleport item.
- No pearl cost.
- No cooldown.
- Can bypass normal dimension restrictions.
Usage
- Hold a Portal Staff or Teleport Scroll.
- Right-click to open the waypoint GUI.
- Add your current location as a waypoint or select an existing waypoint.
- Confirm teleport to create a portal in front of you.
- Walk into the portal to teleport.
You can also use the configured keybind to open the waypoint GUI quickly if you are carrying a staff or scroll.
Payment is applied when the portal starts, not merely when opening the GUI.
Favorite Waypoint And Quick Portal
- Mark one waypoint as favorite in the waypoint GUI.
- Use the quick favorite keybind to queue a portal to that favorite waypoint.
- The quick favorite path shows a preview delay before activation.
- Payment happens at delayed activation, not at keypress.
- Preferred quick activator order is: Infinite Portal Staff, Portal Staff, Teleport Scroll.
- Regular staff and scroll quick teleports are same-dimension only.
- Infinite staff and creative mode can bypass normal restrictions.
Addon/API Support
MR Portal 2.3 includes an addon-ready teleport handler API.
Addon handlers can:
- register an
MRPortalTeleportHandler; - use priority to become the active handler;
- accept or reject already validated requests;
- execute a different teleport style after base validation;
- opt out of the base preview spark with
usesDefaultPreviewSpark().
Base MR Portal still owns:
- waypoint ownership and lookup;
- item detection;
- same-dimension validation;
- pearl cost checks and consumption;
- scroll consumption;
- staff cooldown checks and application;
- GUI and quick favorite request timing.
This keeps addon behavior compatible with the base economy and rules while allowing external visual or teleport styles.
Config
The config file is created automatically:
config/mr_portal.json
Options:
language: mod language,auto,en, orru.cooldownSeconds: survival staff cooldown in seconds.maxWaypoints: waypoint limit per player.portalOpenDelay: portal opening time in ticks.portalActiveTicks: how long the portal stays open after opening.portalCloseDelayTicks: how long the portal remains after teleport before collapse starts.portalPearlCost: teleport cost for the normal staff.applyBlindnessOnTeleport: enables or disables blindness after teleport.blindnessDuration: blindness duration in ticks.portalScale: portal visual size.portalSpawnDistance: distance from the player to the source portal.portalVerticalOffset: vertical portal offset.portalAnimationSpeed: portal animation speed multiplier.quickFavoritePortalDelayTicks: delay before the quick favorite portal starts.portalExitBehindDistance: how far behind the player the destination portal appears after teleport.
Default values:
language = autocooldownSeconds = 60maxWaypoints = 10portalOpenDelay = 60portalActiveTicks = 100portalCloseDelayTicks = 60portalPearlCost = 3applyBlindnessOnTeleport = trueblindnessDuration = 40portalScale = 1.5portalSpawnDistance = 2.2portalVerticalOffset = 0.0portalAnimationSpeed = 1.0quickFavoritePortalDelayTicks = 30portalExitBehindDistance = 0.2
Settings can be edited in game through ModMenu -> Mentalitys | MR Portal when Cloth Config API is installed.
Dependencies
- Fabric API for Minecraft 1.20.1.
- Cloth Config API is recommended for the in-game config screen.
- ModMenu is recommended for opening the config screen from the Mods menu.
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
下载 Mentalitys | MR Portal
MR Portal 2.3 更新日志
MR-Portal 2.3 主要是一次内部 API/服务层的更新,旨在为外部传送类插件奠定基础,同时保留正常的 MR-Portal 行为。
主要变更
- 添加了公共传送处理程序 API。
- 添加了
MRPortalApi。 - 添加了
MRPortalTeleportHandler。 - 添加了
MRPortalTeleportContext。 - 添加了
MRPortalWaypointView。 - 添加了
MRPortalTeleportActivator。 - 添加了按优先级进行处理程序注册和活动处理程序选择的功能。
- 添加了用于正常 MR-Portal 传送门行为的默认内置处理程序。
- 通过新的服务/API 路径路由 GUI 坐标点传送请求。
- 通过新的服务/API 路径路由快捷收藏传送请求。
- 在基础模组中保留了支付、冷却时间和资源验证功能。
- 保留了常规法杖珍珠的消耗和冷却时间。
- 保留了传送卷轴的消耗行为。
- 保留了无限传送法杖无消耗的行为。
- 保留了常规法杖和卷轴的同维度限制。
- 通过
usesDefaultPreviewSpark()添加了由处理程序控制的默认预览火花钩子。 - 默认处理程序保持正常的预览火花行为。
- 插件处理程序可以选择退出基础预览火花视觉效果。
修复与验证亮点
- 通过将卷轴/法杖 GUI 模式设为服务器端拥有,修复了 GUI 传送卷轴消耗的路径问题。
- 修复了在存在卷轴时快捷收藏常规法杖支付的回归问题。
- 手动验证了 GUI 法杖和卷轴的行为。
- 手动验证了快捷收藏法杖和卷轴的行为。
- 手动验证了预览火花的开启和清理行为。
- 移除了临时的
[MRP07F]诊断日志。
插件支持
- 此更新未捆绑 Chrono Portal。
- 它为独立插件(如 Chrono Portal)做好了基础模组的准备。
- MR-Portal 不会对 Chrono 进行硬编码。
- Chrono 应作为独立的 jar 文件与 MR-Portal 一起安装。
开发者说明
- 基础模组负责验证、支付、冷却时间和资源检查。
- 处理程序在验证后负责传送执行风格。
usesDefaultPreviewSpark()仅控制默认预览视觉效果,不涉及支付或会话执行。- 默认处理程序在内部保持无支付状态;支付在处理程序执行之前处理。
已知事项
- 重新加入后传送法杖冷却时间消失仍是原版遗留的冷却时间行为。
- 插件处理程序的运行时验证是未来的工作。
- Chrono 的实现是独立的/未来的计划。
依赖项与构建
- Fabric 1.20.1。
- Java 17 目标版本。
- 本工作区使用 Java 21 Gradle 运行时。
- 构建已通过以下命令验证:
JAVA_HOME=/usr/lib/jvm/java-21-openjdk ./gradlew compileJava
JAVA_HOME=/usr/lib/jvm/java-21-openjdk ./gradlew compileClientJava
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
基于 GTCEu 1.12.2 的现代 GregTech
评论 0
登录后参与评分
还没有评论,来抢沙发吧