Skip to content

Commit

Permalink
updates + fixes
Browse files Browse the repository at this point in the history
- update mappings
- fixes for issue #28
  • Loading branch information
CamoMano committed Jun 9, 2021
1 parent 60de3f5 commit 20605db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ org.gradle.jvmargs = -Xmx2G

#Fabric properties
minecraft_version = 1.17
yarn_mappings = 1.17+build.1
yarn_mappings = 1.17+build.5
loader_version = 0.11.3

#Mod properties
mod_version = 1.6.1
mod_version = 1.6.2
maven_group = com.vanillaenhanced
archives_base_name = vanillaenhanced

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/vanillaenhanced/VanillaEnhancedClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry;
import net.minecraft.client.render.RenderLayer;

public class VanillaEnhancedClient implements ClientModInitializer {

@Override
public void onInitializeClient() {

ColorProviderRegistry.BLOCK.register((state, world, pos, tintIndex) -> 0x14741F, ModInit.REDWOOD_LEAVES);
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> 0x14741F, ModInit.REDWOOD_LEAVES);
BlockRenderLayerMap.INSTANCE.putBlock(ModInit.REDWOOD_SAPLING, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(ModInit.POTTED_REDWOOD_SAPLING, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(ModInit.REDWOOD_LEAVES, RenderLayer.getCutoutMipped());


EntityRendererRegistry.INSTANCE.register(ModInit.HONEY_SLIME, HoneySlimeEntityRenderer::new);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 20605db

Please sign in to comment.