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