VisualOverhaul 4.1.0 - 1.18.2, colored lilypads and improvements

Fix #29
Fix #27
Fix #26
Fix #25
Fix #24
This commit is contained in:
Motschen
2022-03-10 20:59:02 +01:00
parent 01f894a184
commit 37e5789081
73 changed files with 94 additions and 21 deletions

View File

@@ -3,17 +3,16 @@ org.gradle.jvmargs=-Xmx2G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.18.1 minecraft_version=1.18.2
yarn_mappings=1.18.1+build.5 yarn_mappings=1.18.2+build.2
loader_version=0.12.12 loader_version=0.13.3
# Mod Properties # Mod Properties
mod_version = 4.0.0 mod_version = 4.1.0
maven_group = eu.midnightdust maven_group = eu.midnightdust
archives_base_name = visualoverhaul archives_base_name = visualoverhaul
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.44.0+1.18 fabric_version=0.47.10+1.18.2
mod_menu_version = 2.0.0-beta.5 midnightlib_version=0.4.0
midnightlib_version=0.3.1

View File

@@ -34,9 +34,6 @@ import net.minecraft.util.Identifier;
import net.minecraft.util.collection.DefaultedList; import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
import net.minecraft.world.biome.BuiltinBiomes;
import java.util.logging.LogManager;
import static eu.midnightdust.visualoverhaul.VisualOverhaul.*; import static eu.midnightdust.visualoverhaul.VisualOverhaul.*;
@@ -128,6 +125,7 @@ public class VisualOverhaulClient implements ClientModInitializer {
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","nobrewingbottles"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED); ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","nobrewingbottles"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED);
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","fancyfurnace"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED); ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","fancyfurnace"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED);
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","coloredwaterbucket"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED); ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","coloredwaterbucket"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED);
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("visualoverhaul","rounddiscs"), modContainer, ResourcePackActivationType.ALWAYS_ENABLED);
}); });
@@ -148,6 +146,11 @@ public class VisualOverhaulClient implements ClientModInitializer {
grassColor = -8934609; grassColor = -8934609;
} }
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.WATER_BUCKET); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.WATER_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.AXOLOTL_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.COD_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.PUFFERFISH_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.TROPICAL_FISH_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> tintIndex == 0 ? -1 : waterColor, Items.SALMON_BUCKET);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.GRASS_BLOCK); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.GRASS_BLOCK);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.GRASS); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.GRASS);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.TALL_GRASS); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> grassColor, Items.TALL_GRASS);
@@ -157,6 +160,9 @@ public class VisualOverhaulClient implements ClientModInitializer {
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.DARK_OAK_LEAVES); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.DARK_OAK_LEAVES);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.JUNGLE_LEAVES); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.JUNGLE_LEAVES);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.OAK_LEAVES); ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.OAK_LEAVES);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.VINE);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.SUGAR_CANE);
if (VOConfig.coloredLilypad) ColorProviderRegistry.ITEM.register((stack, tintIndex) -> foliageColor, Items.LILY_PAD);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> { ColorProviderRegistry.ITEM.register((stack, tintIndex) -> {
if ((PotionUtil.getPotion(stack) == Potions.WATER || PotionUtil.getPotion(stack) == Potions.MUNDANE || PotionUtil.getPotion(stack) == Potions.THICK || PotionUtil.getPotion(stack) == Potions.AWKWARD) && 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 waterColor;
@@ -177,5 +183,8 @@ public class VisualOverhaulClient implements ClientModInitializer {
}, Items.LINGERING_POTION); }, Items.LINGERING_POTION);
}); });
} }
if (VOConfig.coloredLilypad) {
ColorProviderRegistry.BLOCK.register((state, world, pos, tintIndex) -> world != null ? world.getColor(pos, BiomeColors.FOLIAGE_COLOR) : 0, Blocks.LILY_PAD);
}
} }
} }

View File

@@ -54,7 +54,7 @@ public class FurnaceBlockEntityRenderer<E extends AbstractFurnaceBlockEntity> im
matrices.pop(); matrices.pop();
} }
if (!item2.isEmpty() && !ItemTags.LOGS_THAT_BURN.contains(item2.getItem()) && !ItemTags.PLANKS.contains(item2.getItem())) { if (!item2.isEmpty() && !item2.isIn(ItemTags.LOGS_THAT_BURN) && !item2.isIn(ItemTags.PLANKS)) {
matrices.push(); matrices.push();
matrices.translate(0.5f, 0.08f, 0.5f); matrices.translate(0.5f, 0.08f, 0.5f);

View File

@@ -3,12 +3,13 @@ package eu.midnightdust.visualoverhaul.config;
import eu.midnightdust.lib.config.MidnightConfig; import eu.midnightdust.lib.config.MidnightConfig;
public class VOConfig extends MidnightConfig { public class VOConfig extends MidnightConfig {
@Entry public static boolean brewingstand = true; @Client @Entry public static boolean brewingstand = true;
@Entry public static boolean jukebox = true; @Client @Entry public static boolean jukebox = true;
@Entry public static boolean jukebox_fake_block = true; @Client @Entry public static boolean jukebox_fake_block = true;
@Entry public static boolean furnace = true; @Client @Entry public static boolean furnace = true;
@Entry public static boolean smoker_particles = true; @Client @Entry public static boolean smoker_particles = true;
@Entry public static boolean blast_furnace_particles = true; @Client @Entry public static boolean blast_furnace_particles = true;
@Entry public static boolean coloredItems = true; @Client @Entry public static boolean coloredItems = true;
@Entry public static boolean potionEnchantmentGlint = true; @Client @Entry public static boolean coloredLilypad = true;
@Client @Entry public static boolean potionEnchantmentGlint = true;
} }

View File

@@ -8,5 +8,7 @@
"visualoverhaul.midnightconfig.blast_furnace_particles":"Blast Furnace Particles", "visualoverhaul.midnightconfig.blast_furnace_particles":"Blast Furnace Particles",
"visualoverhaul.midnightconfig.coloredItems":"Biome-based item colors", "visualoverhaul.midnightconfig.coloredItems":"Biome-based item colors",
"visualoverhaul.midnightconfig.coloredItems.tooltip":"§cNeeds restart!", "visualoverhaul.midnightconfig.coloredItems.tooltip":"§cNeeds restart!",
"visualoverhaul.midnightconfig.coloredLilypad":"Biome-based Lily Pad color",
"visualoverhaul.midnightconfig.coloredLilypad.tooltip":"§cNeeds restart!",
"visualoverhaul.midnightconfig.potionEnchantmentGlint":"Potion enchantment glint" "visualoverhaul.midnightconfig.potionEnchantmentGlint":"Potion enchantment glint"
} }

View File

@@ -0,0 +1,7 @@
{
"parent": "item/generated",
"textures": {
"layer1": "item/axolotl_bucket_overlay",
"layer0": "item/axolotl_bucket"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "item/generated",
"textures": {
"layer1": "item/fish_bucket_overlay",
"layer0": "item/cod_bucket"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "item/generated",
"textures": {
"layer1": "item/pufferfish_bucket_overlay",
"layer0": "item/pufferfish_bucket"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "item/generated",
"textures": {
"layer1": "item/fish_bucket_overlay",
"layer0": "item/salmon_bucket"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "item/generated",
"textures": {
"layer1": "item/fish_bucket_overlay",
"layer0": "item/tropical_fish_bucket"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -1,6 +1,6 @@
{ {
"pack": { "pack": {
"pack_format": 8, "pack_format": 8,
"description": "Makes the water bucket also change it's color based on biome color" "description": "§2Makes the water bucket respect biome colors"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"pack": { "pack": {
"pack_format": 8, "pack_format": 8,
"description": "§2Removes the bottles from the brewing stand texture" "description": "§2Removes the bottles from the brewing stand"
} }
} }

View File

@@ -0,0 +1,15 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/music_disc_otherside"
},
"overrides": [
{
"predicate": {
"round": 1
},
"model": "minecraft:item/music_disc_otherside_round"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"parent": "visualoverhaul:item/round_disc",
"textures": {
"0": "minecraft:item/music_disc_otherside"
}
}

View File

@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 8,
"description": "§2Makes the spinning discs on Jukeboxes round"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB