你是否曾因为打开可能包含探险家地图的箱子而导致服务器严重卡顿而感到烦恼? 或者在提升制图师村民等级时遇到同样的问题?
当安装了大量模组时,这种情况会变得更加严重,以至于一个箱子里可能出现多张探险家地图, 或者通过村民交易获得,这会在生成时造成巨大的卡顿。
你不想再让服务器因此崩溃了吗?
那么无需再寻找!我这里有一个简单而有效的模组供你使用。
未知地图
未知地图(或 BetterMaps)仅对结构位置逻辑的处理时机进行了调整,将其推迟到玩家请求时进行,通过将地图物品替换为看似空白但在使用后会变成普通探险家地图的物品来实现。
本模组不带任何配置文件,因为它不需要配置,但添加了两个游戏规则(gamerules):
do_better_maps,作为模组的纯开关(默认为true)do_better_maps_loot,仅用于开启/关闭宝箱战利品地图的生成(默认为true)do_better_maps_trades,仅用于开启/关闭村民交易地图的生成(默认为true)do_better_map_from_player_pos,设置模组从玩家位置开始定位结构(默认为false)。
请注意,尽管默认值为false,但保持此状态可能会改变定位算法的行为, 从而导致定位到的目标结构实例与预期不同,尽管它仍会尽量尝试保持在 地图生成位置附近(默认行为)。do_better_maps_dynamic_locating,用于切换地图定位任务是以动态方式运行 (当为true时,即默认值)还是 vanilla 原版方式。启用后,世界不会在任务完成前被冻结, 并且可以解决一些因创建地图导致的崩溃问题。
为了防止通过并行启动多个任务来复制地图,玩家需要一直手持该地图直到获得结果地图, 以便模组能有效消耗初始地图(创造模式下除外)。do_better_maps_feedback,用于切换是否将 动态定位 任务的日志记录到服务器控制台和 OP(管理员)玩家。如果禁用了do_better_maps_dynamic_locating,此游戏规则将不起作用。
你可能会问,这个模组更棒的地方在于它是 完全服务端运行的!客户端无需安装,或者你可以仅仅在一个整合包的服务端上安装它,纯粹为了改进地图生成的逻辑!
常见问题解答
为什么我的游戏在使用地图时仍然崩溃?
- 虽然改进了战利品表的处理逻辑,但该模组并未改变结构定位的逻辑。 它只是防止了游戏在单个刻(tick)内尝试定位多个结构, 这很容易导致即使是最强大的服务器也会崩溃。
为什么要使用原版的空白地图?
- 为了使模组能够完全在服务端运行。
为什么使用地图时没有任何反应?
- 我在地图创建功能中新增了一项内容,即维度指定。 你可以将鼠标悬停在物品栏中的地图上,通过工具提示查看该地图适用于哪个维度。 如果你在使用地图时不在对应的维度内,你的快捷栏上方会暂时出现一个红色的“×”,且你的操作不会生效。
- 此外,蓝色的“×”表示由于其他原因未能找到结构。 这意味着在该维度中不存在此类结构,或者在搜索范围内没有发现。
为什么你不直接把它命名为“BetterMaps”(更好的地图)?
- 因为这个名字听起来更酷。
如果移除该模组会发生什么?
- 此模组与原版 Minecraft 协同工作,但仅在加载时才会改变后者的行为。 因此,如果你移除了该模组,使用该模组创建的“空地图”只会让游戏表现得如同使用普通空地图一样正常。
这个模组与 <在此处插入名称> 不兼容吗?
- 我能给出的唯一真实回答是 也许。
- Async Locator:是的,也不是。如果启用了 Async Locator,并且该模组的探索地图和村民交易功能也处于启用状态,则此模组无法正常工作;或者你可能需要至少切换
本模组的相应功能。考虑到我对此模组未来的计划,它们长期来看可能完全不兼容。但在另行通知之前,您可以在满足上述条件的前提下同时使用两者。
Ever been tired of your server lagging an awful lot when you open a chest that may contain an explorer map? Or when you level up a cartographer villager?
Even more with a lot of mods, so much that you can get up to multiple explorer maps in a single chest, or as villager trades, which would cause massive lag upon generation?
You don't want your server to crash anymore because of that?
Then look no further! I have a simple yet effective mod right here for you.
Maps of the Unknown
Maps of the Unknown (or BetterMaps) only tweaks it so that the structure location logic is processed at a later point, upon request of the player, by replacing the map item by what would look like an empty map, but would become the regular explorer map upon use.
This mod doesn't come with any config file, for it doesn't need it, but adds two gamerules:
do_better_maps, which acts as a pure toggle for the mod (trueby default)do_better_maps_loot, which serves as a toggle only for the chest loot map generation (trueby default)do_better_maps_trades, which serves as a toggle only for the villager trade map generation (trueby default)do_better_map_from_player_pos, which sets the mod to start locating the structure from the player (falseby default).
Beware, despite it being onfalseby default, keeping it as such can alter the location algorithm's behavior, thus locating a different instance of the wanted structure than expected, although still trying to keep it as close as possible from the location the map was generated at (default behavior).do_better_maps_dynamic_locating, which toggles whether the map locating tasks should be run in a dynamic way (whentrue, default value) or vanilla. Enabling it makes it so the world isn't frozen until the task is finished, and solves some crash issues with maps creation.
In order to prevent map duping with starting multiple tasks before the first one is finished, it is required for the player to keep the map in hand until they get the result map, so that the mod can effectively consume the initial map (except in creative of course)do_better_maps_feedback, which toggles whether dynamic locating tasks should get logged in the server console and to OP players. This gamerule doesn't do anything ifdo_better_maps_dynamic_locatingis disabled.
What's even better with this mod you may ask, is that it is entirely server-sided! There is no need for the client to install it, or you can just install it on a server with another modpack, for the pure sake of improving the map creation logic!
Q&A
My world still crashes when I use a map, why?
- While improving the loot-table processing, this mod doesn't change the structure location logic. It only prevents the game from trying to locate multiple structures during a single tick, which can easily end up crashing even the most powerful servers.
Why do you use the vanilla empty map?
- To make the mod able to work purely server-side.
Why doesn't it do anything when I use the map?
- I added one more thing to the map creation, that is dimension specification. You may see what dimension is a map for by hovering it in your inventory, as a tooltip. If you are not in the matching dimension when using the map, look forward to seeing a red "x" temporarily appear over your hotbar, and your action not doing anything.
- Additionally, a blue "x" means that the structure couldn't be found for some other reason. Thus meaning that there either is no such structure in that dimension, or none in search range.
Why didn't you just name it "BetterMaps"?
- Because it sounds cool.
What happens if I remove the mod?
- This mod works hand in hand with vanilla Minecraft, but only change the latter's behavior when loaded. Thus, if you remove the mod, using a special "empty map" created by the mod would only make the game behave as normal with a regular empty map.
Is this mod incompatible with <insert name here>?
- The only real response I can give you is maybe.
- Async Locator: Yes and no. This mod cannot work when enabled with Async Locator if its exploration map and villager trade features are enabled, or you may need to toggle at least the corresponding feature of this here mod. And considering my plans for the future of this mod, they will most probably not be compatible at all on the long term. But until further notice, you may use both while validating the aforementioned conditions.
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Maps of the Unknown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
(迟到的)26.2 更新
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧