Areas 是一个允许玩家在世界中轻松创建命名区域的模组。你可以定义区域、地区、地带、城镇、王国等。这是通过放置一块告示牌来完成的。在告示牌上,你需要指定半径、可选的 RGB 颜色值以及名称。这意味着告示牌周围的半径范围现在被视为一个区域。每当玩家进入该区域时,他们会在 GUI 顶部收到一条消息,默认内容为“进入区域”。离开时则显示“离开区域”。这两条提示均可在配置文件中修改。
如果告示牌上没有指定名称,系统将随机选择一个名称。配置文件中可以设置全局 RGB 颜色用于消息显示,但也可以在告示牌上单独指定独特的颜色值。请参阅下方的示例以更好地了解其工作原理!
你可以让多个区域重叠,从而创造出不同形状的区域。只有当玩家首次进入某个区域或离开所有重叠区域时,才会显示加入/离开消息。
支持多人游戏,但其他玩家也必须在客户端安装此模组。
所有可用的配置选项:
显示剧透
giveUnnamedAreasRandomName 默认 true
启用后,未指定区域名称的告示牌将从预设列表中随机分配一个名称。
radiusAroundPlayerToCheckForSigns 默认 100,最小值 0,最大值 1000
检查区域告示牌的玩家周围半径(方块单位)。
defaultAreaRadius 默认 30,最小值 0,最大值 1000
当告示牌上未填写半径时的默认区域半径。系统会自动添加此值。
areaRadiusIgnoresHeight 默认 false
启用后,仅计算到区域告示牌的水平距离,因此区域内的范围从世界底部延伸到顶部。适用于高层建筑。
sendChatMessages 默认 false
启用后,将区域通知发送至聊天栏。
showHUDMessages 默认 true
启用后,将区域通知显示在屏幕 HUD 上。
showEnterMessage 默认 true
是否在游戏玩家进入区域时发送消息。
enterPrefix 默认 "Entering "
玩家进入区域时消息的前缀。
enterSuffix 默认 "."
玩家进入区域时消息的后缀。
showLeaveMessage 默认 true
是否在游戏玩家离开区域时发送消息。
leavePrefix 默认 "Leaving "
玩家离开区域时消息的前缀。
leaveSuffix 默认 "."
玩家离开区域时消息的后缀。
showHUDTextShadow 默认 true
是否应为显示的文本添加阴影。
HUDMessageFadeDelayMs 默认 4000,最小值 100,最大值 360000
HUD 消息淡出前的延迟时间(毫秒)。
HUDMessageHeightOffset 默认 10,最小值 0,最大值 3000
HUD 消息的垂直偏移量(y 坐标)。这决定了消息在屏幕上显示的位置。可以修改此值以防止 GUI 重叠。
HUD_FontSizeScaleModifier 默认 1.0,最小值 0,最大值 10.0
增加 HUD 消息中文本的字体大小。如果更改此值,请确保在游戏中测试不同的 GUI 缩放设置。6.0 被视为较大。
HUD_RGB 默认 "100,200,50"
HUD 消息的颜色,以 0 到 255 之间的红色、绿色和蓝色值表示。
useSeparateRegionAndZoneSettings 默认 false
启用后,以 [Region] 或 [Zone] 开头的告示牌将使用下方的区域和区域设置来显示其消息和颜色,而不是使用通用设置。[Area] 告示牌始终使用通用设置。
regionEnterPrefix 默认 "Entering "
玩家进入区域时消息的前缀。
regionEnterSuffix 默认 "."
玩家进入区域时消息的后缀。
regionLeavePrefix 默认 "Leaving "
玩家离开区域时消息的前缀。
regionLeaveSuffix 默认 "."
玩家离开区域时消息的后缀。
region_HUD_RGB 默认 "100,200,50"
区域 HUD 消息的颜色,以 0 到 255 之间的红色、绿色和蓝色值表示。
zoneEnterPrefix 默认 "Entering "
玩家进入分区时消息的前缀。
zoneEnterSuffix 默认 "."
玩家进入分区时消息的后缀。
zoneLeavePrefix 默认 "Leaving "
玩家离开分区时消息的前缀。
zoneLeaveSuffix 默认 "."
玩家离开分区时消息的后缀。
zone_HUD_RGB 默认 "100,200,50"
分区 HUD 消息的颜色,以 0 到 255 之间的红色、绿色和蓝色值表示。
/areas - 显示玩家周围的所有区域告示牌。
Show Spoiler

要创建一个半径为 10 的区域,请使用以下前缀之一。默认情况下它们的作用相同,选择你喜欢的即可:
这将默认创建一个随机名称的区域。
一个简单的示例;一个半径为 10 的沙漠岛屿区域:
进入沙漠岛屿:
Show Spoiler

当破坏告示牌时,该区域将不再存在:
Show Spoiler

另一个带有自定义颜色的示例;一个稀树草原村庄区域,在 [RGB] 前缀后指定 rgb 值:
这三个告示牌产生的效果完全相同。
进入稀树草原村庄:
Show Spoiler

离开稀树草原村庄:
Show Spoiler

一个随机命名且半径为 30 的区域:
Show Spoiler

另一个随机命名且半径为 20 的区域:
Show Spoiler

还有一个示例:未命名的区域,半径为 5,不输入名称,并将配置选项 'giveUnnamedAreasRandomName' 设置为 false:
Show Spoiler

如果你希望你的模组在玩家进入或离开某个区域时执行某些操作,可以监听以下事件。它们包含玩家、区域名称、类型(Area、Region 或 Zone)、标志位置和半径。这些事件在客户端触发。
Fabric: com.serilum.areas.fabric.api.AreaEvents
Forge: com.serilum.areas.forge.api.AreaEnterEvent 和 AreaLeaveEvent
NeoForge: com.serilum.areas.neoforge.api.AreaEnterEvent 和 AreaLeaveEvent
只要下载源保持在 CurseForge 或 Modrinth 生态内,你就可以在任何整合包中自由使用此模组。
Serilum.com 提供了所有可用模组的概览和更多信息。
如有问题、想法、建议或其他内容,请访问 Github 仓库。感谢支持!
Areas is a mod which allows any player to easily created named areas in a world. This can be an area, region, zone, town, kingdom etc. This is done with a placed sign. On it you specify the radius, optionally the rgb value and the name. This means that the radius around the sign is now considered an area. Whenever a player enters this area, they receive a message at the top of the GUI with (by default) "Enter the area.". And when they leave "Leaving the area.". This can both be changed in the config.
Names are randomly selected when the sign does not contain one. There is a global RGB value for the messages specified in the config, but this can also be a unique value again specified on the sign. See the examples below for a better idea of how it works!
You can make areas overlap in order to create different area shapes. The join/leave message will only show when entering for the first time or leaving every overlapping zone.
Works in multiplayer, but players must also have the mod installed on their client.
All available config options:
Show Spoiler
giveUnnamedAreasRandomName default true
When enabled, gives signs without an area name a randomly chosen one from a preset list.
radiusAroundPlayerToCheckForSigns default 100, min 0, max 1000
The radius in blocks around the player in which to check for area signs.
defaultAreaRadius default 30, min 0, max 1000
The default radius for areas when it's left empty on the sign. It will be added automatically.
areaRadiusIgnoresHeight default false
When enabled, only the horizontal distance to an area sign counts, so an area reaches from the bottom to the top of the world within its radius. Useful for tall buildings.
sendChatMessages default false
When enabled, sends the player the area notifications in chat.
showHUDMessages default true
When enabled, sends the player the area notifications in the HUD on screen.
showEnterMessage default true
Whether a message should be sent when a player enters an area.
enterPrefix default "Entering "
The prefix of the message whenever a player enters an area.
enterSuffix default "."
The suffix of the message whenever a player enters an area.
showLeaveMessage default true
Whether a message should be sent when a player leaves an area.
leavePrefix default "Leaving "
The prefix of the message whenever a player leaves an area.
leaveSuffix default "."
The suffix of the message whenever a player leaves an area.
showHUDTextShadow default true
Whether the text shown should be drawn with a shadow.
HUDMessageFadeDelayMs default 4000, min 100, max 360000
The delay in ms after which the HUD message should fade out.
HUDMessageHeightOffset default 10, min 0, max 3000
The vertical offset (y coord) for the HUD message. This determines how far down the message should be on the screen. Can be changed to prevent GUIs from overlapping.
HUD_FontSizeScaleModifier default 1.0, min 0, max 10.0
Increases the font size of the text in the HUD message. If you change this value, make sure to test the different GUI scale settings in-game. 6.0 is considered large.
HUD_RGB default "100,200,50"
The colour of the HUD message, as red, green and blue values from 0 to 255.
useSeparateRegionAndZoneSettings default false
When enabled, signs starting with [Region] or [Zone] use the region and zone settings below for their messages and colour, instead of the general ones. [Area] signs always use the general settings.
regionEnterPrefix default "Entering "
The prefix of the message whenever a player enters a region.
regionEnterSuffix default "."
The suffix of the message whenever a player enters a region.
regionLeavePrefix default "Leaving "
The prefix of the message whenever a player leaves a region.
regionLeaveSuffix default "."
The suffix of the message whenever a player leaves a region.
region_HUD_RGB default "100,200,50"
The colour of the HUD message for regions, as red, green and blue values from 0 to 255.
zoneEnterPrefix default "Entering "
The prefix of the message whenever a player enters a zone.
zoneEnterSuffix default "."
The suffix of the message whenever a player enters a zone.
zoneLeavePrefix default "Leaving "
The prefix of the message whenever a player leaves a zone.
zoneLeaveSuffix default "."
The suffix of the message whenever a player leaves a zone.
zone_HUD_RGB default "100,200,50"
The colour of the HUD message for zones, as red, green and blue values from 0 to 255.
/areas - Shows all area signs around the player.
Show Spoiler

To create an area with a radius of 10, use one of these prefixes. By default they do the same, choose which one you prefer:
This will create an area with a random name by default.
A simple example; a desert island area with a radius of 10:
Entering the desert island:
Show Spoiler

When breaking the sign, the area ceases to exist:
Show Spoiler

Another example with a custom colour; A savanna village area with the rgb value after the [RGB] prefix:
These three signs result in exactly the same.
Entering the savanna village:
Show Spoiler

Leaving the savanna village:
Show Spoiler

An area being randomly named with a radius of 30:
Show Spoiler

Another randomly named area with a radius of 20:
Show Spoiler

And another example with an unnamed area with a radius of 5 by not entering a name, and the config option 'giveUnnamedAreasRandomName' set to false:
Show Spoiler

If you'd like your mod to do something when a player enters or leaves an area, you can listen to the events below. They contain the player, the area name, the type (Area, Region or Zone), the sign position and the radius. The events are fired client-side.
Fabric: com.serilum.areas.fabric.api.AreaEvents
Forge: com.serilum.areas.forge.api.AreaEnterEvent and AreaLeaveEvent
NeoForge: com.serilum.areas.neoforge.api.AreaEnterEvent and AreaLeaveEvent
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Areas
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 将最新更改回溯移植至 Minecraft 版本 26.1.2,该版本现已重新获得活跃支持。
包含先前版本详细信息的完整更新日志可在我的网站上查看:
>
- 新增“areaRadiusIgnoresHeight”配置选项,使区域范围从世界底部延伸至顶部。
- 新增“useSeparateRegionAndZoneSettings”配置选项,为 [Region] 和 [Zone] 标识牌提供独立的进入与离开提示信息及 HUD 颜色。
- 修复了在维度间往返后区域提示信息不再显示的问题。
- 修复了名称相同但标识牌换行符或半径不同的重叠区域仍会显示进入和离开提示信息的问题。
- 新增了其他模组可监听的事件,用于检测玩家进入或离开区域的情况。
包含各历史版本详细信息的完整更新日志可在我的网站上查看:
>
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
适用于 MC 1.18+ 的 Effekseer 加载器

评论 0
登录后参与评分
还没有评论,来抢沙发吧