跳到正文

Potion Imbuement

作者:AvatarKage

Similar to tipped arrows, you can now imbue effects onto melee weapons using lingering potions, which will apply the effect to the targeted entity.

收藏

介绍

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

divider

Potion Imbuement is a simple datapack that enables applying potion effects to melee weapons using the #potion_imbuement:imbuable item tag. By default, it supports all swords, axes, and spears. To imbue, drop (Q) a weapon and a lingering potion next to each other. All potions are supported including custom and modded* ones.

The mechanic follows the same duration divisor and usage count as tipped arrows ensuring all is fully consistant. Once the imbuement uses run out, restart the process.

guide

POTION EFFECT NAMES ONLY DISPLAY FOR 1.21.5 AND ABOVE (MINECRAFT LIMITATION)

*For Developers

Because of how Minecraft handles potion items, modded potions are only compatible if they use the custom_effects NBT. If they are non-custom potion items, they will need to be registered using another datapack.

# Call this in load.mcfunction with your values
data modify storage potion_imbuement:registry database append value {
  key: "mymod:long_effect",
  id: "mymod:effect",
  duration: 120,
  amplifier: 1
}

Known Bugs

  • Weapons in the offhand will use the mainhand imbuement

NEED A SERVER?

BisectHosting

常见问题

Potion Imbuement 支持哪些 Minecraft 版本?

Potion Imbuement 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Potion Imbuement 怎么安装?

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

评论

登录后评论和评分

AvatarKage 的其他作品

查看全部 →