Jump to content

Help with removing white fill in from block


Herobrine_Copper

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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);
		}

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.