#transparent crop textures

5 messages · Page 1 of 1 (latest)

pseudo zinc
#

i got textures (excpet transparency) working, but i have old 1.21.1 code from transparency, does anyone know what BlockRenderLayerMap has change to or possible if its location has changed?

package io.github.beez131github.grow_gc;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.BlockRenderLayerMap;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.util.Identifier;
import net.minecraft.block.Block;
import net.minecraft.registry.Registries;

public class Grow_gcClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        Block goldenCarrotCrop = Registries.BLOCK.get(Identifier.of("grow_gc", "golden_carrot_crop"));
        BlockRenderLayerMap.INSTANCE.putBlock(goldenCarrotCrop, RenderLayer.getCutout());
    }
}```
)
true estuary
#

why do you have three different case standards in your classname

pseudo zinc
#

there is removed the underscore

package io.github.beez131github.grow_gc;

import net.fabricmc.api.ClientModInitializer;
//import net.fabricmc.fabric.api.client.rendering.v1.BlockRenderLayerMap;
import net.minecraft.util.Identifier;
import net.minecraft.block.Block;
import net.minecraft.registry.Registries;

public class GrowGcClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        Block goldenCarrotCrop = Registries.BLOCK.get(Identifier.of("grow_gc", "golden_carrot_crop"));
        BlockRenderLayerMap.INSTANCE.putBlock(goldenCarrotCrop, RenderLayer.getCutout());
    }
}
``` happy now?
#

@true estuary

hollow ravine
#

you should really store your blocks in a static field somewhere, so that they can be easily accessed