Avaritia Item
Avaritia Item mod provides the ability to create custom items with visual effects, similar to ContentTweaker, but with emphasis on Avaritia mod's styling.
Main Features
With this mod, you can equip created items with various visual effects:
- Infinity cosmic background - items receive the characteristic cosmic texture in the background
- Glowing halo around the item with customization options:
- Halo color selection in HEX format
- Use of custom textures for the halo
- Edge pulsating animation - shimmering effect along the item's contour
- Dynamic colored name highlighting - item name text shimmers with different colors
Technical Requirements
The following dependencies are required for the mod to work:
- Avaritia (main mod)
- CraftTweaker (for script creation)
- Resource Loader (for loading custom resources)
Item Creation Example
#loader avaritiaitem reloadable
import mods.avaritiaitem.AvaritiaItemBuilder;
import mods.avaritiaitem.ItemPrimer;
AvaritiaItemBuilder.registerItem("data_card", 64, "data_card")
// Effects can be combined as desired
.shouldDrawHalo(true) // Halo display
.haloSize(8) // Halo size (1-16)
.haloColour("808080") // Halo color in HEX
.haloTextures("halo_image") // Custom halo texture
.shouldDrawCosmic(true) // Cosmic background
.mask("data_card_mask") // Mask for cosmic background
.maskOpacity(1.0f) // Background opacity
.shouldDrawPulse(true) // Edge pulsation
.colorfulName(true) // Colored name
.addTooltip("§aThis is the first tooltip") // Adding a tooltip
.addTooltip("This is the second tooltip", true) // Tooltip with color effect
.create();
Custom textures for halos and masks must be placed in the ./minecraft/resources/avaritiaitem/textures/items folder.