FREyebeans2506 Posted December 11, 2020 Posted December 11, 2020 (edited) im very new to modding and was just curious about how to make a block transparent i also would need code instead of terms because i dont understand most syntax yet Edited December 16, 2020 by FREyebeans2506 Quote
Vinyarion Posted December 11, 2020 Posted December 11, 2020 1. Learn java, it will definitely make everything less confusing. 2. copy the block model that minecraft:air uses Quote Have you ever want the new operator to return a type that you didn't ask for? Well, now you can!
FREyebeans2506 Posted December 11, 2020 Author Posted December 11, 2020 i dont get what you mean copy the air model Quote
Vinyarion Posted December 11, 2020 Posted December 11, 2020 Mod blocks must have block models loaded from resource packs just like vanilla blocks. The vanilla air model is assets/minecraft/models/block/air.json, and the blockstates are assets/minecraft/blockstates/air.json Quote Have you ever want the new operator to return a type that you didn't ask for? Well, now you can!
foonicular Posted December 14, 2020 Posted December 14, 2020 I believe that you can use RenderTypeLookup to set the block's render layer as transparent. Quote
FREyebeans2506 Posted December 14, 2020 Author Posted December 14, 2020 foonicular i dont know how to use RenderTypeLookup Quote
foonicular Posted December 15, 2020 Posted December 15, 2020 On 12/10/2020 at 6:49 PM, Vinyarion said: 1. Learn java, it will definitely make everything less confusing. Do this. You will need it. For now, you can use RenderTypeLookup.setRenderLayer(YourBlockClass.YourBlock.get(), RenderType.getTranslucent()); Use .get() if using deferred registries. You have to put this in your client setup event, I have my own topic on this. A link to that is right here, Quote
FREyebeans2506 Posted December 16, 2020 Author Posted December 16, 2020 I managed to get it to work using my knowledge of voxel shape so thanks foonicular Quote
Recommended Posts
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.