I don't know what I've done but I've messed up some how and I don't know how to fix it
package com.igc.sbpm.core.init;
import com.igc.sbpm.SBPM;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.material.Material;
import net.minecraft.world.level.material.MaterialColor;
import net.minecraftforge.fmllegacy.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
public class BlockInit {
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS,
SBPM.MOD_ID);
public static final RegistryObject<Block> SLATE_BLOCK = BLOCKS
.register("slate_block",
() -> new Block(AbstractBlock.Properties.create(Material.STONE, MaterialColor.STONE)
.hardnessAndResistance(1.5f, 0.7f).harvestTool(ToolType.PICKAXE).harvestLevel(2)
.sound(SoundType.STONE)));
}
it shows a error under AbstractBlock, Properties and Tool Type