Homabric
适用于 Fabric 的小型而强大的家居管理模组
⚠️ 本模组正在进行部分重写,您可以使用以下列出的所有功能,但它们在未来可能会发生变化。代码质量可能参差不齐,希望未来会得到改进。
功能
- ⭐ 与玩家共享家园。
- ⭐ 通过权限设置每个群组或玩家的家园上限。
- ⭐ 使用图形界面进行传送和查看所有家园信息。
- ⭐ 编辑 GUI 中的家园图标,支持模组物品。
- ⭐ 能够轻松配置模组并查看玩家位置。
- ⭐ 传送超时机制,如果玩家移动或受到伤害,可防止传送。
计划中的功能
- 能够通过权限定义传送超时时间。
- 重写代码以提高可读性。
- 能够在配置文件中定义
/home命令别名。
语言
- ?? English
- ?? Russian
- ?? Chinese (@Neubulae)
命令
您可以使用 homabric.teleport.bypass 权限来绕过传送超时限制。
要禁用对玩家的家园数量限制,请赋予他们 homabric.limit.bypass 权限。
您还可以在配置中为命令指定别名。
目前,默认别名为:
- 家园传送(home-command-aliases):
h,home - 家园管理(homes-command-aliases):
hs,homes
玩家
在许多情况下,如果名称为空,<home?> 默认为 home
传送
- /h
homabric.base.use - /h <home?>
homabric.base.byName
管理
- /hs
homabric.base.use- 默认显示包含您家园的 GUI - /hs set <home?>
homabric.base.set - /hs remove <home>
homabric.base.remove - /hs p <player> <home>
homabric.base.others - /hs allow <player> <home>
homabric.base.allow - /hs disallow <player> <home>
homabric.base.disallow - /hs setIcon <home> <item identificator>
homabric.base.setIcon
管理员
您可以使用 /homabric 访问管理员命令。
- /homabric
homabric.admin.use - /homabric reload
homabric.admin.reload - /homabric teleport <player> <home>
homabric.admin.teleport - /homabric set <player> <home>
homabric.admin.set - /homabric remove <player> <home>
homabric.admin.remove - /homabric list <player>
homabric.admin.list
经典命令
您可以通过将配置文件中的 enableClassicCommands 设置为 false 来禁用这些命令。
- /sethome <name>
homabric.base.set - /removehome <home>
homabric.base.remove - /playerhome <player> <home>
homabric.base.others - /listhome
homabric.base.list - /allowhome <player> <home>
homabric.base.allow - /disallowhome <player> <home>
homabric.base.disallow
配置
开发此模组时我秉持简洁的理念,我决定将家园数据存储在配置文件中,而不是存储在实体或世界的 NBT 数据中。这使得服务器所有者能够在地图之间快速迁移而不会丢失数据,并且可以对其进行编辑,从而节省大量时间。
⚠️ 从版本 2.0.0 开始,配置文件现在拆分为两个不同的文件。
homabric.config.conf
此文件存储 Homabric 的设置。
# 示例和帮助:https://github.com/rogi27/Homabric/blob/master/README.md#configuration
# 不要修改此值,它允许模组检查配置文件是否过时。
config-version=3
# 此选项启用替代命令变体,如 /sethome、/removehome 等。
enable-classic-commands=true
# 允许您为家园传送命令指定别名。
home-command-aliases=[
home,
h
]
# 允许您为家园管理命令指定别名。
homes-command-aliases=[
homes,
hs
]
# 设置每个玩家的最大家园数量。
homes-limit=2
# 设置玩家在传送到家园之前的超时时间(秒)。
# 您可以将其设置为 0 来禁用此功能。
teleport-cooldown=3
# 您可以定义覆盖玩家家园限制的权限。
# 权限名称将被转换为类似 'homabric.homelimit.<permissionName>' 的权限
# 示例权限:vip: { max-homes=6 }
# 如果您想禁用限制,请使用 'homabric.limit.bypass' 权限。
permissions-home-limit {}
homabric.homes.conf
此文件包含所有由玩家创建的家园。
# 拥有家园的玩家列表。
players {
"27rogi" {
homes {
test {
world="minecraft:overworld"
x=-2.43
y=70.0
z=54.55
yaw=105.9000015258789
pitch=11.850000381469727
# 必须是一个标识符。例如:'minecraft:cobblestone'
icon="minecraft:map"
allowed-players=[]
}
home {
world="minecraft:the_nether"
x=-69.09
y=68.0
z=67.99
yaw=57.599998474121094
pitch=24.75
# 必须是一个标识符。例如:'minecraft:cobblestone'
icon="minecraft:map"
allowed-players=[]
}
}
}
}
从 1.x.x 迁移
由于 2.0.0 版本存在破坏性更改,您需要手动编辑配置文件,并将原始配置文件中的 players 部分移动到名为 homabric.homes.conf 的新文件中。
Homabric
Little yet powerful home management mod for Fabric
⚠️ This mod is being partially rewritten, you can use all functions that are listed below, but they may be changed in future. Code quality might vary and it will be hopefully improved in future.
Features
- ⭐ Sharing homes with players.
- ⭐ Max home limits per group or player via permissions.
- ⭐ Using GUI for teleportation and viewing all home information.
- ⭐ Editing home icons for GUI with support for modded items.
- ⭐ Ability to easily configure the mod and view player locations.
- ⭐ Teleport timeout with ability to prevent teleportation if player moved or got damaged.
Planned features
- Ability to define teleport timeout using permissions.
- Rewrite code for better readability.
- Ability to define
/homecommand aliases in config.
Languages
- ?? English
- ?? Russian
- ?? Chinese (@Neubulae)
Commands
You can use homabric.teleport.bypass permission to bypass teleport timeout.
To disable limits on homes for players give them homabric.limit.bypass permission.
You can also specify aliases for commands in config.
Currently, default aliases are:
- Home Teleportation (home-command-aliases):
h,home - Home Management (homes-command-aliases):
hs,homes
Players
In many cases <home?> defaults to home if name is empty
Teleportation
- /h
homabric.base.use - /h <home?>
homabric.base.byName
Management
- /hs
homabric.base.use- shows GUI with your homes by default - /hs set <home?>
homabric.base.set - /hs remove <home>
homabric.base.remove - /hs p <player> <home>
homabric.base.others - /hs allow <player> <home>
homabric.base.allow - /hs disallow <player> <home>
homabric.base.disallow - /hs setIcon <home> <item identificator>
homabric.base.setIcon
Admins
You can access to admin commands by using /homabric.
- /homabric
homabric.admin.use - /homabric reload
homabric.admin.reload - /homabric teleport <player> <home>
homabric.admin.teleport - /homabric set <player> <home>
homabric.admin.set - /homabric remove <player> <home>
homabric.admin.remove - /homabric list <player>
homabric.admin.list
Classic Commands
You can disable these commands in configuration file by setting enableClassicCommands to false.
- /sethome <name>
homabric.base.set - /removehome <home>
homabric.base.remove - /playerhome <player> <home>
homabric.base.others - /listhome
homabric.base.list - /allowhome <player> <home>
homabric.base.allow - /disallowhome <player> <home>
homabric.base.disallow
Configuration
I developed this mod with simplicity in mind, I decided to store home data inside the configuration file instead of NBT in Entity or World, this allows server owners fast migration between maps without loosing data and editing them which saves a lot of time.
⚠️ Starting from version 2.0.0 the configuration file are now split into two different ones.
homabric.config.conf
This file stores Homabric settings.
# Examples and help: https://github.com/rogi27/Homabric/blob/master/README.md#configuration
# Do not touch this value, it allows mod to check if config file is outdated or not.
config-version=3
# This option enables alternative command variants like /sethome, /removehome and etc.
enable-classic-commands=true
# Allows you to specify aliases for home teleportation commands.
home-command-aliases=[
home,
h
]
# Allows you to specify aliases for home management commands.
homes-command-aliases=[
homes,
hs
]
# Sets the maximum amount of homes per player.
homes-limit=2
# Sets the timeout in seconds before player will be teleported home.
# You can disable this feature by setting it to 0.
teleport-cooldown=3
# You can define permissions that will override home limit for the players if they have them.
# Permission names are transformed to permissions like 'homabric.homelimit.<permissionName>'
# Example permission: vip: { max-homes=6 }
# If you want to disable limit use 'homabric.limit.bypass' permission.
permissions-home-limit {}
homabric.homes.conf
This file contains all homes that are created by players.
# List of players with their homes.
players {
"27rogi" {
homes {
test {
world="minecraft:overworld"
x=-2.43
y=70.0
z=54.55
yaw=105.9000015258789
pitch=11.850000381469727
# Must be an identifier. Example: 'minecraft:cobblestone'
icon="minecraft:map"
allowed-players=[]
}
home {
world="minecraft:the_nether"
x=-69.09
y=68.0
z=67.99
yaw=57.599998474121094
pitch=24.75
# Must be an identifier. Example: 'minecraft:cobblestone'
icon="minecraft:map"
allowed-players=[]
}
}
}
}
Migration from 1.x.x
Due to breaking changes in 2.0.0 you are required to manually edit your config file and move players section from original config to new one called homabric.homes.conf.
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Homabric
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复:避免捆绑 Kotlin 库
- 维护:更新 readme 图标 [skip ci]
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧