
Avaritia Item
Активный0.0
Установок
0
Последнее обновление
1 год назад
Клиент
Fabric
Quilt
Forge
Neoforge
Утилиты
Avaritia Item
Language
简体中文
- 这是一个可以像ContentTweaker一样让你添加自定义物品的mod
- 同时可以添加 无尽贪婪 mod 的物品特效到你添加的物品上
物品新增
支持的特效有:
- 无尽宇宙背景
- 物品光环
- 光环颜色自定义
- 光环图片自定义
- 物品边缘脉冲跳动
- 动态炫彩字体
需要前置MOD
#loader avaritiaitem reloadable
import mods.avaritiaitem.AvaritiaItemBuilder;
import mods.avaritiaitem.ItemPrimer;
AvaritiaItemBuilder.registerItem("data_card", 64, "data_card")
// 通过以下方式添加的特效可自由搭配, 自己决定哪个特效需要, 哪个不需要
.shouldDrawHalo(true) // 是否显示光环
.haloSize(8) // 显示光环是必填 光环大小(1-16)
.haloColour("808080") // 显示光环时选填 光环颜色 为十六进制颜色
.haloTextures("halo_image") // 显示光环时选填 光环自定义图片, 只需输入名称不需要后缀, 透明度需要自己使用图片编辑器修改, 如果不设置此项将显示原版无尽的光环 同样需要放到 ./minecraft/resources/avaritiaitem/textures/items 文件夹内
.shouldDrawCosmic(true) // 是否渲染宇宙背景
.mask("data_card_mask") // 上方为true时必填 渲染宇宙背景区域的图片,放置位置同上方光环图片, 必须完全覆盖原图且不需要显示的区域使用全黑像素覆盖(#000000), 需要显示区域使用灰色覆盖(即图片编辑器的颜色选择器中rgb色盘的最左边一列的颜色)
.maskOpacity(1.0f) // 宇宙背景透明度 推荐值 1.0f
.shouldDrawPulse(true) // 是否显示脉冲特效(即无尽催化剂的抖动效果)
.colorfulName(true) // 是否为物品名称添加炫彩动态效果
.addTooltip("§a这是第一条tooltip") // 添加物品 tooltip
.addTooltip("这是第二条tooltip", true) // 添加物品 tooltip 同时设置为炫彩效果
.create();
English
- This mod allows you to add custom items similar to how ContentTweaker does.
- Additionally, it enables you to add special effects from the Avaritia mod to the items you create.
New Item Effects
Supported effects include:
- Infinite Universe Background
- Item Halo
- Customizable halo color
- Customizable halo image
- Edge Pulsating Effect
- Dynamic Rainbow Text
Required Mods
#loader avaritiaitem reloadable
import mods.avaritiaitem.AvaritiaItemBuilder;
import mods.avaritiaitem.ItemPrimer;
AvaritiaItemBuilder.registerItem("data_card", 64, "data_card")
// The following effects can be freely combined; you decide which effects are needed and which are not
.shouldDrawHalo(true) // Whether to display the halo
.haloSize(8) // Required if shouldDrawHalo. Halo size (1-16)
.haloColour("808080") // Optional if displaying halo. Halo color in hexadecimal
.haloTextures("halo_image") // Optional if displaying halo. Custom halo image, only the name without suffix is needed. The transparency needs to be adjusted using an image editor. If not set, the default Avaritia halo will be used. Place the image in the ./minecraft/resources/avaritiaitem/textures/items folder.
.shouldDrawCosmic(true) // Whether to render the cosmic background
.mask("data_card_mask") // Required if the above is true. Image for the area to render the cosmic background. Place it in the same folder as the halo image. Must completely cover the original image, with black pixels (#000000) covering the areas not to be displayed and gray pixels (the leftmost column in the RGB color picker in an image editor) covering the areas to be displayed.
.maskOpacity(1.0f) // Cosmic background opacity. Recommended value is 1.0f
.shouldDrawPulse(true) // Whether to display the pulse effect (i.e., the shaking effect of the Infinity Catalyst)
.colorfulName(true) // Whether to add a dynamic rainbow effect to the item name
.addTooltip("§aThis is the first tooltip") // Add an item tooltip
.addTooltip("This is the second tooltip", true) // Add an item tooltip with a rainbow effect
.create();