Начал писать блок... Вроде всё нормально, запускаю майнкрафт и мне пишет ошибку, думал долго, но так и ничего не придумал, не знаете как починить эту ошибку?
ItemInit:
public static final RegistryObject<Item> DUNGEON_STONE = ITEMS.register("dungeon_stone",
() -> new BlockItem(BlockInit.DUNGEON_STONE.get(), new Item.Properties().tab(CreativeTabinit.DANMACHI_ITEMS_TAB)));
BlockInit:
package com.danmachi.danmachi.init;
import com.danmachi.danmachi.danmachi;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
import net.minecraft.world.level.material.MaterialColor;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fmllegacy.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import static com.danmachi.danmachi.danmachi.MOD_ID;
public class BlockInit {
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MOD_ID);
public static final RegistryObject<Block> DUNGEON_STONE = BLOCKS.register("dungeon_stone",
() -> new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.STONE).strength(1.5F, 6.0F)));
public static void register(IEventBus eventBus)
{
BLOCKS.register(eventBus);
}
}