Essential Commands

模组

· 作者 kay-xr

该项目旨在以轻量且无依赖的方式,为任何 NeoForge / Fabric 服务器添加必要的命令。

0 本站下载 0 关注 更新于 8 个月前

最新 1.0.0+1.21.4-1.21.10 · 1.21.10 · Fabric

一键开服(送7天)

?️ 基础命令

一个轻量级、跨平台(Fabric + NeoForge)的 Minecraft 基础功能模组。作为 EssentialsX / FTBEssentials 的无依赖替代方案而开发。

我创建这个模组是因为找不到轻量级的替代品。该模组旨在仅添加必要的命令,不包含多余的功能。

支持 LuckPerms 以实现细粒度的权限控制。如果未安装 LuckPerms,则回退到原版 OP 等级。


配置

首次启动时生成于 config/essential.commands.toml。可通过 /essentials reload 在运行时重载配置。

# Essential Commands Configuration

[general]
# 可选的服务器名称,用于聊天前缀(例如 "SuperCraft" → "[SuperCraft Essentials]")
# 留空则使用默认前缀 "[Essentials]"
server_name = ""

[homes]
# 启用 /home, /sethome, /delhome 命令
enabled = true
# 允许玩家拥有多个命名家园
multiple_homes = false
# 每位玩家的最大家园数量(仅在 multiple_homes = true 时生效)
max_homes = 5
# 强制要求 OP(2 级)才能使用家园相关命令,忽略 LuckPerms 节点
op_only = false
# 玩家必须静止站立多少秒后才能传送(0 = 瞬间传送)
warmup_seconds = 5
# 玩家再次使用 /home 之前需要等待的秒数(0 = 无冷却时间)
cooldown_seconds = 60

[back]
# 启用 /back 命令
enabled = true
# 强制要求 OP(2 级)才能使用 /back
op_only = true
warmup_seconds = 5
cooldown_seconds = 60

[tpa]
# 启用 /tpa, /tpaaccept, /tpadeny 命令
enabled = true
# TPA 请求过期的秒数
timeout_seconds = 60
# 请求被接受后的预热时间(0 = 瞬间传送)
warmup_seconds = 5
# 请求者发送另一个 TPA 请求前需要等待的秒数(0 = 无冷却时间)
cooldown_seconds = 30

[warps]
# 启用 /warp, /setwarp, /delwarp, /warps 命令
enabled = true
# 强制要求 OP(2 级)才能使用 /warp(设置和删除始终需要 OP)
op_only = false
warmup_seconds = 5
cooldown_seconds = 60

[spawn]
# 启用 /spawn 命令
enabled = true
# 强制要求 OP(2 级)才能使用 /spawn
op_only = false
warmup_seconds = 5
cooldown_seconds = 60

[enderchest]
# 启用 /enderchest (/ec) 命令
enabled = true
# 强制要求 OP(2 级)才能使用 /enderchest
op_only = true

[workbench]
# 启用 /workbench (/craft) 命令
enabled = true
# 强制要求 OP(2 级)才能使用 /workbench
op_only = true

[other]
# 强制要求 OP(2 级)才能使用 /near
near_op_only = true
# 强制要求 OP(2 级)才能使用 /seen
seen_op_only = true

命令

在游戏中使用 /essentials [page] 查看你可用的命令列表。

传送

命令 描述 权限节点 默认权限
/home [name] 传送到你的家园 rift_essentials.command.home 所有玩家
/sethome [name] 在当前地点设置家园 rift_essentials.command.home.set 所有玩家
/delhome [name] 删除一个家园 rift_essentials.command.home.delete 所有玩家
/homes 列出所有你的家园 rift_essentials.command.home.list 所有玩家
/back 返回上一个位置或死亡地点 rift_essentials.command.back OP
/spawn 传送到世界出生点 rift_essentials.command.spawn 所有玩家
/warp <name> 传送到服务器传送点 rift_essentials.command.warp 所有玩家
/warps 列出所有服务器传送点 rift_essentials.command.warp 所有玩家
/setwarp <name> 在当前地点创建一个传送点 rift_essentials.command.warp.manage OP
/delwarp <name> 删除一个传送点 rift_essentials.command.warp.manage OP
/tpa <player> 请求传送到某位玩家 rift_essentials.command.tpa 所有玩家
/tpaaccept <player> 接受传送请求 rift_essentials.command.tpa.respond 所有玩家
/tpadeny <player> 拒绝传送请求 rift_essentials.command.tpa.respond 所有玩家
/tppos <x> <y> <z> 传送到坐标(支持 ~) rift_essentials.command.tppos OP
/tphere <player> 将某位玩家传送到你的位置 rift_essentials.command.tphere OP

社交

命令 描述 权限节点 默认状态
/msg <玩家> <消息> 发送私聊消息 rift_essentials.command.msg 所有玩家

| /tell <player> <msg> | /msg 的别名 | rift_essentials.command.msg | 所有玩家 | | /r <message> | 回复最后收到的私人消息 | rift_essentials.command.msg | 所有玩家 |

| /afk | 切换 AFK 状态 | rift_essentials.command.afk | 所有玩家 | | /near [radius] | 列出 N 格内的玩家(默认 100) | rift_essentials.command.near | 所有玩家 | | /seen <player> | 显示某玩家上次在线的时间 | rift_essentials.command.seen | 所有玩家 | | /nick <name\|off> | 设置或清除你的显示昵称 | rift_essentials.command.nick | OP | | /broadcast <msg> | 向所有玩家广播消息 | rift_essentials.command.broadcast | OP |

| /bc <msg> | /broadcast 的别名 | rift_essentials.command.broadcast | OP |

工具

命令 描述 权限节点 默认值
/heal [玩家] 恢复生命值并移除所有状态效果 rift_essentials.command.heal / .heal.other OP
/feed [玩家] 恢复饥饿值和饱和度 rift_essentials.command.feed / .feed.other OP
/fly [玩家] 切换飞行能力 rift_essentials.command.fly / .fly.other OP
/god [玩家] 切换无敌模式 rift_essentials.command.god / .god.other OP
/repair 修复主手物品 rift_essentials.command.repair OP
/workbench 在任何位置打开工作台 rift_essentials.command.workbench 所有玩家
/craft /workbench 的别名 rift_essentials.command.workbench 所有玩家
/enderchest 在任何位置打开末影箱 rift_essentials.command.enderchest 所有玩家
/ec /enderchest 的别名 rift_essentials.command.enderchest 所有玩家

管理员

命令 描述 默认值
/essentials reload 重新加载配置而不重启服务器 OP
/essentials [页码] 显示你可用的命令列表 所有玩家

预热与冷却时间

传送命令支持可配置的预热计时器和冷却时间。将任意一项设置为 0 即可禁用。

在预热期间:

  • 会显示倒计时消息
  • 移动到不同的方块取消传送
  • 受到伤害取消传送

冷却时间仅在传送成功后开始计算。


数据持久化

所有玩家数据均保存至 <world>/data/rift_essentials.dat(标准 Minecraft NBT SavedData)。随世界自动保存。包括:

  • 家园和服务器传送点
  • 上次位置(/back)
  • 昵称
  • 最后上线时间与用户名索引(用于离线状态的 /seen 查询)

完整权限节点参考

rift_essentials.command.home
rift_essentials.command.home.set
rift_essentials.command.home.delete
rift_essentials.command.home.list
rift_essentials.command.back
rift_essentials.command.spawn
rift_essentials.command.warp
rift_essentials.command.warp.manage
rift_essentials.command.tpa
rift_essentials.command.tpa.respond
rift_essentials.command.tppos
rift_essentials.command.tphere
rift_essentials.command.msg
rift_essentials.command.afk
rift_essentials.command.near
rift_essentials.command.seen
rift_essentials.command.nick
rift_essentials.command.broadcast
rift_essentials.command.heal
rift_essentials.command.heal.other
rift_essentials.command.feed
rift_essentials.command.feed.other
rift_essentials.command.fly
rift_essentials.command.fly.other
rift_essentials.command.god
rift_essentials.command.god.other
rift_essentials.command.repair
rift_essentials.command.workbench
rift_essentials.command.enderchest

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源