Skip to content

Commit

Permalink
Update to 1.21.4.
Browse files Browse the repository at this point in the history
- Update to 1.21.4
* Loom 1.9 and Gradle 8.11
* Apply `ItemSettings.useBlockPrefixedTranslationKey()`
* Add TraverseBlockFamilies
* Datagen for models
* Improve datagen for recipes
  • Loading branch information
gniftygnome committed Jan 7, 2025
1 parent 7a1dfeb commit 49a9c2e
Show file tree
Hide file tree
Showing 1,030 changed files with 1,299 additions and 18,210 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
id 'idea'
id 'eclipse'
id 'fabric-loom' version '1.7.+'
id 'fabric-loom' version '1.9.+'
}

apply from: 'https://raw.githubusercontent.com/TerraformersMC/GradleScripts/2.7/ferry.gradle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.terraformersmc.terraform.boat.api.client.TerraformBoatClientHelper;
import com.terraformersmc.terrestria.init.TerrestriaBlocks;
import com.terraformersmc.terrestria.init.TerrestriaItems;
import com.terraformersmc.terrestria.tag.TerrestriaBlockTags;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
Expand All @@ -12,7 +11,6 @@
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry;
import net.minecraft.block.Block;
import net.minecraft.client.color.block.BlockColorProvider;
import net.minecraft.client.color.item.ItemColorProvider;
import net.minecraft.client.color.world.BiomeColors;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.TexturedRenderLayers;
Expand All @@ -30,13 +28,9 @@ public class TerrestriaClient implements ClientModInitializer {
private static final RenderLayer DOOR_BLOCK_LAYER = RenderLayer.getCutout();

private static final BlockColorProvider FOLIAGE_BLOCK_COLORS =
(block, world, pos, layer) -> world != null && pos != null ? BiomeColors.getFoliageColor(world, pos) : FoliageColors.getDefaultColor();
(block, world, pos, layer) -> world != null && pos != null ? BiomeColors.getFoliageColor(world, pos) : FoliageColors.DEFAULT;
private static final BlockColorProvider GRASS_BLOCK_COLORS =
(block, world, pos, layer) -> world != null && pos != null ? BiomeColors.getGrassColor(world, pos) : GrassColors.getColor(0.5, 1.0);
private static final ItemColorProvider FOLIAGE_ITEM_COLORS =
(item, layer) -> FoliageColors.getColor(0.5, 1.0);
private static final ItemColorProvider GRASS_ITEM_COLORS =
(item, layer) -> GrassColors.getColor(0.5, 1.0);

@Override
public void onInitializeClient() {
Expand Down Expand Up @@ -134,21 +128,6 @@ public void onInitializeClient() {

addColoredGrass(TerrestriaBlocks.ANDISOL.getGrassBlock());

ColorProviderRegistry.ITEM.register(
FOLIAGE_ITEM_COLORS,
TerrestriaItems.RUBBER.leaves,
TerrestriaItems.CYPRESS.leaves,
TerrestriaItems.WILLOW.leaves,
TerrestriaItems.RAINBOW_EUCALYPTUS.leaves,
TerrestriaItems.JAPANESE_MAPLE_SHRUB_LEAVES,
TerrestriaItems.REDWOOD.leaves,
TerrestriaItems.HEMLOCK.leaves
);

ColorProviderRegistry.ITEM.register(
GRASS_ITEM_COLORS,
TerrestriaItems.ANDISOL_GRASS_BLOCK
);
registerEntityRenderers();
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 49a9c2e

Please sign in to comment.