mirror of
https://github.com/TeamMidnightDust/VisualOverhaul.git
synced 2025-12-16 22:05:09 +01:00
VisualOverhaul 4.0.0 - Update to 1.18, Smoker, Blast Furnace, Toggle Potion Glint
- Update to 1.18 - Overhaul Smoker - Overhaul Blast Furnace - Add toggle to disable potion glint
This commit is contained in:
@@ -8,22 +8,19 @@ import eu.midnightdust.visualoverhaul.block.renderer.JukeboxBlockEntityRenderer;
|
||||
import eu.midnightdust.visualoverhaul.config.VOConfig;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
||||
import net.fabricmc.fabric.api.client.rendereregistry.v1.BlockEntityRendererRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityModelLayerRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.client.model.FabricModelPredicateProviderRegistry;
|
||||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
||||
import net.fabricmc.fabric.api.resource.ResourcePackActivationType;
|
||||
import net.fabricmc.fabric.impl.blockrenderlayer.BlockRenderLayerMapImpl;
|
||||
import net.fabricmc.fabric.impl.client.rendering.BlockEntityRendererRegistryImpl;
|
||||
import net.fabricmc.fabric.impl.networking.ClientSidePacketRegistryImpl;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.entity.BlockEntityType;
|
||||
import net.minecraft.block.entity.BrewingStandBlockEntity;
|
||||
import net.minecraft.block.entity.FurnaceBlockEntity;
|
||||
import net.minecraft.block.entity.JukeboxBlockEntity;
|
||||
import net.minecraft.block.entity.*;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.color.world.BiomeColors;
|
||||
import net.minecraft.client.render.*;
|
||||
@@ -39,9 +36,10 @@ import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.biome.BuiltinBiomes;
|
||||
|
||||
import java.util.logging.LogManager;
|
||||
|
||||
import static eu.midnightdust.visualoverhaul.VisualOverhaul.*;
|
||||
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
public class VisualOverhaulClient implements ClientModInitializer {
|
||||
|
||||
public static Block JukeBoxTop = new JukeboxTop();
|
||||
@@ -61,10 +59,14 @@ public class VisualOverhaulClient implements ClientModInitializer {
|
||||
BlockRenderLayerMapImpl.INSTANCE.putBlock(Blocks.JUKEBOX, RenderLayer.getCutout());
|
||||
BlockRenderLayerMapImpl.INSTANCE.putBlock(JukeBoxTop, RenderLayer.getCutout());
|
||||
BlockRenderLayerMapImpl.INSTANCE.putBlock(Blocks.FURNACE, RenderLayer.getCutout());
|
||||
BlockRenderLayerMapImpl.INSTANCE.putBlock(Blocks.SMOKER, RenderLayer.getCutout());
|
||||
BlockRenderLayerMapImpl.INSTANCE.putBlock(Blocks.BLAST_FURNACE, RenderLayer.getCutout());
|
||||
|
||||
BlockEntityRendererRegistry.INSTANCE.register(BlockEntityType.BREWING_STAND, BrewingStandBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistry.INSTANCE.register(BlockEntityType.JUKEBOX, JukeboxBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistry.INSTANCE.register(BlockEntityType.FURNACE, FurnaceBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistryImpl.register(BlockEntityType.BREWING_STAND, BrewingStandBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistryImpl.register(BlockEntityType.JUKEBOX, JukeboxBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistryImpl.register(BlockEntityType.FURNACE, FurnaceBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistryImpl.register(BlockEntityType.SMOKER, FurnaceBlockEntityRenderer::new);
|
||||
BlockEntityRendererRegistryImpl.register(BlockEntityType.BLAST_FURNACE, FurnaceBlockEntityRenderer::new);
|
||||
|
||||
// // Phonos Compat //
|
||||
// if (FabricLoader.getInstance().isModLoaded("phonos")) {
|
||||
@@ -113,7 +115,7 @@ public class VisualOverhaulClient implements ClientModInitializer {
|
||||
inv.set(i, attachedData.readItemStack());
|
||||
}
|
||||
packetContext.getTaskQueue().execute(() -> {
|
||||
if (client.world != null && client.world.getBlockEntity(pos) != null && client.world.getBlockEntity(pos) instanceof FurnaceBlockEntity blockEntity) {
|
||||
if (client.world != null && client.world.getBlockEntity(pos) != null && client.world.getBlockEntity(pos) instanceof AbstractFurnaceBlockEntity blockEntity) {
|
||||
blockEntity.setStack(0, inv.get(0));
|
||||
blockEntity.setStack(1, inv.get(1));
|
||||
blockEntity.setStack(2, inv.get(2));
|
||||
@@ -128,21 +130,22 @@ public class VisualOverhaulClient implements ClientModInitializer {
|
||||
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","coloredwaterbucket"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED);
|
||||
});
|
||||
|
||||
|
||||
// Biome-colored Items
|
||||
if (VOConfig.coloredItems) {
|
||||
ClientTickEvents.END_CLIENT_TICK.register(client -> {
|
||||
int waterColor;
|
||||
int foliageColor;
|
||||
int grassColor;
|
||||
if (client.world != null) {
|
||||
assert client.player != null;
|
||||
waterColor = client.world.getColor(client.player.getBlockPos(), BiomeColors.WATER_COLOR);
|
||||
foliageColor = client.world.getColor(client.player.getBlockPos(), BiomeColors.FOLIAGE_COLOR);
|
||||
grassColor = client.world.getColor(client.player.getBlockPos(), BiomeColors.GRASS_COLOR);
|
||||
} else {
|
||||
waterColor = BuiltinBiomes.PLAINS.getWaterColor();
|
||||
foliageColor = BuiltinBiomes.PLAINS.getFoliageColor();
|
||||
grassColor = BuiltinBiomes.PLAINS.getFoliageColor();
|
||||
if (client.world != null && client.player != null) {
|
||||
waterColor = BiomeColors.getWaterColor(client.world, client.player.getBlockPos());
|
||||
foliageColor = BiomeColors.getFoliageColor(client.world, client.player.getBlockPos());
|
||||
grassColor = BiomeColors.getGrassColor(client.world, client.player.getBlockPos());
|
||||
}
|
||||
else {
|
||||
waterColor = 4159204;
|
||||
foliageColor = -8934609;
|
||||
grassColor = -8934609;
|
||||
}
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.WATER_BUCKET);
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.GRASS_BLOCK);
|
||||
@@ -155,19 +158,19 @@ public class VisualOverhaulClient implements ClientModInitializer {
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.JUNGLE_LEAVES);
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.OAK_LEAVES);
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> {
|
||||
if (PotionUtil.getPotion(stack) == Potions.WATER && tintIndex == 0) {
|
||||
if ((PotionUtil.getPotion(stack) == Potions.WATER || PotionUtil.getPotion(stack) == Potions.MUNDANE || PotionUtil.getPotion(stack) == Potions.THICK || PotionUtil.getPotion(stack) == Potions.AWKWARD) && tintIndex == 0) {
|
||||
return waterColor;
|
||||
}
|
||||
return tintIndex > 0 ? -1 : PotionUtil.getColor(stack);
|
||||
}, Items.POTION);
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> {
|
||||
if (PotionUtil.getPotion(stack) == Potions.WATER && tintIndex == 0) {
|
||||
if ((PotionUtil.getPotion(stack) == Potions.WATER || PotionUtil.getPotion(stack) == Potions.MUNDANE || PotionUtil.getPotion(stack) == Potions.THICK || PotionUtil.getPotion(stack) == Potions.AWKWARD) && tintIndex == 0) {
|
||||
return waterColor;
|
||||
}
|
||||
return tintIndex > 0 ? -1 : PotionUtil.getColor(stack);
|
||||
}, Items.SPLASH_POTION);
|
||||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> {
|
||||
if (PotionUtil.getPotion(stack) == Potions.WATER && tintIndex == 0) {
|
||||
if ((PotionUtil.getPotion(stack) == Potions.WATER || PotionUtil.getPotion(stack) == Potions.MUNDANE || PotionUtil.getPotion(stack) == Potions.THICK || PotionUtil.getPotion(stack) == Potions.AWKWARD) && tintIndex == 0) {
|
||||
return waterColor;
|
||||
}
|
||||
return tintIndex > 0 ? -1 : PotionUtil.getColor(stack);
|
||||
|
||||
@@ -7,7 +7,6 @@ import net.minecraft.block.entity.BrewingStandBlockEntity;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.render.VertexConsumerProvider;
|
||||
import net.minecraft.client.render.WorldRenderer;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRenderer;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRendererFactory;
|
||||
import net.minecraft.client.render.model.json.ModelTransformation;
|
||||
|
||||
@@ -5,7 +5,7 @@ import eu.midnightdust.visualoverhaul.config.VOConfig;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.*;
|
||||
import net.minecraft.block.entity.FurnaceBlockEntity;
|
||||
import net.minecraft.block.entity.AbstractFurnaceBlockEntity;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.render.RenderLayer;
|
||||
import net.minecraft.client.render.VertexConsumer;
|
||||
@@ -24,16 +24,15 @@ import net.minecraft.util.math.Vec3f;
|
||||
import java.util.Objects;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class FurnaceBlockEntityRenderer implements BlockEntityRenderer<FurnaceBlockEntity> {
|
||||
public class FurnaceBlockEntityRenderer<E extends AbstractFurnaceBlockEntity> implements BlockEntityRenderer<E> {
|
||||
private final FurnaceWoodenPlanksModel planks;
|
||||
|
||||
public FurnaceBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) {
|
||||
this.planks = new FurnaceWoodenPlanksModel(ctx.getLayerModelPart(FurnaceWoodenPlanksModel.WOODEN_PLANKS_MODEL_LAYER));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(FurnaceBlockEntity blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) {
|
||||
if (VOConfig.furnace && blockEntity.getCachedState().getBlock().getDefaultState().isOf(Blocks.FURNACE)) {
|
||||
public void render(E blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) {
|
||||
if (VOConfig.furnace && blockEntity != null) {
|
||||
BlockState blockState = blockEntity.getCachedState();
|
||||
int lightAtBlock = WorldRenderer.getLightmapCoordinates(Objects.requireNonNull(blockEntity.getWorld()), blockEntity.getPos().offset(blockState.get(AbstractFurnaceBlock.FACING)));
|
||||
ItemStack item1 = blockEntity.getStack(0);
|
||||
@@ -44,6 +43,8 @@ public class FurnaceBlockEntityRenderer implements BlockEntityRenderer<FurnaceBl
|
||||
matrices.push();
|
||||
|
||||
matrices.translate(0.5f, 0.58f, 0.5f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.SMOKER)) matrices.translate(0f, -0.06f, 0f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.BLAST_FURNACE)) matrices.translate(0f, -0.25f, 0f);
|
||||
matrices.scale(1f, 1f, 1f);
|
||||
matrices.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(angle * 3 + 180));
|
||||
matrices.translate(0.0f, 0.0f, -0.4f);
|
||||
@@ -57,6 +58,8 @@ public class FurnaceBlockEntityRenderer implements BlockEntityRenderer<FurnaceBl
|
||||
matrices.push();
|
||||
|
||||
matrices.translate(0.5f, 0.08f, 0.5f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.SMOKER)) matrices.translate(0f, 0.06f, 0f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.BLAST_FURNACE)) matrices.translate(0f, 0.24f, 0f);
|
||||
matrices.scale(1f, 1f, 1f);
|
||||
matrices.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(angle * 3 + 180));
|
||||
matrices.translate(0.0f, 0.0f, -0.4f);
|
||||
@@ -68,10 +71,12 @@ public class FurnaceBlockEntityRenderer implements BlockEntityRenderer<FurnaceBl
|
||||
else if (!item2.isEmpty()) {
|
||||
matrices.push();
|
||||
BlockState state = Block.getBlockFromItem(item2.getItem()).getDefaultState();
|
||||
Sprite texture = MinecraftClient.getInstance().getBlockRenderManager().getModel(state).getSprite();
|
||||
Sprite texture = MinecraftClient.getInstance().getBlockRenderManager().getModel(state).getParticleSprite();
|
||||
VertexConsumer vertexConsumer = vertexConsumers.getBuffer(RenderLayer.getEntityCutoutNoCull(spriteToTexture(texture)));
|
||||
|
||||
matrices.translate(0.5f, -1.3f, 0.5f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.SMOKER)) matrices.translate(0f, 0.06f, 0f);
|
||||
if (blockEntity.getCachedState().getBlock().equals(Blocks.BLAST_FURNACE)) matrices.translate(0f, 0.2f, 0f);
|
||||
matrices.scale(1f, 1f, 1f);
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package eu.midnightdust.visualoverhaul.compat.phonos.block;
|
||||
|
||||
import io.github.foundationgames.phonos.block.PhonosBlocks;
|
||||
import io.github.foundationgames.phonos.block.RadioJukeboxBlock;
|
||||
//import io.github.foundationgames.phonos.block.PhonosBlocks;
|
||||
//import io.github.foundationgames.phonos.block.RadioJukeboxBlock;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package eu.midnightdust.visualoverhaul.compat.phonos.init;
|
||||
|
||||
//import eu.midnightdust.visualoverhaul.compat.phonos.block.RadioJukeboxTop;
|
||||
import io.github.foundationgames.phonos.block.PhonosBlocks;
|
||||
//import io.github.foundationgames.phonos.block.PhonosBlocks;
|
||||
import net.fabricmc.fabric.impl.blockrenderlayer.BlockRenderLayerMapImpl;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.render.RenderLayer;
|
||||
|
||||
@@ -1,288 +0,0 @@
|
||||
package eu.midnightdust.visualoverhaul.config;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.screen.ScreenTexts;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
import net.minecraft.client.gui.widget.TextFieldWidget;
|
||||
import net.minecraft.client.resource.language.I18n;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.text.*;
|
||||
import net.minecraft.util.Formatting;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.*;
|
||||
import java.util.function.BiFunction;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
// MidnightConfig v0.1.0 //
|
||||
|
||||
/* Based on https://github.com/Minenash/TinyConfig
|
||||
Credits to Minenash - CC0-1.0
|
||||
You can copy this class to get a standalone version of MidnightConfig */
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class MidnightConfig {
|
||||
|
||||
private static final Pattern INTEGER_ONLY = Pattern.compile("(-?[0-9]*)");
|
||||
private static final Pattern DECIMAL_ONLY = Pattern.compile("-?([\\d]+\\.?[\\d]*|[\\d]*\\.?[\\d]+|\\.)");
|
||||
|
||||
private static final List<EntryInfo> entries = new ArrayList<>();
|
||||
|
||||
protected static class EntryInfo {
|
||||
Field field;
|
||||
Object widget;
|
||||
int width;
|
||||
Method dynamicTooltip;
|
||||
Map.Entry<TextFieldWidget,Text> error;
|
||||
Object defaultValue;
|
||||
Object value;
|
||||
String tempValue;
|
||||
boolean inLimits = true;
|
||||
}
|
||||
|
||||
private static Class configClass;
|
||||
private static String translationPrefix;
|
||||
private static Path path;
|
||||
|
||||
private static final Gson gson = new GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.TRANSIENT)
|
||||
.excludeFieldsWithModifiers(Modifier.PRIVATE)
|
||||
.setPrettyPrinting()
|
||||
.create();
|
||||
|
||||
public static void init(String modid, Class<?> config) {
|
||||
translationPrefix = modid + ".midnightconfig.";
|
||||
path = FabricLoader.getInstance().getConfigDir().resolve(modid + ".json");
|
||||
configClass = config;
|
||||
|
||||
for (Field field : config.getFields()) {
|
||||
Class<?> type = field.getType();
|
||||
EntryInfo info = new EntryInfo();
|
||||
|
||||
Entry e;
|
||||
try { e = field.getAnnotation(Entry.class); }
|
||||
catch (Exception ignored) { continue; }
|
||||
|
||||
info.width = e.width();
|
||||
info.field = field;
|
||||
|
||||
if (type == int.class) textField(info, Integer::parseInt, INTEGER_ONLY, e.min(), e.max(), true);
|
||||
else if (type == double.class) textField(info, Double::parseDouble, DECIMAL_ONLY, e.min(), e.max(),false);
|
||||
else if (type == String.class) textField(info, String::length, null, Math.min(e.min(),0), Math.max(e.max(),1),true);
|
||||
else if (type == boolean.class) {
|
||||
Function<Object,Text> func = value -> new LiteralText((Boolean) value ? "True" : "False").formatted((Boolean) value ? Formatting.GREEN : Formatting.RED);
|
||||
info.widget = new AbstractMap.SimpleEntry<ButtonWidget.PressAction, Function<Object, Text>>(button -> {
|
||||
info.value = !(Boolean) info.value;
|
||||
button.setMessage(func.apply(info.value));
|
||||
}, func);
|
||||
}
|
||||
else if (type.isEnum()) {
|
||||
List<?> values = Arrays.asList(field.getType().getEnumConstants());
|
||||
Function<Object,Text> func = value -> new TranslatableText(translationPrefix + "enum." + type.getSimpleName() + "." + info.value.toString());
|
||||
info.widget = new AbstractMap.SimpleEntry<ButtonWidget.PressAction, Function<Object,Text>>( button -> {
|
||||
int index = values.indexOf(info.value) + 1;
|
||||
info.value = values.get(index >= values.size()? 0 : index);
|
||||
button.setMessage(func.apply(info.value));
|
||||
}, func);
|
||||
}
|
||||
else
|
||||
continue;
|
||||
|
||||
entries.add(info);
|
||||
|
||||
try { info.defaultValue = field.get(null); }
|
||||
catch (IllegalAccessException ignored) {}
|
||||
|
||||
try {
|
||||
info.dynamicTooltip = config.getMethod(e.dynamicTooltip());
|
||||
info.dynamicTooltip.setAccessible(true);
|
||||
} catch (Exception ignored) {}
|
||||
|
||||
}
|
||||
|
||||
try { gson.fromJson(Files.newBufferedReader(path), config); }
|
||||
catch (Exception e) { write(); }
|
||||
|
||||
for (EntryInfo info : entries) {
|
||||
try {
|
||||
info.value = info.field.get(null);
|
||||
info.tempValue = info.value.toString();
|
||||
}
|
||||
catch (IllegalAccessException ignored) {}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static void textField(EntryInfo info, Function<String,Number> f, Pattern pattern, double min, double max, boolean cast) {
|
||||
boolean isNumber = pattern != null;
|
||||
info.widget = (BiFunction<TextFieldWidget, ButtonWidget, Predicate<String>>) (t, b) -> s -> {
|
||||
s = s.trim();
|
||||
if (!(s.isEmpty() || !isNumber || pattern.matcher(s).matches()))
|
||||
return false;
|
||||
|
||||
Number value = 0;
|
||||
boolean inLimits = false;
|
||||
System.out.println(((isNumber ^ s.isEmpty())));
|
||||
System.out.println(!s.equals("-") && !s.equals("."));
|
||||
info.error = null;
|
||||
if (!(isNumber && s.isEmpty()) && !s.equals("-") && !s.equals(".")) {
|
||||
value = f.apply(s);
|
||||
inLimits = value.doubleValue() >= min && value.doubleValue() <= max;
|
||||
info.error = inLimits? null : new AbstractMap.SimpleEntry<>(t, new LiteralText(value.doubleValue() < min ?
|
||||
"§cMinimum " + (isNumber? "value" : "length") + (cast? " is " + (int)min : " is " + min) :
|
||||
"§cMaximum " + (isNumber? "value" : "length") + (cast? " is " + (int)max : " is " + max)));
|
||||
}
|
||||
|
||||
info.tempValue = s;
|
||||
t.setEditableColor(inLimits? 0xFFFFFFFF : 0xFFFF7777);
|
||||
info.inLimits = inLimits;
|
||||
b.active = entries.stream().allMatch(e -> e.inLimits);
|
||||
|
||||
if (inLimits)
|
||||
info.value = isNumber? value : s;
|
||||
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
public static void write() {
|
||||
try {
|
||||
if (!Files.exists(path)) Files.createFile(path);
|
||||
Files.write(path, gson.toJson(configClass.newInstance()).getBytes());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Screen getScreen(Screen parent) {
|
||||
return new TinyConfigScreen(parent);
|
||||
}
|
||||
|
||||
private static class TinyConfigScreen extends Screen {
|
||||
protected TinyConfigScreen(Screen parent) {
|
||||
super(new TranslatableText(MidnightConfig.translationPrefix + "title"));
|
||||
this.parent = parent;
|
||||
}
|
||||
private final Screen parent;
|
||||
|
||||
// Real Time config update //
|
||||
@Override
|
||||
public void tick() {
|
||||
for (EntryInfo info : entries)
|
||||
try { info.field.set(null, info.value); }
|
||||
catch (IllegalAccessException ignore) {}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void init() {
|
||||
super.init();
|
||||
this.addButton(new ButtonWidget(this.width / 2 - 154, this.height - 28, 150, 20, ScreenTexts.CANCEL, button -> {
|
||||
try { gson.fromJson(Files.newBufferedReader(path), configClass); }
|
||||
catch (Exception e) { write(); }
|
||||
|
||||
for (EntryInfo info : entries) {
|
||||
try {
|
||||
info.value = info.field.get(null);
|
||||
info.tempValue = info.value.toString();
|
||||
}
|
||||
catch (IllegalAccessException ignored) {}
|
||||
}
|
||||
Objects.requireNonNull(client).openScreen(parent);
|
||||
}));
|
||||
|
||||
ButtonWidget done = this.addButton(new ButtonWidget(this.width / 2 + 4, this.height - 28, 150, 20, ScreenTexts.DONE, (button) -> {
|
||||
for (EntryInfo info : entries)
|
||||
try { info.field.set(null, info.value); }
|
||||
catch (IllegalAccessException ignore) {}
|
||||
write();
|
||||
Objects.requireNonNull(client).openScreen(parent);
|
||||
}));
|
||||
|
||||
int y = 45;
|
||||
for (EntryInfo info : entries) {
|
||||
addButton(new ButtonWidget(width - 155, y, 40,20, new LiteralText("Reset").formatted(Formatting.RED), (button -> {
|
||||
info.value = info.defaultValue;
|
||||
info.tempValue = info.value.toString();
|
||||
Objects.requireNonNull(client).openScreen(this);
|
||||
})));
|
||||
|
||||
if (info.widget instanceof Map.Entry) {
|
||||
Map.Entry<ButtonWidget.PressAction,Function<Object,Text>> widget = (Map.Entry<ButtonWidget.PressAction, Function<Object, Text>>) info.widget;
|
||||
addButton(new ButtonWidget(width-110,y,info.width,20, widget.getValue().apply(info.value), widget.getKey()));
|
||||
}
|
||||
else {
|
||||
TextFieldWidget widget = addButton(new TextFieldWidget(textRenderer, width-110, y, info.width, 20, null));
|
||||
widget.setText(info.tempValue);
|
||||
|
||||
Predicate<String> processor = ((BiFunction<TextFieldWidget, ButtonWidget, Predicate<String>>) info.widget).apply(widget,done);
|
||||
widget.setTextPredicate(processor);
|
||||
|
||||
children.add(widget);
|
||||
}
|
||||
y += 25;
|
||||
}
|
||||
|
||||
}
|
||||
int aniX = this.width / 2;
|
||||
@Override
|
||||
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {
|
||||
this.renderBackground(matrices);
|
||||
|
||||
if (aniX < this.width / 2) {
|
||||
aniX = aniX +40;
|
||||
}
|
||||
|
||||
int stringWidth = (int) (title.getString().length() * 2.75f);
|
||||
this.fillGradient(matrices, this.width / 2 - stringWidth, 10, this.width /2 + stringWidth, 29, -1072689136, -804253680);
|
||||
this.fillGradient(matrices, this.width / 2 - aniX, 35, width/2 + aniX, this.height - 40, -1072689136, -804253680);
|
||||
|
||||
super.render(matrices, mouseX, mouseY, delta);
|
||||
drawCenteredText(matrices, textRenderer, title, width/2, 15, 0xFFFFFF);
|
||||
|
||||
int y = 40;
|
||||
for (EntryInfo info : entries) {
|
||||
drawTextWithShadow(matrices, textRenderer, new TranslatableText(translationPrefix + info.field.getName()), 12, y + 10, 0xFFFFFF);
|
||||
|
||||
if (info.error != null && info.error.getKey().isMouseOver(mouseX,mouseY))
|
||||
renderTooltip(matrices, info.error.getValue(), mouseX, mouseY);
|
||||
else if (mouseY >= y && mouseY < (y + 25)) {
|
||||
if (info.dynamicTooltip != null) {
|
||||
try {
|
||||
renderTooltip(matrices, (List<Text>) info.dynamicTooltip.invoke(null, entries), mouseX, mouseY);
|
||||
y += 25;
|
||||
continue;
|
||||
} catch (Exception e) { e.printStackTrace(); }
|
||||
}
|
||||
String key = translationPrefix + info.field.getName() + ".tooltip";
|
||||
if (I18n.hasTranslation(key)) {
|
||||
List<Text> list = new ArrayList<>();
|
||||
for (String str : I18n.translate(key).split("\n"))
|
||||
list.add(new LiteralText(str));
|
||||
renderTooltip(matrices, list, mouseX, mouseY);
|
||||
}
|
||||
}
|
||||
y += 25;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
public @interface Entry {
|
||||
String dynamicTooltip() default "";
|
||||
int width() default 100;
|
||||
double min() default Double.MIN_NORMAL;
|
||||
double max() default Double.MAX_VALUE;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package eu.midnightdust.visualoverhaul.config;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import eu.midnightdust.lib.config.MidnightConfig;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ModMenuIntegration implements ModMenuApi {
|
||||
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> MidnightConfig.getScreen(parent,"visualoverhaul");
|
||||
}
|
||||
}
|
||||
@@ -7,5 +7,8 @@ public class VOConfig extends MidnightConfig {
|
||||
@Entry public static boolean jukebox = true;
|
||||
@Entry public static boolean jukebox_fake_block = true;
|
||||
@Entry public static boolean furnace = true;
|
||||
@Entry public static boolean smoker_particles = true;
|
||||
@Entry public static boolean blast_furnace_particles = true;
|
||||
@Entry public static boolean coloredItems = true;
|
||||
@Entry public static boolean potionEnchantmentGlint = true;
|
||||
}
|
||||
|
||||
@@ -2,14 +2,13 @@ package eu.midnightdust.visualoverhaul.mixin;
|
||||
|
||||
import eu.midnightdust.visualoverhaul.VisualOverhaul;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.fabricmc.fabric.api.server.PlayerStream;
|
||||
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
|
||||
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.entity.*;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -33,9 +32,9 @@ public abstract class MixinAbstractFurnaceBlockEntity extends LockableContainerB
|
||||
|
||||
@Inject(at = @At("TAIL"), method = "tick")
|
||||
private static void tick(World world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity, CallbackInfo ci) {
|
||||
if (world.getBlockState(pos).getBlock().equals(Blocks.FURNACE)) {
|
||||
if (world.getBlockState(pos).hasBlockEntity()) {
|
||||
if (!world.isClient && (invUpdate || world.getPlayers().size() == playerUpdate)) {
|
||||
Stream<PlayerEntity> watchingPlayers = PlayerStream.watching(world, pos);
|
||||
Stream<ServerPlayerEntity> watchingPlayers = PlayerLookup.tracking(blockEntity).stream();
|
||||
PacketByteBuf passedData = new PacketByteBuf(Unpooled.buffer());
|
||||
passedData.writeBlockPos(pos);
|
||||
passedData.writeItemStack(blockEntity.getStack(0));
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package eu.midnightdust.visualoverhaul.mixin;
|
||||
|
||||
import eu.midnightdust.visualoverhaul.config.VOConfig;
|
||||
import net.minecraft.block.AbstractFurnaceBlock;
|
||||
import net.minecraft.block.BlastFurnaceBlock;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.particle.ParticleTypes;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.world.World;
|
||||
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.CallbackInfo;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(BlastFurnaceBlock.class)
|
||||
public abstract class MixinBlastFurnaceBlock extends AbstractFurnaceBlock {
|
||||
protected MixinBlastFurnaceBlock(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Inject(at = @At("TAIL"), method = "randomDisplayTick")
|
||||
public void vo$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {
|
||||
if (state.get(LIT) && VOConfig.blast_furnace_particles) {
|
||||
double d = (double)pos.getX() + 0.5D;
|
||||
double e = pos.getY();
|
||||
double f = (double)pos.getZ() + 0.5D;
|
||||
|
||||
Direction direction = state.get(FACING);
|
||||
Direction.Axis axis = direction.getAxis();
|
||||
double h = random.nextDouble() * 0.6D - 0.3D;
|
||||
double i = axis == Direction.Axis.X ? (double)direction.getOffsetX() * 0.4D : h;
|
||||
double j = random.nextDouble() * 6.0D / 16.0D;
|
||||
double k = axis == Direction.Axis.Z ? (double)direction.getOffsetZ() * 0.4D : h;
|
||||
world.addParticle(ParticleTypes.FLAME, d + i, e + j, f + k, 0.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,15 +2,15 @@ package eu.midnightdust.visualoverhaul.mixin;
|
||||
|
||||
import eu.midnightdust.visualoverhaul.VisualOverhaul;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.fabricmc.fabric.api.server.PlayerStream;
|
||||
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
|
||||
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.entity.BlockEntityType;
|
||||
import net.minecraft.block.entity.BrewingStandBlockEntity;
|
||||
import net.minecraft.block.entity.LockableContainerBlockEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -34,7 +34,7 @@ public abstract class MixinBrewingStandBlockEntity extends LockableContainerBloc
|
||||
@Inject(at = @At("TAIL"), method = "tick")
|
||||
private static void tick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity, CallbackInfo ci) {
|
||||
if (!world.isClient && (invUpdate || world.getPlayers().size() == playerUpdate)) {
|
||||
Stream<PlayerEntity> watchingPlayers = PlayerStream.watching(world, pos);
|
||||
Stream<ServerPlayerEntity> watchingPlayers = PlayerLookup.tracking(blockEntity).stream();
|
||||
PacketByteBuf passedData = new PacketByteBuf(Unpooled.buffer());
|
||||
passedData.writeBlockPos(pos);
|
||||
passedData.writeItemStack(blockEntity.getStack(0));
|
||||
|
||||
@@ -3,13 +3,13 @@ package eu.midnightdust.visualoverhaul.mixin;
|
||||
import eu.midnightdust.visualoverhaul.VisualOverhaul;
|
||||
import eu.midnightdust.visualoverhaul.util.JukeboxPacketUpdate;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.fabricmc.fabric.api.server.PlayerStream;
|
||||
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
|
||||
import net.fabricmc.fabric.impl.networking.ServerSidePacketRegistryImpl;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.entity.*;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -30,7 +30,7 @@ public abstract class MixinJukeboxBlockEntity extends BlockEntity {
|
||||
@Unique
|
||||
private static void tick(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity) {
|
||||
if (!world.isClient && (JukeboxPacketUpdate.invUpdate || world.getPlayers().size() == JukeboxPacketUpdate.playerUpdate)) {
|
||||
Stream<PlayerEntity> watchingPlayers = PlayerStream.watching(world, pos);
|
||||
Stream<ServerPlayerEntity> watchingPlayers = PlayerLookup.tracking(blockEntity).stream();
|
||||
PacketByteBuf passedData = new PacketByteBuf(Unpooled.buffer());
|
||||
passedData.writeBlockPos(pos);
|
||||
passedData.writeItemStack(blockEntity.getRecord());
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package eu.midnightdust.visualoverhaul.mixin;
|
||||
|
||||
import eu.midnightdust.visualoverhaul.config.VOConfig;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.PotionItem;
|
||||
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;
|
||||
|
||||
@Mixin(PotionItem.class)
|
||||
public abstract class MixinPotionItem extends Item {
|
||||
public MixinPotionItem(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Inject(at = @At("HEAD"), method = "hasGlint", cancellable = true)
|
||||
public void vo$hasGlint(ItemStack stack, CallbackInfoReturnable<Boolean> cir) {
|
||||
if (!VOConfig.potionEnchantmentGlint) cir.setReturnValue(super.hasGlint(stack));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package eu.midnightdust.visualoverhaul.mixin;
|
||||
|
||||
import eu.midnightdust.visualoverhaul.config.VOConfig;
|
||||
import net.minecraft.block.AbstractFurnaceBlock;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.SmokerBlock;
|
||||
import net.minecraft.particle.ParticleTypes;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.world.World;
|
||||
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.CallbackInfo;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(SmokerBlock.class)
|
||||
public abstract class MixinSmokerBlock extends AbstractFurnaceBlock {
|
||||
protected MixinSmokerBlock(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Inject(at = @At("TAIL"), method = "randomDisplayTick")
|
||||
public void vo$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {
|
||||
if (state.get(LIT) && VOConfig.smoker_particles) {
|
||||
double d = (double)pos.getX() + 0.5D;
|
||||
double e = pos.getY();
|
||||
double f = (double)pos.getZ() + 0.5D;
|
||||
|
||||
Direction direction = state.get(FACING);
|
||||
Direction.Axis axis = direction.getAxis();
|
||||
double h = random.nextDouble() * 0.6D - 0.3D;
|
||||
double i = axis == Direction.Axis.X ? (double)direction.getOffsetX() * 0.4D : h;
|
||||
double j = random.nextDouble() * 6.0D / 16.0D;
|
||||
double k = axis == Direction.Axis.Z ? (double)direction.getOffsetZ() * 0.4D : h;
|
||||
world.addParticle(ParticleTypes.FLAME, d + i, e + j, f + k, 0.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
{
|
||||
"visualoverhaul.midnightconfig.title":"Visual Overhaul Config",
|
||||
"visualoverhaul.midnightconfig.brewingstand":"Enable Brewing Stand Enhancements",
|
||||
"visualoverhaul.midnightconfig.jukebox":"Enable Jukebox Enhancements",
|
||||
"visualoverhaul.midnightconfig.jukebox_fake_block":"Enable fake block on jukebox top",
|
||||
"visualoverhaul.midnightconfig.furnace":"Enable Furnace Enhancements",
|
||||
"visualoverhaul.midnightconfig.coloredItems":"Enable biome-based item colors",
|
||||
"visualoverhaul.midnightconfig.coloredItems.tooltip":"Needs restart!"
|
||||
"visualoverhaul.midnightconfig.brewingstand":"Brewing Stand Enhancements",
|
||||
"visualoverhaul.midnightconfig.jukebox":"Jukebox Enhancements",
|
||||
"visualoverhaul.midnightconfig.jukebox_fake_block":"Fake block on jukebox top",
|
||||
"visualoverhaul.midnightconfig.furnace":"Furnace Enhancements",
|
||||
"visualoverhaul.midnightconfig.smoker_particles":"Smoker Particles",
|
||||
"visualoverhaul.midnightconfig.blast_furnace_particles":"Blast Furnace Particles",
|
||||
"visualoverhaul.midnightconfig.coloredItems":"Biome-based item colors",
|
||||
"visualoverhaul.midnightconfig.coloredItems.tooltip":"§cNeeds restart!",
|
||||
"visualoverhaul.midnightconfig.potionEnchantmentGlint":"Potion enchantment glint"
|
||||
}
|
||||
@@ -22,9 +22,6 @@
|
||||
"entrypoints": {
|
||||
"client": [
|
||||
"eu.midnightdust.visualoverhaul.VisualOverhaulClient"
|
||||
],
|
||||
"modmenu": [
|
||||
"eu.midnightdust.visualoverhaul.config.ModMenuIntegration"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -34,6 +31,6 @@
|
||||
|
||||
"depends": {
|
||||
"fabric": ">=0.28.4",
|
||||
"minecraft": "1.17.x"
|
||||
"minecraft": ">=1.18"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"pack_format": 7,
|
||||
"pack_format": 8,
|
||||
"description": "Makes the water bucket also change it's color based on biome color"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"variants": {
|
||||
"facing=east,lit=false": {
|
||||
"model": "minecraft:block/blast_furnace",
|
||||
"y": 90
|
||||
},
|
||||
"facing=east,lit=true": {
|
||||
"model": "minecraft:block/blast_furnace_on",
|
||||
"y": 90
|
||||
},
|
||||
"facing=north,lit=false": {
|
||||
"model": "minecraft:block/blast_furnace"
|
||||
},
|
||||
"facing=north,lit=true": {
|
||||
"model": "minecraft:block/blast_furnace_on"
|
||||
},
|
||||
"facing=south,lit=false": {
|
||||
"model": "minecraft:block/blast_furnace",
|
||||
"y": 180
|
||||
},
|
||||
"facing=south,lit=true": {
|
||||
"model": "minecraft:block/blast_furnace_on",
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,lit=false": {
|
||||
"model": "minecraft:block/blast_furnace",
|
||||
"y": 270
|
||||
},
|
||||
"facing=west,lit=true": {
|
||||
"model": "minecraft:block/blast_furnace_on",
|
||||
"y": 270
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"variants": {
|
||||
"facing=east,lit=false": {
|
||||
"model": "minecraft:block/smoker",
|
||||
"y": 90
|
||||
},
|
||||
"facing=east,lit=true": {
|
||||
"model": "minecraft:block/smoker_on",
|
||||
"y": 90
|
||||
},
|
||||
"facing=north,lit=false": {
|
||||
"model": "minecraft:block/smoker"
|
||||
},
|
||||
"facing=north,lit=true": {
|
||||
"model": "minecraft:block/smoker_on"
|
||||
},
|
||||
"facing=south,lit=false": {
|
||||
"model": "minecraft:block/smoker",
|
||||
"y": 180
|
||||
},
|
||||
"facing=south,lit=true": {
|
||||
"model": "minecraft:block/smoker_on",
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,lit=false": {
|
||||
"model": "minecraft:block/smoker",
|
||||
"y": 270
|
||||
},
|
||||
"facing=west,lit=true": {
|
||||
"model": "minecraft:block/smoker_on",
|
||||
"y": 270
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/block",
|
||||
"textures": {
|
||||
"0": "block/blast_furnace_front",
|
||||
"2": "block/blast_furnace_side",
|
||||
"3": "block/blast_furnace_top",
|
||||
"particle": "block/blast_furnace_front"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 0, 5],
|
||||
"to": [16, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [8, 0, 9, 16], "texture": "#0"},
|
||||
"east": {"uv": [0, 0, 11, 16], "texture": "#2"},
|
||||
"south": {"uv": [0, 0, 16, 16], "texture": "#2"},
|
||||
"west": {"uv": [5, 0, 16, 16], "texture": "#2"},
|
||||
"up": {"uv": [0, 5, 16, 16], "texture": "#3"},
|
||||
"down": {"uv": [0, 0, 16, 11], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [10, 0, 0],
|
||||
"to": [16, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 6, 16], "texture": "#0"},
|
||||
"east": {"uv": [11, 0, 16, 16], "texture": "#2"},
|
||||
"west": {"uv": [6, 0, 7, 16], "texture": "#0"},
|
||||
"up": {"uv": [10, 0, 16, 5], "texture": "#3"},
|
||||
"down": {"uv": [10, 11, 16, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 0],
|
||||
"to": [5, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [11, 0, 16, 16], "texture": "#0"},
|
||||
"east": {"uv": [10, 0, 11, 16], "texture": "#0"},
|
||||
"west": {"uv": [0, 0, 5, 16], "texture": "#2"},
|
||||
"up": {"uv": [0, 0, 5, 5], "texture": "#3"},
|
||||
"down": {"uv": [0, 11, 5, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 8, 0],
|
||||
"to": [10, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [6, 0, 11, 8], "texture": "#0"},
|
||||
"up": {"uv": [5, 0, 10, 5], "texture": "#3"},
|
||||
"down": {"uv": [6, 8, 7, 13], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 0, 0],
|
||||
"to": [10, 5, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [6, 11, 11, 16], "texture": "#0"},
|
||||
"up": {"uv": [6, 12, 7, 15], "texture": "#2"},
|
||||
"down": {"uv": [5, 11, 10, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [8, 5, 0],
|
||||
"to": [9, 8, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [7, 8, 8, 11], "texture": "#0"},
|
||||
"east": {"uv": [7, 8, 8, 11], "texture": "#0"},
|
||||
"west": {"uv": [7, 8, 8, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [9.99, 5, 0],
|
||||
"to": [9.99, 8, 1],
|
||||
"faces": {
|
||||
"west": {"uv": [5, 8, 6, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 5, 0],
|
||||
"to": [7, 8, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 8, 10, 11], "texture": "#0"},
|
||||
"east": {"uv": [9, 8, 10, 11], "texture": "#0"},
|
||||
"west": {"uv": [9, 8, 10, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5.01, 5, 0],
|
||||
"to": [5.01, 8, 1],
|
||||
"faces": {
|
||||
"east": {"uv": [11, 8, 12, 11], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/block",
|
||||
"textures": {
|
||||
"0": "block/blast_furnace_front",
|
||||
"1": "block/blast_furnace_front_on",
|
||||
"2": "block/blast_furnace_side",
|
||||
"3": "block/blast_furnace_top",
|
||||
"particle": "block/blast_furnace_front"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 0, 5],
|
||||
"to": [16, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [8, 0, 9, 16], "texture": "#1"},
|
||||
"east": {"uv": [0, 0, 11, 16], "texture": "#2"},
|
||||
"south": {"uv": [0, 0, 16, 16], "texture": "#2"},
|
||||
"west": {"uv": [5, 0, 16, 16], "texture": "#2"},
|
||||
"up": {"uv": [0, 5, 16, 16], "texture": "#3"},
|
||||
"down": {"uv": [0, 0, 16, 11], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [10, 0, 0],
|
||||
"to": [16, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 6, 16], "texture": "#0"},
|
||||
"east": {"uv": [11, 0, 16, 16], "texture": "#2"},
|
||||
"west": {"uv": [6, 0, 7, 16], "texture": "#1"},
|
||||
"up": {"uv": [10, 0, 16, 5], "texture": "#3"},
|
||||
"down": {"uv": [10, 11, 16, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 0],
|
||||
"to": [5, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [11, 0, 16, 16], "texture": "#0"},
|
||||
"east": {"uv": [10, 0, 11, 16], "texture": "#1"},
|
||||
"west": {"uv": [0, 0, 5, 16], "texture": "#2"},
|
||||
"up": {"uv": [0, 0, 5, 5], "texture": "#3"},
|
||||
"down": {"uv": [0, 11, 5, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 8, 0],
|
||||
"to": [10, 16, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [6, 0, 11, 8], "texture": "#0"},
|
||||
"up": {"uv": [5, 0, 10, 5], "texture": "#3"},
|
||||
"down": {"uv": [6, 8, 7, 13], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 0, 0],
|
||||
"to": [10, 5, 5],
|
||||
"faces": {
|
||||
"north": {"uv": [6, 11, 11, 16], "texture": "#0"},
|
||||
"up": {"uv": [6, 12, 7, 15], "texture": "#2"},
|
||||
"down": {"uv": [5, 11, 10, 16], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [8, 5, 0],
|
||||
"to": [9, 8, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [7, 8, 8, 11], "texture": "#0"},
|
||||
"east": {"uv": [7, 8, 8, 11], "texture": "#0"},
|
||||
"west": {"uv": [7, 8, 8, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [9.99, 5, 0],
|
||||
"to": [9.99, 8, 1],
|
||||
"faces": {
|
||||
"west": {"uv": [5, 8, 6, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 5, 0],
|
||||
"to": [7, 8, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 8, 10, 11], "texture": "#0"},
|
||||
"east": {"uv": [9, 8, 10, 11], "texture": "#0"},
|
||||
"west": {"uv": [9, 8, 10, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5.01, 5, 0],
|
||||
"to": [5.01, 8, 1],
|
||||
"faces": {
|
||||
"east": {"uv": [11, 8, 12, 11], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/block",
|
||||
"textures": {
|
||||
"0": "block/smoker_front",
|
||||
"1": "block/smoker_bottom",
|
||||
"2": "block/smoker_top",
|
||||
"3": "block/smoker_side",
|
||||
"4": "block/smoker_front_on",
|
||||
"particle": "block/smoker_front"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 12, 0],
|
||||
"to": [16, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 16, 4], "texture": "#0"},
|
||||
"east": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"south": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"west": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#2"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 0],
|
||||
"to": [16, 2, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 14, 16, 16], "texture": "#4"},
|
||||
"east": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"south": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"west": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [14, 2, 0],
|
||||
"to": [16, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 4, 2, 14], "texture": "#0"},
|
||||
"east": {"uv": [0, 4, 16, 14], "texture": "#3"},
|
||||
"south": {"uv": [14, 4, 16, 14], "texture": "#3"},
|
||||
"west": {"uv": [0, 0, 16, 10], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 2, 0],
|
||||
"to": [2, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [14, 4, 16, 14], "texture": "#0"},
|
||||
"east": {"uv": [0, 0, 16, 10], "texture": "#1"},
|
||||
"south": {"uv": [0, 4, 2, 14], "texture": "#3"},
|
||||
"west": {"uv": [0, 4, 16, 14], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 8, 0],
|
||||
"to": [14, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 3, 8], "texture": "#4"},
|
||||
"west": {"uv": [4, 4, 5, 8], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12, 8, 0],
|
||||
"to": [13, 9, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 7, 4, 8], "texture": "#4"},
|
||||
"west": {"uv": [3, 7, 4, 8], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12, 11, 0],
|
||||
"to": [13, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 4, 4, 5], "texture": "#4"},
|
||||
"west": {"uv": [3, 4, 4, 5], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 8, 0],
|
||||
"to": [4, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [12, 4, 14, 8], "texture": "#0"},
|
||||
"east": {"uv": [12, 4, 13, 8], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 8, 1],
|
||||
"to": [4, 12, 6],
|
||||
"faces": {
|
||||
"east": {"uv": [3, 3, 8, 7], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [11, 8, 1],
|
||||
"to": [14, 12, 6],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 5, 8], "texture": "#1"},
|
||||
"east": {"uv": [3, 3, 8, 7], "texture": "#1"},
|
||||
"west": {"uv": [5, 4, 10, 8], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 7, 0],
|
||||
"to": [14, 8, 8],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 8, 14, 9], "texture": "#0"},
|
||||
"up": {"uv": [2, 8, 14, 12], "texture": "#1"},
|
||||
"down": {"uv": [2, 5, 14, 9], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 7, 6],
|
||||
"to": [14, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 14, 9], "texture": "#0"},
|
||||
"south": {"uv": [2, 4, 14, 9], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 1, 5],
|
||||
"to": [14, 7, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [5, 5, 12, 8], "texture": "#0"},
|
||||
"south": {"uv": [2, 9, 14, 15], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [4.9, 10, -5],
|
||||
"to": [12.9, 12, -4],
|
||||
"rotation": {"angle": -22.5, "axis": "y", "origin": [0.9, 0, -4.6]},
|
||||
"faces": {
|
||||
"north": {"uv": [4, 4, 12, 6], "texture": "#4"},
|
||||
"east": {"uv": [4, 4, 5, 6], "texture": "#4"},
|
||||
"south": {"uv": [4, 4, 12, 6], "texture": "#4"},
|
||||
"west": {"uv": [11, 4, 12, 6], "texture": "#4"},
|
||||
"up": {"uv": [4, 4, 12, 5], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [4.9, 8, -5],
|
||||
"to": [12.9, 10, -4],
|
||||
"rotation": {"angle": -22.5, "axis": "y", "origin": [0.9, -2, -4.6]},
|
||||
"faces": {
|
||||
"north": {"uv": [4, 4, 12, 6], "rotation": 180, "texture": "#4"},
|
||||
"east": {"uv": [4, 4, 5, 6], "rotation": 180, "texture": "#4"},
|
||||
"south": {"uv": [4, 4, 12, 6], "rotation": 180, "texture": "#4"},
|
||||
"west": {"uv": [11, 4, 12, 6], "rotation": 180, "texture": "#4"},
|
||||
"up": {"uv": [4, 4, 12, 5], "texture": "#4"},
|
||||
"down": {"uv": [4, 5, 12, 6], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12.9, 9, -4.9],
|
||||
"to": [13.9, 11, -3.9],
|
||||
"rotation": {"angle": -22.5, "axis": "y", "origin": [0.9, 0, -4.6]},
|
||||
"faces": {
|
||||
"north": {"uv": [3, 5, 4, 7], "texture": "#4"},
|
||||
"south": {"uv": [3, 5, 4, 7], "texture": "#4"},
|
||||
"up": {"uv": [3, 5, 4, 6], "texture": "#4"},
|
||||
"down": {"uv": [3, 6, 4, 7], "texture": "#4"}
|
||||
}
|
||||
}
|
||||
],
|
||||
"groups": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
|
||||
{
|
||||
"name": "group",
|
||||
"origin": [0, 0, 0],
|
||||
"children": [13, 14, 15]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/block",
|
||||
"textures": {
|
||||
"0": "block/smoker_front",
|
||||
"1": "block/smoker_bottom",
|
||||
"2": "block/smoker_top",
|
||||
"3": "block/smoker_side",
|
||||
"4": "block/smoker_front_on",
|
||||
"particle": "block/smoker_front"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 12, 0],
|
||||
"to": [16, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 16, 4], "texture": "#0"},
|
||||
"east": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"south": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"west": {"uv": [0, 0, 16, 4], "texture": "#3"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#2"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 0],
|
||||
"to": [16, 2, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 14, 16, 16], "texture": "#4"},
|
||||
"east": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"south": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"west": {"uv": [0, 14, 16, 16], "texture": "#3"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#1"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [14, 2, 0],
|
||||
"to": [16, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 4, 2, 14], "texture": "#0"},
|
||||
"east": {"uv": [0, 4, 16, 14], "texture": "#3"},
|
||||
"south": {"uv": [14, 4, 16, 14], "texture": "#3"},
|
||||
"west": {"uv": [0, 0, 16, 10], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 2, 0],
|
||||
"to": [2, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [14, 4, 16, 14], "texture": "#0"},
|
||||
"east": {"uv": [0, 0, 16, 10], "texture": "#1"},
|
||||
"south": {"uv": [0, 4, 2, 14], "texture": "#3"},
|
||||
"west": {"uv": [0, 4, 16, 14], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 8, 0],
|
||||
"to": [14, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 3, 8], "texture": "#4"},
|
||||
"west": {"uv": [4, 4, 5, 8], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12, 8, 0],
|
||||
"to": [13, 9, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 7, 4, 8], "texture": "#4"},
|
||||
"west": {"uv": [3, 7, 4, 8], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12, 11, 0],
|
||||
"to": [13, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 4, 4, 5], "texture": "#4"},
|
||||
"west": {"uv": [3, 4, 4, 5], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 8, 0],
|
||||
"to": [4, 12, 1],
|
||||
"faces": {
|
||||
"north": {"uv": [12, 4, 14, 8], "texture": "#0"},
|
||||
"east": {"uv": [12, 4, 13, 8], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 8, 1],
|
||||
"to": [4, 12, 6],
|
||||
"faces": {
|
||||
"east": {"uv": [3, 3, 8, 7], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [11, 8, 1],
|
||||
"to": [14, 12, 6],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 5, 8], "texture": "#1"},
|
||||
"east": {"uv": [3, 3, 8, 7], "texture": "#1"},
|
||||
"west": {"uv": [5, 4, 10, 8], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 7, 0],
|
||||
"to": [14, 8, 8],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 8, 14, 9], "texture": "#0"},
|
||||
"up": {"uv": [2, 8, 14, 12], "texture": "#1"},
|
||||
"down": {"uv": [2, 5, 14, 9], "texture": "#1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 7, 6],
|
||||
"to": [14, 12, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 4, 14, 9], "texture": "#0"},
|
||||
"south": {"uv": [2, 4, 14, 9], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [2, 1, 5],
|
||||
"to": [14, 7, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [2, 9, 14, 15], "texture": "#4"},
|
||||
"south": {"uv": [2, 9, 14, 15], "texture": "#3"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [4, 8, -0.4],
|
||||
"to": [12, 12, 0.6],
|
||||
"faces": {
|
||||
"north": {"uv": [4, 4, 12, 8], "texture": "#4"},
|
||||
"east": {"uv": [4, 4, 5, 8], "texture": "#4"},
|
||||
"west": {"uv": [11, 4, 12, 8], "texture": "#4"},
|
||||
"up": {"uv": [4, 4, 12, 5], "texture": "#4"},
|
||||
"down": {"uv": [4, 7, 12, 8], "texture": "#4"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [12, 9, -0.3],
|
||||
"to": [13, 11, 0.7],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 5, 4, 7], "texture": "#4"},
|
||||
"east": {"uv": [3, 5, 4, 7], "texture": "#4"},
|
||||
"west": {"uv": [3, 5, 4, 7], "texture": "#4"},
|
||||
"up": {"uv": [3, 5, 4, 6], "texture": "#4"},
|
||||
"down": {"uv": [3, 6, 4, 7], "texture": "#4"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"pack_format": 7,
|
||||
"pack_format": 8,
|
||||
"description": "§2Changes the model of the furnace to be 3D"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"pack_format": 7,
|
||||
"pack_format": 8,
|
||||
"description": "§2Removes the bottles from the brewing stand texture"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "eu.midnightdust.visualoverhaul.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"compatibilityLevel": "JAVA_16",
|
||||
"mixins": [
|
||||
"MixinAbstractFurnaceBlockEntity",
|
||||
"MixinBrewingStandBlockEntity",
|
||||
@@ -9,7 +9,10 @@
|
||||
"MixinJukeboxBlockEntity"
|
||||
],
|
||||
"client": [
|
||||
"MixinSoundSystem"
|
||||
"MixinSoundSystem",
|
||||
"MixinSmokerBlock",
|
||||
"MixinBlastFurnaceBlock",
|
||||
"MixinPotionItem"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
|
||||
Reference in New Issue
Block a user