Posted May 27, 20223 yr Hello, I am trying to display a texture of my mod transparently, but this is displayed in black. Does anyone have any idea how I can change that?
May 27, 20223 yr Author 23 minutes ago, diesieben07 said: Show your code and a screenshot. This code add the Block to MC: public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, xpmod.MOD_ID); public static final RegistryObject<Block> TEST_BLOCK = BLOCKS.register("test_block", ()->new Block(AbstractBlock.Properties.create((Material.IRON), MaterialColor.IRON) .hardnessAndResistance(0.5f, 0).harvestTool(ToolType.PICKAXE).harvestLevel(2).sound(SoundType.STONE))); and other code is default Edited May 27, 20223 yr by JonathanB
May 27, 20223 yr Author 54 minutes ago, diesieben07 said: You have to set the RenderType of your block. But how? Sorry, it’s my first mod…
May 27, 20223 yr you need to set the RenderType in FMLClientSetupEvent via RenderTypeLookup.setRenderLayer
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.