
Mentalitys | MR Portal
MR Portal is a mod inspired by the game Magic Rampage. It adds a portal staff for saving waypoints and instant travel through black portals. Portals are visible to other players, and mobs and other players can pass through the
Оцените первым
243
0
Список изменений
Changelog 1.7hotfix
Fixes
- The portal was spawning at the player's position instead of in front of them: The portal source (
sourcePosinstartSession()) was calculated usingplayer.position()instead ofcalculateSourcePortalCenter(). The portal now always spawns atportalSpawnDistance(default 2 blocks) in front of the player—for both staffs and scrolls. - The portal was sinking into the ground:
VERTICAL_PORTAL_OFFSETwas equal to(0, 1.0, 0), causing the bottom edge of the portal (with a height of 1.34 blocks) to be 0.34 blocks below the surface. Now the offset isBASE_PORTAL_HALF_HEIGHT(1.34), and the portal is level with the ground. - The teleport scroll worked differently than the staff: The portal from the scroll now creates with the same distance and behavior as from a regular staff.
New Features
- Automatic Recipe Unlocking: Upon receiving any recipe ingredient (obsidian, eye of ender, nether star for the staff; ender pearl, paper for the scroll), the recipe automatically appears in the crafting book.
Technical Changes
- PendingTeleportManager:
startSession()now usescalculateSourcePortalCenter(player, config)instead ofplayer.position(). TheVERTICAL_PORTAL_OFFSETconstant has been changed from(0, 1.0, 0)to(0, BASE_PORTAL_HALF_HEIGHT, 0). - Added advancements for unlocking recipes:data/mr_portal/advancements/recipes/misc/portal_staff.jsonandteleport_scroll.json.
Changed files
- src/main/java/com/mentality/mrportal/portal/PendingTeleportManager.java
- gradle.properties
New files
- src/main/resources/data/mr_portal/advancements/recipes/misc/portal_staff.json
- src/main/resources/data/mr_portal/advancements/recipes/misc/teleport_scroll.json
Файлы
mr-portal-1.7hotfix.jar(83.51 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.7hotfix
Загрузчики
Fabric
Версии игры
1.20.1
Загрузок
14
Дата публикации
24.03.2026
