promotional bannermobile promotional banner

Avaritia Item

a mod help you create items with effects like avaritia
Back to Files

AvaritiaItem-1.0.1-beta.jar

File nameAvaritiaItem-1.0.1-beta.jar
Uploader
i_xiaotiani_xiaotian
Uploaded
May 17, 2024
Downloads
78
Size
34.8 KB
Mod Loaders
Forge
File ID
5350883
Type
B
Beta
Supported game versions
  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:avaritia-item-1019865:5350883")

Learn more about Curse Maven

What's new

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();

This mod has no additional files