跳到正文

After Taste

作者:mallrat208

Item Tag based Potion Effects for Consumables

收藏

介绍

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

After Taste is a 1.15.2 Forge Mod primarily designed for Mod Pack makers. You will either need to make a Datapack or use something like The Loader.

Using After Taste you can assign potion effects to items, primarily food items but anything that fires off the LivingEntityUseItemEvent.Finish event works, via Item Tags. Since it is Tag based it affects all instances of the tagged Item. Effects are treated as recipes and are as such synchronized between the server and client upon connection meaning you can add custom effects for your server.

 

You can for example make items with the tag “minecraft:fishes” give you Water Breathing for 5 minutes. 
To do that, you would add a recipe like follows

 

{
  "type": "aftertaste:food_effect",
  "itemTag": "minecraft:fishes",
  "effects": {
    "name": "minecraft:water_breathing",
    "duration": 6000
  }
}

‘effects’ may be either a JSON Array or a JSON Object,  Additionally, the ‘effects’ entries support additional values to further specify the effect:

    "amp": 0 #DEFAULT 0
    "ambient": false #DEFAULT false
    "particles": true #DEFAULT true

 

常见问题

After Taste 支持哪些 Minecraft 版本?

After Taste 支持 Minecraft Java 版 1.15.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

After Taste 怎么安装?

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

评论

登录后评论和评分

mallrat208 的其他作品

查看全部 →