1 331
收录服务器
1 859
注册
29 212
玩家
OmiHealth
为《我的世界》增加额外的心脏和健康升级!完美的生存和RPG服务器!
作 者 Adxm
发布时间 2020年10月19日
支持核心 Spigot
原生版本
支持版本 1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16
点此下载

OmiHealth 是一个轻量级的 Minecraft 插件,旨在为游戏添加更多血量选项。它特别适合生存或 RPG 服务器。插件增加了一个名为“血量升级”的物品,玩家可以通过收集材料制作并食用,永久增加一颗心(两点血量)。玩家的最大血量上限为 60 点。

🎉

OmiHealth

⚙️安装

  1. OmiHealth.jar 放入服务器的 plugins 文件夹。
  2. 重启服务器以加载插件。
  3. 进入配置文件 (config.yml) 修改选项。
  4. 在服务器控制台或游戏中执行 /omihealth reload 命令以应用更改。

⌨️命令和权限

  • /omihealth, /ohealth, 或 /oh - OmiHealth 的主命令。
  • omihealth.* - 允许使用所有 OmiHealth 命令和功能。

血量上限权限

  • omihealth.maxhp.20 - 允许血量上限达到 20 (1 排血量,默认值)。
  • omihealth.maxhp.40 - 允许血量上限达到 40 (2 排血量)。
  • omihealth.maxhp.60 - 允许血量上限达到 60 (3 排血量)。
  • 注意:玩家必须拥有 omihealth.maxhp.* 权限节点才能使用血量升级物品。

其他命令和权限

  • /omihealth gethp <玩家> - 显示指定玩家的当前血量。
    • omihealth.gethp - 允许使用 /omihealth gethp 命令。
  • /omihealth sethp <玩家> <血量值> - 设置指定玩家的最大血量。
    • omihealth.sethp - 允许使用 /omihealth sethp 命令。
  • /omihealth addhp <玩家> <血量值> - 增加指定玩家的最大血量值。
    • omihealth.addhp - 允许使用 /omihealth addhp 命令。
  • /omihealth removehp <玩家> <血量值> - 减少指定玩家的最大血量值。
    • omihealth.removehp - 允许使用 /omihealth removehp 命令。
  • /omihealth item <玩家> <数量> - 给予指定玩家血量升级物品。
    • omihealth.item.get - 允许使用 /omihealth item 命令。
    • omihealth.item.use - 允许使用血量升级物品。
  • /omihealth reset <玩家> - 将指定玩家的血量重置为默认值。
    • omihealth.reset - 允许使用 /omihealth reset 命令。
  • /omihealth help - 显示帮助页面。
    • omihealth.help - 允许使用 /omihealth help 命令。
  • /omihealth reload - 重载 OmiHealth 的 config.yml 配置文件。
    • omihealth.reload - 允许使用 /omihealth reload 命令。

🛠️配置

config.yml 示例


# +-------------------------------------------------------------------------------------------------------------------+
# |                                                                                                                   |
# |                                                 OmiHealth Configuration                                           |
# |                                                                                                                   |
# +-------------------------------------------------------------------------------------------------------------------+

# Should the plugin use the custom model data on the Health Upgrade item? (Requires ItemsAdder or similar)
use-custom-model-data: false

# The custom model data to use for the Health Upgrade item.
custom-model-data: 1

# What item should the Health Upgrade be?
upgrade-item: "APPLE"

# Set the display name of the Health Upgrade item.
upgrade-item-name: "&cHealth Upgrade"

# Set the lore of the Health Upgrade item.
upgrade-item-lore:
  - "&7Consume this item to gain"
  - "&7an extra heart!"

# The amount of health to add when the Health Upgrade item is consumed.
health-increase-amount: 2

# Set the default reset hp amount.
default-reset-hp-amount: 20

# Crafting Recipe
crafting-recipe:
  item1: "GOLD_INGOT"
  item2: "DIAMOND"
  item3: "EMERALD"
  item4: "NETHER_STAR"
  item5: "DIAMOND_BLOCK"
  item6: "EMERALD_BLOCK"
  item7: "GOLD_BLOCK"
  item8: "BEACON"
  item9: "NETHERITE_INGOT"

# Messages
messages:
  no-permission: "&cYou do not have permission to use this command."
  player-not-found: "&cPlayer not found."
  health-set: "&aSuccessfully set %player%'s health to %health%."
  health-added: "&aSuccessfully added %health% health to %player%'s max health."
  health-removed: "&aSuccessfully removed %health% health from %player%'s max health."
  health-reset: "&aSuccessfully reset %player%'s health to the default amount."
  item-given: "&aSuccessfully gave %amount% Health Upgrade(s) to %player%."
  max-health-exceeded: "&c%player% already has the maximum amount of health!"
  health-increase: "&aYou have gained an extra heart!"
  current-health: "&a%player% has %health% health."
  reload-successful: "&aSuccessfully reloaded the config."

# +-------------------------------------------------------------------------------------------------------------------+
# |                                                                                                                   |
# |                                                 OmiHealth Configuration                                           |
# |                                                                                                                   |
# +-------------------------------------------------------------------------------------------------------------------+