nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

AspectsLib (1.1.5)

Changelog

  • Added proper rendering to the Aura Node entity (Pull Request #3 by Favouriteless
  • Gave Aura Nodes conditional transparency based on a condition similar to how aspects are shown on tooltips. I modifed the rendering code to make it transparent by default and only show fully when a condition is met. The Aura Node visibility should be completely configurable by other mods using the API now, with no default condition.

Usage Example for Other Mods

Other mods using your library would need to add their own visibility conditions:

// In another mod's client initialization
AspectsAPI.addAuraNodeVisibilityCondition((player, hasAspects) -> {
    // Example: Show nodes when player has a specific item
    return player.getMainHandStack().isOf(Items.NETHER_STAR);
});

// Or example: Show nodes when player is in creative mode
AspectsAPI.addAuraNodeVisibilityCondition((player, hasAspects) -> {
    return player.isCreative();
});

// Or example: Show nodes when player has a specific effect
AspectsAPI.addAuraNodeVisibilityCondition((player, hasAspects) -> {
    return player.hasStatusEffect(StatusEffects.NIGHT_VISION);
});

Default Behavior Now

  • By default: Aura nodes are semi-transparent (20% opacity) because no conditions are met
  • When conditions are added via API: Nodes become fully visible (100% opacity) when any condition returns true
  • Completely pluggable: No built-in logic - entirely driven by API consumers

This makes the library modular and allows each mod that uses it to define its own conditions for when Aura Nodes should be visible.

Files

aspectslib-1.1.5.jar(306.25 KiB) Primary Download
aspectslib-1.1.5-sources.jar(256.12 KiB) Download

External resources


Project members

Overgrown

Lead Developer

Leclowndu93150

Developer

thatrobin

Developer

electrictaco

Texture Artist


Technical information

License
Client side
required
Server side
required
Project ID