I i know this thread is old but would you know what is wrong with my code for it not to work:
public static final DeferredRegister<Block> VANILLA_ITEMS = DeferredRegister.create(ForgeRegistries.BLOCKS, "minecraft");
public static final RegistryObject<Block> OAK_LOG = VANILLA_ITEMS.register("oak_log",
() -> new Block(BlockBehaviour.Properties.of().strength(5.0f, 0.5f)));