Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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.

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

 

BlockRenderLayer.CUTOUT_MIPPED, I think it's usually black though. Is your texture background white?

Edited by Lea9ue

  • 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

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.

  • 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

 

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

 

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.