Posted May 29, 20214 yr Despite it being in a FMLClientSetupEvent, RenderTypeLookup does not seem to be modifying any of the blocks' render types. private void setup(final FMLClientSetupEvent event) { RenderTypeLookup.setRenderLayer(EarlyDaysRegistries.MOON_CREAM_BLOCK.get(), RenderType.getTranslucent()); } public static final RegistryObject<Block> MOON_CREAM_BLOCK = BLOCKS.register("moon_cream_block",()->new SlimeBlock(AbstractBlock.Properties.create(Material.CLAY, MaterialColor.SAND).slipperiness(0.8F).sound(SoundType.SLIME).notSolid().variableOpacity())); I have attempted this with other blocks as well with the same result.
June 1, 20214 yr 19 minutes ago, The_Peoples_Bee said: As I am new to modding, I do not really know how to do this. show your main class
June 1, 20214 yr Author @Mod("earlydays") @Mod.EventBusSubscriber(modid = EarlyDays.MODID, bus = Mod.EventBusSubscriber.Bus.MOD) public class EarlyDays { public static final Logger LOGGER = LogManager.getLogger(); public static final String MODID = "earlydays"; public EarlyDays() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); EarlyDaysRegistries.ITEMS.register(bus); EarlyDaysRegistries.BLOCKS.register(bus); EarlyDaysRegistries.TILE_ENTITY_TYPES.register(bus); MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public static void onRegisterItems(final RegistryEvent.Register<Item> event){ EarlyDaysRegistries.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> { event.getRegistry().register(new BlockItem(block, new Item.Properties().group(EarlyDaysItemGroup.EARLY_DAYS)).setRegistryName(block.getRegistryName())); }); } @SubscribeEvent public void setup(final FMLClientSetupEvent event) { RenderTypeLookup.setRenderLayer(EarlyDaysRegistries.MOON_CREAM_BLOCK.get(), RenderType.getTranslucent()); } } I should have done that sooner perhaps.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.