Herobrine_Copper Posted November 27, 2019 Posted November 27, 2019 I made a block that has properties of the sweet berry bush. I double checked that the texture that was being used was erased and the block works perfectly as it should when in a player's hand http://prntscr.com/q326t6 but fills in clear spots with white when placed http://prntscr.com/q327os. I checked the forum for a way to make it non opaque or translucent but both answers did nothing. This is my first mod. Quote
Draco18s Posted November 27, 2019 Posted November 27, 2019 Show your code Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Herobrine_Copper Posted November 28, 2019 Author Posted November 28, 2019 My BlockLists.java file package yeet.mod.lists; import net.minecraft.block.Block; public class BlockList { public boolean isTranslucent() { return true; } public static Block yeet_essence; public static Block yeet_bush; } My Block Registries @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { event.getRegistry().registerAll ( BlockList.yeet_bush = new Block(Block.Properties.create(Material.ORGANIC).doesNotBlockMovement().hardnessAndResistance(0).sound(SoundType.CROP)).setRegistryName("yeet_bush"), BlockList.yeet_essence = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(1).sound(SoundType.STONE)).setRegistryName(location("yeet_essence")) ); logger.info("Blocks registered."); } private static ResourceLocation location(String name) { return new ResourceLocation(modid, name); } Quote
Lea9ue Posted November 28, 2019 Posted November 28, 2019 (edited) BlockRenderLayer.CUTOUT_MIPPED, I think it's usually black though. Is your texture background white? Edited November 28, 2019 by Lea9ue Quote
Herobrine_Copper Posted November 28, 2019 Author Posted November 28, 2019 30 minutes ago, Lea9ue said: BlockRenderLayer.CUTOUT_MIPPED, I think it's usually black though. Is your texture background white? where would i put this Quote
Herobrine_Copper Posted November 28, 2019 Author Posted November 28, 2019 2 minutes ago, Lea9ue said: What MC version? 1.14.4 Quote
Herobrine_Copper Posted November 28, 2019 Author Posted November 28, 2019 Also for information i am trying to make a bush Quote
Lea9ue Posted November 28, 2019 Posted November 28, 2019 And is it a custom texture? If so, is background transparent, or white? If transparent then I would make a block class that extends BushBlock. Quote
Herobrine_Copper Posted November 28, 2019 Author Posted November 28, 2019 11 minutes ago, Lea9ue said: And is it a custom texture? If so, is background transparent, or white? If transparent then I would make a block class that extends BushBlock. it is a custom texture the background is transparent and is there a tutorial for creating a block class Quote
Lea9ue Posted November 28, 2019 Posted November 28, 2019 5 minutes ago, Herobrine_Copper said: it is a custom texture the background is transparent and is there a tutorial for creating a block class MCJty youtube Quote
Draco18s Posted November 28, 2019 Posted November 28, 2019 6 hours ago, Herobrine_Copper said: new Block( Have you tried BushBlock? You know, for bushes? Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.