Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
BastosOff committed Nov 18, 2024
1 parent 1146500 commit 78e0d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/fr/celyanrbx/coreforge/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public class ModBlocks {

public static final DeferredBlock<Block> DEEPSLATE_STEEL_ORE = registerBlock("deepslate_steel_ore",
() -> new DropExperienceBlock(UniformInt.of(2, 4),
BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops().sound(SoundType.STONE)));
BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops().sound(SoundType.DEEPSLATE)));

public static final DeferredBlock<Block> END_STEEL_ORE = registerBlock("end_steel_ore",
() -> new DropExperienceBlock(UniformInt.of(2, 4),
BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops().sound(SoundType.STONE)));

public static final DeferredBlock<Block> NETHER_STEEL_ORE = registerBlock("nether_steel_ore",
() -> new DropExperienceBlock(UniformInt.of(2, 4),
BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops().sound(SoundType.STONE)));
BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops().sound(SoundType.NETHERRACK)));


private static <T extends Block> DeferredBlock<T> registerBlock(String name, Supplier<T> block) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class ModCreativeModeTabs {
.title(Component.translatable("creativetab.coreforge.coreforge_blocks"))
.displayItems((itemDisplayParameters, output) -> {
output.accept(ModBlocks.STEEL_BLOCK);
output.accept(ModBlocks.RAW_STEEL_BLOCK);
output.accept(ModBlocks.STEEL_ORE);
output.accept(ModBlocks.DEEPSLATE_STEEL_ORE);
output.accept(ModBlocks.END_STEEL_ORE);
Expand Down

0 comments on commit 78e0d4c

Please sign in to comment.