▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/AspectsLib
AspectsLib

AspectsLib

Library mod that adds data-driven Aspects from Thaumcraft, allowing to attach Aspects to entities and create unique interactions between them.

693
1
Все версииAspectsLib (1.1.5)

AspectsLib (1.1.5)

Release4 мес. назад

Список изменений

  • 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.

Файлы

aspectslib-1.1.5.jar(306.25 KiB)
Основной
Скачать
aspectslib-1.1.5-sources.jar(256.12 KiB)
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.1.5

Загрузчики

Fabric

Версии игры

1.20.1

Загрузок

57

Дата публикации

4 мес. назад

Загрузил

ID версии

Главная