Item Damage Lib│物品損傷庫
A new function has been added that can consume the durability of items.│新增了一個函數,用於消耗物品耐久度。
介绍
Function│功能
- Executing the function
/function damage_lib:damage_item {slot:"<slot>",value:<value>}reduces the durability of the item in the specified slot.│執行該函數:/function damage_lib:damage_item {slot:"<slot>",value:<value>}可以減少指定欄位的物品的耐久度。 <slot>: Equipment slot. This operation can also be performed on non-equipment slots, but will result in errors. Execution will reduce the durability of items in that slot.│<slot>:裝備欄位,非裝備欄位亦可執行,但是會有錯誤行為。執行後會減少該欄位的物品的耐久度。<value>: Integer only. The amount of durability reduced.│<value>:僅限整數。減少的耐久度。
Why is this data pack needed?│為何需要該資料包?
If you directly modify item components, the Unbreaking enchantment will not function correctly. Using this Data Pack will ensure that the durability reduction behavior is consistent with the vanilla version.│如果直接修改物品組件,那麼耐久附魔無法正常生效。若使用該資料包,減少耐久度的行為會與原版行為一致。
常见问题
Item Damage Lib│物品損傷庫 支持哪些 Minecraft 版本?
Item Damage Lib│物品損傷庫 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
Item Damage Lib│物品損傷庫 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
Special_TT 的其他作品
查看全部 →
Villagers Regeneration│村民回復
Villagers now regain health when they sleep.│村民睡覺時會恢復生命值。
TT’s Lib│特特的庫
Includes tags and predicates used in Special TT's Data Pack.│包含了特別的特特的資料包會用到的標籤和述詞。
Arrow Ding│箭矢叮
When an arrow hits a mob, it will make a "ding" sound.│當箭矢擊中生物時,會發出「叮」的一聲。
Damage Optimization│傷害優化
This datapack allows certain types of damage to bypass cooldown.│這個資料包使一些傷害可以無視受擊後傷害免疫。
评论
登录后评论和评分