diff --git a/src/main/java/appeng/hooks/UnlitQuadHooks.java b/src/main/java/appeng/hooks/UnlitQuadHooks.java deleted file mode 100644 index 3235e4ee14a..00000000000 --- a/src/main/java/appeng/hooks/UnlitQuadHooks.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * This file is part of Applied Energistics 2. - * Copyright (c) 2021, TeamAppliedEnergistics, All rights reserved. - * - * Applied Energistics 2 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Applied Energistics 2 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Applied Energistics 2. If not, see . - */ - -package appeng.hooks; - -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; - -import net.minecraft.client.renderer.block.model.BlockElementFace; -import net.minecraft.client.resources.model.ModelBakery; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.util.GsonHelper; -import net.neoforged.neoforge.client.model.ExtraFaceData; - -import appeng.core.AppEng; - -/** - * Implementation details of allowing quads to be defined as "unlit" in JSON models by specifying an "unlit" boolean - * property on the face. - */ -public class UnlitQuadHooks { - - /** - * Thread-Local flag to indicate that an enhanced Applied Energistics model is currently being deserialized. - */ - private static final ThreadLocal ENABLE_UNLIT_EXTENSIONS = new ThreadLocal<>(); - - /** - * Notify the unlit model system that a specific model is about to be deserialized by {@link ModelBakery}. - */ - public static void beginDeserializingModel(ResourceLocation location) { - String namespace = location.getNamespace(); - if (namespace.equals(AppEng.MOD_ID)) { - ENABLE_UNLIT_EXTENSIONS.set(true); - } - } - - /** - * Notify the unlit model system that deserialization of a model has ended. - */ - public static void endDeserializingModel() { - ENABLE_UNLIT_EXTENSIONS.set(false); - } - - public static boolean isUnlitExtensionEnabled() { - Boolean b = ENABLE_UNLIT_EXTENSIONS.get(); - return b != null && b; - } - - public static BlockElementFace enhanceModelElementFace(BlockElementFace modelElement, JsonElement jsonElement) { - JsonObject jsonObject = jsonElement.getAsJsonObject(); - if (GsonHelper.getAsBoolean(jsonObject, "unlit", false)) { - return new BlockElementFace(modelElement.cullForDirection(), modelElement.tintIndex(), - modelElement.texture(), modelElement.uv(), - new ExtraFaceData(0xFFFFFFFF, 15, 15, true), - new org.apache.commons.lang3.mutable.MutableObject<>()); - } - return modelElement; - } - -} diff --git a/src/main/java/appeng/mixins/unlitquad/BlockPartFaceDeserializerMixin.java b/src/main/java/appeng/mixins/unlitquad/BlockPartFaceDeserializerMixin.java deleted file mode 100644 index c84c094be3b..00000000000 --- a/src/main/java/appeng/mixins/unlitquad/BlockPartFaceDeserializerMixin.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of Applied Energistics 2. - * Copyright (c) 2021, TeamAppliedEnergistics, All rights reserved. - * - * Applied Energistics 2 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Applied Energistics 2 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Applied Energistics 2. If not, see . - */ - -package appeng.mixins.unlitquad; - -import java.lang.reflect.Type; - -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonElement; - -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -import net.minecraft.client.renderer.block.model.BlockElementFace; -import net.minecraft.client.renderer.block.model.BlockElementFace.Deserializer; - -import appeng.hooks.UnlitQuadHooks; - -/** - * This mixin will call the hook to deserialize the unlit property, but only if we are currently deserializing an AE2 - * model. - */ -@Mixin(Deserializer.class) -public class BlockPartFaceDeserializerMixin { - - @Inject(method = "deserialize", at = @At("RETURN"), cancellable = true, allow = 1, remap = false) - public void onDeserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext, - CallbackInfoReturnable cri) { - if (!UnlitQuadHooks.isUnlitExtensionEnabled()) { - return; // Not in a model that activated the deserializer - } - - BlockElementFace modelElement = cri.getReturnValue(); - cri.setReturnValue(UnlitQuadHooks.enhanceModelElementFace(modelElement, jsonElement)); - } - -} diff --git a/src/main/java/appeng/mixins/unlitquad/ModelManagerMixin.java b/src/main/java/appeng/mixins/unlitquad/ModelManagerMixin.java deleted file mode 100644 index 24f41c0b506..00000000000 --- a/src/main/java/appeng/mixins/unlitquad/ModelManagerMixin.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Applied Energistics 2. - * Copyright (c) 2021, TeamAppliedEnergistics, All rights reserved. - * - * Applied Energistics 2 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Applied Energistics 2 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Applied Energistics 2. If not, see . - */ - -package appeng.mixins.unlitquad; - -import java.util.Map; - -import com.mojang.datafixers.util.Pair; - -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -import net.minecraft.client.resources.model.ModelManager; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.server.packs.resources.Resource; - -import appeng.hooks.UnlitQuadHooks; - -/** - * The only job of this mixin is to only enable the unlit extensions if the model is whitelisted for it, which is - * decided in {@link UnlitQuadHooks}. - */ -@Mixin(ModelManager.class) -public class ModelManagerMixin { - - @Inject(method = { "lambda$loadBlockModels$8", "m_246478_" }, at = @At("HEAD"), allow = 1) - private static void onBeginLoadModel(Map.Entry entry, - CallbackInfoReturnable> cri) { - UnlitQuadHooks.beginDeserializingModel(entry.getKey()); - } - - @Inject(method = { "lambda$loadBlockModels$8", "m_246478_" }, at = @At("RETURN")) - private static void onEndLoadModel(Map.Entry entry, - CallbackInfoReturnable> cri) { - UnlitQuadHooks.endDeserializingModel(); - } - -} diff --git a/src/main/resources/ae2.mixins.json b/src/main/resources/ae2.mixins.json index 740db0916cd..e0ff763a0b0 100644 --- a/src/main/resources/ae2.mixins.json +++ b/src/main/resources/ae2.mixins.json @@ -15,8 +15,6 @@ "StructureTemplateMixin" ], "client": [ - "unlitquad.ModelManagerMixin", - "unlitquad.BlockPartFaceDeserializerMixin", "AbstractContainerScreenMixin", "GuiGraphicsMixin", "WrappedGenericStackTooltipModIdMixin", diff --git a/src/main/resources/assets/ae2/models/block/controller/controller_block_lights.json b/src/main/resources/assets/ae2/models/block/controller/controller_block_lights.json index f700af39f6a..a43318669b8 100644 --- a/src/main/resources/assets/ae2/models/block/controller/controller_block_lights.json +++ b/src/main/resources/assets/ae2/models/block/controller/controller_block_lights.json @@ -10,32 +10,32 @@ "down": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "north": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } }, "from": [0, 0, 0], diff --git a/src/main/resources/assets/ae2/models/block/controller/controller_column_conflicted.json b/src/main/resources/assets/ae2/models/block/controller/controller_column_conflicted.json index 9126ebebaa3..00e1e31ff87 100644 --- a/src/main/resources/assets/ae2/models/block/controller/controller_column_conflicted.json +++ b/src/main/resources/assets/ae2/models/block/controller/controller_column_conflicted.json @@ -12,32 +12,32 @@ "down": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "north": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } }, "from": [0, 0, 0], diff --git a/src/main/resources/assets/ae2/models/block/controller/controller_column_online.json b/src/main/resources/assets/ae2/models/block/controller/controller_column_online.json index a3c66c7fd32..5363d26f710 100644 --- a/src/main/resources/assets/ae2/models/block/controller/controller_column_online.json +++ b/src/main/resources/assets/ae2/models/block/controller/controller_column_online.json @@ -12,32 +12,32 @@ "down": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "north": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#lights", "uv": [0, 0, 16, 16], - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } }, "from": [0, 0, 0], diff --git a/src/main/resources/assets/ae2/models/block/molecular_assembler_lights.json b/src/main/resources/assets/ae2/models/block/molecular_assembler_lights.json index 3c142d44299..585cba4f978 100644 --- a/src/main/resources/assets/ae2/models/block/molecular_assembler_lights.json +++ b/src/main/resources/assets/ae2/models/block/molecular_assembler_lights.json @@ -13,37 +13,37 @@ "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "down", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "up", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "north": { "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "north", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "south", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "west", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#all", "uv": [2.6, 2.6, 13.4, 13.4], "cullface": "east", - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/block/mysterious_cube.json b/src/main/resources/assets/ae2/models/block/mysterious_cube.json index 31573168b89..0dc87c148e7 100644 --- a/src/main/resources/assets/ae2/models/block/mysterious_cube.json +++ b/src/main/resources/assets/ae2/models/block/mysterious_cube.json @@ -25,12 +25,12 @@ "from": [0, 0, 0], "to": [16, 16, 16], "faces": { - "north": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true }, - "east": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true }, - "south": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true }, - "west": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true }, - "up": { "uv": [16, 0, 0, 16], "texture": "#top", "unlit": true }, - "down": { "uv": [16, 0, 0, 16], "texture": "#bottom", "unlit": true } + "north": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} }, + "east": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} }, + "south": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} }, + "west": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} }, + "up": { "uv": [16, 0, 0, 16], "texture": "#top", "neoforge_data": {"block_light": 15, "sky_light": 15} }, + "down": { "uv": [16, 0, 0, 16], "texture": "#bottom", "neoforge_data": {"block_light": 15, "sky_light": 15} } } } ], diff --git a/src/main/resources/assets/ae2/models/part/conversion_monitor_locked_on.json b/src/main/resources/assets/ae2/models/part/conversion_monitor_locked_on.json index 304bb8eeee7..58350f648ce 100644 --- a/src/main/resources/assets/ae2/models/part/conversion_monitor_locked_on.json +++ b/src/main/resources/assets/ae2/models/part/conversion_monitor_locked_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/conversion_monitor_on.json b/src/main/resources/assets/ae2/models/part/conversion_monitor_on.json index a43086b34f7..6edf36186b9 100644 --- a/src/main/resources/assets/ae2/models/part/conversion_monitor_on.json +++ b/src/main/resources/assets/ae2/models/part/conversion_monitor_on.json @@ -11,7 +11,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -22,7 +22,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/crafting_terminal_on.json b/src/main/resources/assets/ae2/models/part/crafting_terminal_on.json index 605d973bf34..1859459d8d1 100644 --- a/src/main/resources/assets/ae2/models/part/crafting_terminal_on.json +++ b/src/main/resources/assets/ae2/models/part/crafting_terminal_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/display_status_has_channel.json b/src/main/resources/assets/ae2/models/part/display_status_has_channel.json index b7e286e8047..43e27cb0b0b 100644 --- a/src/main/resources/assets/ae2/models/part/display_status_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/display_status_has_channel.json @@ -12,13 +12,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -30,13 +30,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -48,13 +48,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -66,13 +66,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/display_status_on.json b/src/main/resources/assets/ae2/models/part/display_status_on.json index 80b5a4dbf7a..7979783afbc 100644 --- a/src/main/resources/assets/ae2/models/part/display_status_on.json +++ b/src/main/resources/assets/ae2/models/part/display_status_on.json @@ -12,13 +12,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -30,13 +30,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -48,13 +48,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -66,13 +66,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/export_bus_has_channel.json b/src/main/resources/assets/ae2/models/part/export_bus_has_channel.json index aa1baee006f..5f3e04a4444 100644 --- a/src/main/resources/assets/ae2/models/part/export_bus_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/export_bus_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/export_bus_on.json b/src/main/resources/assets/ae2/models/part/export_bus_on.json index 29efc0b62e4..66e225a0a9b 100644 --- a/src/main/resources/assets/ae2/models/part/export_bus_on.json +++ b/src/main/resources/assets/ae2/models/part/export_bus_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/import_bus_has_channel.json b/src/main/resources/assets/ae2/models/part/import_bus_has_channel.json index aa1baee006f..5f3e04a4444 100644 --- a/src/main/resources/assets/ae2/models/part/import_bus_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/import_bus_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/import_bus_on.json b/src/main/resources/assets/ae2/models/part/import_bus_on.json index 29efc0b62e4..66e225a0a9b 100644 --- a/src/main/resources/assets/ae2/models/part/import_bus_on.json +++ b/src/main/resources/assets/ae2/models/part/import_bus_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/interface_has_channel.json b/src/main/resources/assets/ae2/models/part/interface_has_channel.json index 93f99fed5dd..1a5a08c7330 100644 --- a/src/main/resources/assets/ae2/models/part/interface_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/interface_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/interface_on.json b/src/main/resources/assets/ae2/models/part/interface_on.json index 48227535b4c..2b81215b7af 100644 --- a/src/main/resources/assets/ae2/models/part/interface_on.json +++ b/src/main/resources/assets/ae2/models/part/interface_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/level_emitter_status_has_channel.json b/src/main/resources/assets/ae2/models/part/level_emitter_status_has_channel.json index 86d3f5e9dd7..3683f5de57e 100644 --- a/src/main/resources/assets/ae2/models/part/level_emitter_status_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/level_emitter_status_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/level_emitter_status_on.json b/src/main/resources/assets/ae2/models/part/level_emitter_status_on.json index 40625b5ffe4..2ce62324a83 100644 --- a/src/main/resources/assets/ae2/models/part/level_emitter_status_on.json +++ b/src/main/resources/assets/ae2/models/part/level_emitter_status_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/monitor_bright_on.json b/src/main/resources/assets/ae2/models/part/monitor_bright_on.json index 52d8697cde2..e04017559a1 100644 --- a/src/main/resources/assets/ae2/models/part/monitor_bright_on.json +++ b/src/main/resources/assets/ae2/models/part/monitor_bright_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lights", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/monitor_dark_on.json b/src/main/resources/assets/ae2/models/part/monitor_dark_on.json index 122d96ddd27..ed4e9776eea 100644 --- a/src/main/resources/assets/ae2/models/part/monitor_dark_on.json +++ b/src/main/resources/assets/ae2/models/part/monitor_dark_on.json @@ -10,7 +10,7 @@ "north": { "texture": "#lights", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/monitor_medium_on.json b/src/main/resources/assets/ae2/models/part/monitor_medium_on.json index 9a3fd9d9e27..ff44ae120a7 100644 --- a/src/main/resources/assets/ae2/models/part/monitor_medium_on.json +++ b/src/main/resources/assets/ae2/models/part/monitor_medium_on.json @@ -10,7 +10,7 @@ "north": { "texture": "#lights", "tintindex": 4, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_has_channel.json b/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_has_channel.json index f02cda56b68..19801ab79c7 100644 --- a/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_has_channel.json @@ -12,13 +12,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -30,13 +30,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -48,13 +48,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -66,13 +66,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_on.json b/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_on.json index 3a853a8f0c4..deb7126aadf 100644 --- a/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_on.json +++ b/src/main/resources/assets/ae2/models/part/p2p/p2p_tunnel_status_on.json @@ -12,13 +12,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -30,13 +30,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -48,13 +48,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -66,13 +66,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/pattern_access_terminal_on.json b/src/main/resources/assets/ae2/models/part/pattern_access_terminal_on.json index 6774eead5ae..771d06e5d5c 100644 --- a/src/main/resources/assets/ae2/models/part/pattern_access_terminal_on.json +++ b/src/main/resources/assets/ae2/models/part/pattern_access_terminal_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/pattern_encoding_terminal_on.json b/src/main/resources/assets/ae2/models/part/pattern_encoding_terminal_on.json index 175b7591774..96fcec415ed 100644 --- a/src/main/resources/assets/ae2/models/part/pattern_encoding_terminal_on.json +++ b/src/main/resources/assets/ae2/models/part/pattern_encoding_terminal_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/storage_bus_has_channel.json b/src/main/resources/assets/ae2/models/part/storage_bus_has_channel.json index 93f99fed5dd..1a5a08c7330 100644 --- a/src/main/resources/assets/ae2/models/part/storage_bus_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/storage_bus_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/storage_bus_on.json b/src/main/resources/assets/ae2/models/part/storage_bus_on.json index 48227535b4c..2b81215b7af 100644 --- a/src/main/resources/assets/ae2/models/part/storage_bus_on.json +++ b/src/main/resources/assets/ae2/models/part/storage_bus_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/storage_monitor_locked_on.json b/src/main/resources/assets/ae2/models/part/storage_monitor_locked_on.json index e35650baa35..75a74106eb2 100644 --- a/src/main/resources/assets/ae2/models/part/storage_monitor_locked_on.json +++ b/src/main/resources/assets/ae2/models/part/storage_monitor_locked_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/storage_monitor_on.json b/src/main/resources/assets/ae2/models/part/storage_monitor_on.json index 63fa712f701..8ad12449c45 100644 --- a/src/main/resources/assets/ae2/models/part/storage_monitor_on.json +++ b/src/main/resources/assets/ae2/models/part/storage_monitor_on.json @@ -11,7 +11,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -22,7 +22,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/terminal_on.json b/src/main/resources/assets/ae2/models/part/terminal_on.json index c7309083aab..1a354a41328 100644 --- a/src/main/resources/assets/ae2/models/part/terminal_on.json +++ b/src/main/resources/assets/ae2/models/part/terminal_on.json @@ -12,7 +12,7 @@ "north": { "texture": "#lightsBright", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -23,7 +23,7 @@ "north": { "texture": "#lightsMedium", "tintindex": 2, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -34,7 +34,7 @@ "north": { "texture": "#lightsDark", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/toggle_bus_status_has_channel.json b/src/main/resources/assets/ae2/models/part/toggle_bus_status_has_channel.json index 7d386c08be8..5e64f5d4dc1 100644 --- a/src/main/resources/assets/ae2/models/part/toggle_bus_status_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/toggle_bus_status_has_channel.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/toggle_bus_status_on.json b/src/main/resources/assets/ae2/models/part/toggle_bus_status_on.json index 696ebae9620..55841417d8a 100644 --- a/src/main/resources/assets/ae2/models/part/toggle_bus_status_on.json +++ b/src/main/resources/assets/ae2/models/part/toggle_bus_status_on.json @@ -10,22 +10,22 @@ "down": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "east": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/transition_plane_has_channel.json b/src/main/resources/assets/ae2/models/part/transition_plane_has_channel.json index 90e9a0be99f..933d66835ce 100644 --- a/src/main/resources/assets/ae2/models/part/transition_plane_has_channel.json +++ b/src/main/resources/assets/ae2/models/part/transition_plane_has_channel.json @@ -26,13 +26,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -44,13 +44,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -62,13 +62,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -80,13 +80,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 1, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } } diff --git a/src/main/resources/assets/ae2/models/part/transition_plane_on.json b/src/main/resources/assets/ae2/models/part/transition_plane_on.json index 43caaf03c33..ab4fc7e8e50 100644 --- a/src/main/resources/assets/ae2/models/part/transition_plane_on.json +++ b/src/main/resources/assets/ae2/models/part/transition_plane_on.json @@ -26,13 +26,13 @@ "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "west": { "uv": [0, 7, 1, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -44,13 +44,13 @@ "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "south": { "uv": [15, 7, 16, 9], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -62,13 +62,13 @@ "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "up": { "uv": [7, 0, 9, 1], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }, @@ -80,13 +80,13 @@ "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} }, "down": { "uv": [7, 15, 9, 16], "texture": "#indicator", "tintindex": 3, - "unlit": true + "neoforge_data": {"block_light": 15, "sky_light": 15} } } }