
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.8.0
New Features
- Customizable Portal Vertical Offset: The new
portalVerticalOffsetparameter (default 0.0) allows you to raise or lower the portal relative to its default position. Range: -2.0 to 5.0. - Portal Animation Speed: The new
portalAnimationSpeedparameter (default 1.0) is a multiplier for the opening and closing speed of the portal. 2.0 = twice as fast, 0.5 = half as slow. Range: 0.1 to 5.0.
Fixes
- Mod language setting changed the entire Minecraft interface: Previously, selecting a language in the mod settings (
en/ru) changed the global Minecraft language and reloaded all resources. Now the mod language works completely independently – it only affects the mod's text (GUI, tooltips, messages), without affecting the rest of the game interface.
Updated default values
portalActiveTicks: 60 → 100portalScale: 1.2 → 1.5portalSpawnDistance: 2.0 → 2.2
Optimizations
- Configuration is cached in local variables when processing network packets instead of repeatedly calling
MRPortalConfigManager.get().
Technical changes
- Created a utility class
ModTranslation(com.mentality.mrportal.util), which loads mod translation files from resources and provides aget(key, args...)method. Inautomode, it returnsComponent.translatable(); inen/rumode, it returnsComponent.literal()with the substituted translation. - All calls to
Component.translatable()in mod GUIs and messages have been replaced withModTranslation.get(): WaypointScreen, MRPortalConfigScreen, PendingTeleportManager, MRPortalNetworking, PortalStaffItem, TeleportScrollItem. - The
applyLanguage()method has been removed fromMRPortalConfigScreen, which calledminecraft.getLanguageManager().setSelected()andreloadResourcePacks(). - The
VERTICAL_PORTAL_OFFSETconstant inPendingTeleportManagerhas been replaced with the dynamicverticalOffset(config)method, which takesportalVerticalOffsetfrom the config into account. - Animation speed (
animSpeed) is transmitted via portal creation network packets to the client, where it scalesSPARK_DURATIONandCLOSE_DURATION.
Changed files
- src/main/java/com/mentality/mrportal/config/MRPortalConfig.java
- src/main/java/com/mentality/mrportal/portal/PendingTeleportManager.java
- src/main/java/com/mentality/mrportal/network/MRPortalNetworking.java
- src/main/java/com/mentality/mrportal/item/PortalStaffItem.java
- src/main/java/com/mentality/mrportal/item/TeleportScrollItem.java
- src/client/java/com/mentality/mrportal/client/render/ClientPortalEffectManager.java
- src/client/java/com/mentality/mrportal/client/network/MRPortalClientNetworking.java
- src/client/java/com/mentality/mrportal/client/screen/MRPortalConfigScreen.java
- src/client/java/com/mentality/mrportal/client/screen/WaypointScreen.java
- src/main/resources/assets/mr_portal/lang/en_us.json
- src/main/resources/assets/mr_portal/lang/ru_ru.json
- gradle.properties
New files
- src/main/java/com/mentality/mrportal/util/ModTranslation.java
Файлы
mr-portal-1.8.0.jar(86.90 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.8.0
Загрузчики
Fabric
Версии игры
1.20.1
Загрузок
8
Дата публикации
24.03.2026
