Add compressed bedrock and stalinium ore blocks

This commit is contained in:
IM23a-spirgif
2025-05-12 21:10:16 +02:00
parent 2c868cb3e7
commit bd18873afa
8 changed files with 34 additions and 11 deletions
@@ -17,10 +17,23 @@ public class ModBlocks {
public static final DeferredRegister.Blocks BLOCKS =
DeferredRegister.createBlocks(Stalinium.MODID);
public static final DeferredBlock<Block> COMPRESSED_BEDROCK = registerBlock("compressed_bedrock",
() -> new Block(BlockBehaviour.Properties.of()
.strength(50f, 1200f)
.requiresCorrectToolForDrops()
.sound(SoundType.STONE)));
public static final DeferredBlock<Block> STALINIUM_ORE = registerBlock("stalinium_ore",
() -> new Block(BlockBehaviour.Properties.of()
.strength(5f, 6f)
.requiresCorrectToolForDrops()
.sound(SoundType.NETHER_ORE)));
public static final DeferredBlock<Block> STALINIUM_BLOCK = registerBlock("stalinium_block",
() -> new Block(BlockBehaviour.Properties.of()
.strength(5f).requiresCorrectToolForDrops().sound(SoundType.NETHERITE_BLOCK)));
.strength(10f, 15f)
.requiresCorrectToolForDrops()
.sound(SoundType.NETHERITE_BLOCK)));
private static <T extends Block> DeferredBlock<T> registerBlock(String name, Supplier<T> block) {
DeferredBlock<T> toReturn = BLOCKS.register(name, block);
@@ -35,4 +48,4 @@ public class ModBlocks {
public static void register(IEventBus eventBus) {
BLOCKS.register(eventBus);
}
}
}