• >
  • 魔改Mod
  • >
  • 自定义附魔光效 (Custom Colorful Enchantment)
自定义附魔光效 (Custom Colorful Enchantment)
模组属性评比

距离显示结果还剩5票~

路过的这位少侠,你觉得这款Mod怎么样,可否愿意来评一评它呢?登录并评比
更新日志
  • 暂无日志..

历史编辑记录更多
    管理组申请

      暂无管理组..

    编辑组申请

      暂无编辑组..

    开发组申请
    最近参与编辑
    活跃
    开源

    自定义附魔光效

    Custom Colorful Enchantment

    0.0

    无人问津

    昨日指数: 11
    昨日平均指数: 86.130

    3626

    总浏览

    --

    资料填充率


    下载本模组
    • 该模组允许玩家使用 Json 或制作附属模组调整附魔光效。

      自1.0.3起不再有前置。

      Json

      Config

      {
        "colors": []
      }

      colors 为光效项数组。

      光效项

      custom_colorful_enchantment:enchantment

      示例:

      {
        "type": "custom_colorful_enchantment:enchantment",
        "_comment_type": "  but has accept_all means accept all item -- always true",
        "_accept_all": true,
        "enchantment":"minecraft:fire_protection",
        "color": 16711680,
        "_comment_color": "16,777,215 is #FFFFFF"
      }

      type 指定了该光效项类型为 custom_colorful_enchantment:enchantment。

      若存在 accept_all,无论为何值,都作用与所有附魔。否则只作用于 enchantment,颜色 color 为 RGB 颜色代码。

      custom_colorful_enchantment:ingredient

      示例:

      {
        "type": "custom_colorful_enchantment:ingredient",
        "_comment_type": "  but has accept_all means accept all item -- always true",
        "_accept_all": true,
        "color": 3928840,
        "_comment_color": "65535 is #3BD308",
        "ingredient":{
          "item": "minecraft:wool",
          "data": 0
        },
        "_comment_ingredient":"a ingredient used at recipe json"
      }

      若存在 accept_all,无论为何值,都作用与所有物品。否则只作用于 ingredient,颜色 color 为 RGB 颜色代码。ingredient 是原版配方 json 用于判断物品是否可合成的 ingredient

      API

      Json加载器

      监听com.Hileb.custom_colorful_enchantment.api.registry.ColorFactoryRegistry$RegistryEvent 以注册。

      该模组自带2个加载器,加载器加载 Json 以产生颜色产生器。

      custom_colorful_enchantment:enchantment
      custom_colorful_enchantment:ingredient

      颜色产生器

      监听com.Hileb.custom_colorful_enchantment.api.registry.ColorInstancesRegistry$RegistryEvent 以注册。

      可以注册,也可以由加载器产生。

      该模组自带了两个颜色产生器:

      minecraft:enchantment产生原版附魔光效#8040CB
      custom_colorful_enchantment:nbt 如果物品nbt中有enchantment_color则添加该值为光效。

      渲染

      取消了原版附魔光效渲染。

      获取所有光效,该 Mod 取平均值后渲染(合并)。

      画廊

      自定义附魔光效 (Custom Colorful Enchantment)-第1张图片

    短评加载中..