跳到正文

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.

收藏

介绍

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

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

](https://avatarka.ge/bisect)

常见问题

Potion Imbuement 支持哪些 Minecraft 版本?

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

Potion Imbuement 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

AvatarKage 的其他作品

查看全部 →