跳到正文

Player Healing│玩家治癒

作者:Special_TT

A new function has been added that can heal players based on the input healing amount.│新增了一個函數,可以根據輸入的治療量為玩家治療。

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

“Previously, when data pack authors wanted to create healing sections for players, the healing amount could only be measured in units of 4. With this data pack, the healing amount can be any number.”

「以往資料包作者要製作治癒玩家的部分時,治癒量只能以4為單位,有了這個資料包,治癒量就能夠是任何數字。」

Function│功能

  • Entering the following command: /function player_healing:heal {healing_amount:<value>} will restore the player’s health.│輸入以下指令:/function player_healing:heal {healing_amount:<value>}可以為玩家回復生命值。
  • <value>: Allows decimal and integer values; amount of healing.│<value>:允許小數及整數數值,治療量。

常见问题

Player Healing│玩家治癒 支持哪些 Minecraft 版本?

Player Healing│玩家治癒 支持 Minecraft Java 版 1.21.2–1.21.11,共 10 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Player Healing│玩家治癒 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Special_TT 的其他作品

查看全部 →