promotional bannermobile promotional banner

Avaritia Item

a mod help you create items with effects like avaritia

File Details

AvaritiaItem-1.0.1-beta.jar

  • B
  • May 17, 2024
  • 34.75 KB
  • 74
  • 1.12.2
  • Forge

File Name

AvaritiaItem-1.0.1-beta.jar

Supported Versions

  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:avaritia-item-1019865:5350883")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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