Posted November 27, 20195 yr 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.
November 27, 20195 yr Show your code 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.
November 28, 20195 yr Author 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); }
November 28, 20195 yr BlockRenderLayer.CUTOUT_MIPPED, I think it's usually black though. Is your texture background white? Edited November 28, 20195 yr by Lea9ue
November 28, 20195 yr Author 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
November 28, 20195 yr 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.
November 28, 20195 yr Author 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
November 28, 20195 yr 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
November 28, 20195 yr 6 hours ago, Herobrine_Copper said: new Block( Have you tried BushBlock? You know, for bushes? 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.
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.