I had posted Block class.
Minecraft wiki said,A redstone repeater can power any opaque block (including any opaque mechanism components). for xample stone sand block can be powerd.
I have registed it as Rendertype solid, but it doesn't work.
I registered a block but it couldn't be strongly-powerd or weakly-powerd by redstone and redstone repeater
I try to set rendertype with solid and set up the VoxelShape,but it doesn't seem to work。
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD,value = Dist.CLIENT)
public class RenderType {
@SubscribeEvent
public static void onRenderTypeSetup(FMLClientSetupEvent event) {
ItemBlockRenderTypes.setRenderLayer(Block.musicBox.get(), net.minecraft.client.renderer.RenderType.solid());
//ItemBlockRenderTypes.setRenderLayer(Block.gift.get(), net.minecraft.client.renderer.RenderType.cutout());
}
}
Could you possibly tell me how does it work? i have the same trouble as you
did you replace one of the existing painting? or by
public static final RegistryObject<PaintingType> PICTURE = PAINTING_TYPES.register("picture", () -> new PaintingType(320, 176));
if you do that, how to create a json file to reflect the image?
o.o