feat: add virtual aspects
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Timo Ley 2022-12-17 13:43:59 +01:00
parent 6079bace94
commit 659b498a49
4 changed files with 18 additions and 2 deletions

View file

@ -24,7 +24,7 @@ apply from: './gradle/scripts/mixins.gradle'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
version = "1.2.0"
version = "1.3.0"
group= "dev.tilera"
archivesBaseName = "auracore"

View file

@ -20,6 +20,8 @@ public class Aspects {
public static final Aspect FLOWER = new Aspect("flos", 0xFFFF40, new Aspect[] {Aspect.PLANT, Aspects.SOIL}, new ResourceLocation("auracore", "textures/aspects/flos.png"), 1);
public static final Aspect FUNGUS = new Aspect("fungus", 16246215, new Aspect[] {Aspect.PLANT, Aspect.TREE}, new ResourceLocation("auracore", "textures/aspects/fungus.png"), 1);
public static final Aspect VIS = new VirtualAspect("vis", 9896128, new ResourceLocation("thaumcraft", "textures/aspects/praecantatio.png"), 1);
public static void load() {}
}

View file

@ -0,0 +1,13 @@
package dev.tilera.auracore.api;
import net.minecraft.util.ResourceLocation;
import thaumcraft.api.aspects.Aspect;
public class VirtualAspect extends Aspect {
public VirtualAspect(String tag, int color, ResourceLocation image, int blend) {
super(tag, color, null, image, blend);
Aspect.aspects.remove(tag);
}
}

View file

@ -18,4 +18,5 @@ tc.aspect.carus=Expensive, Precious, Valuable
tc.aspect.imperito=Control, Command, Dominate
tc.aspect.solum=Soil, Ground, Foundation
tc.aspect.flos=Flower, Bloom, Blossom
tc.aspect.fungus=Mushroom, Toadstool, Fungi
tc.aspect.fungus=Mushroom, Toadstool, Fungi
tc.aspect.vis=Vis