2021-09-02 19:11:51 +02:00
|
|
|
package com.minelittlepony.unicopia.block;
|
|
|
|
|
|
|
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
|
|
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricMaterialBuilder;
|
|
|
|
import net.minecraft.block.Block;
|
2021-12-31 13:54:51 +01:00
|
|
|
import net.minecraft.block.Blocks;
|
2021-09-02 19:11:51 +02:00
|
|
|
import net.minecraft.block.MapColor;
|
|
|
|
import net.minecraft.sound.BlockSoundGroup;
|
|
|
|
import net.minecraft.util.Identifier;
|
|
|
|
import net.minecraft.util.registry.Registry;
|
|
|
|
|
|
|
|
public interface UBlocks {
|
|
|
|
Block ROCKS = register("rocks", new RockCropBlock(FabricBlockSettings.of(
|
|
|
|
new FabricMaterialBuilder(MapColor.STONE_GRAY).allowsMovement().lightPassesThrough().notSolid().destroyedByPiston().build()
|
|
|
|
)
|
2021-09-03 00:47:48 +02:00
|
|
|
.requiresTool()
|
2021-09-02 19:11:51 +02:00
|
|
|
.ticksRandomly()
|
|
|
|
.strength(2)
|
|
|
|
.sounds(BlockSoundGroup.STONE)));
|
|
|
|
|
2021-12-31 13:54:51 +01:00
|
|
|
Block FROSTED_OBSIDIAN = register("frosted_obsidian", new FrostedObsidianBlock(FabricBlockSettings.copy(Blocks.OBSIDIAN).ticksRandomly()));
|
|
|
|
|
2021-09-02 19:11:51 +02:00
|
|
|
private static <T extends Block> T register(String name, T item) {
|
|
|
|
return Registry.register(Registry.BLOCK, new Identifier("unicopia", name), item);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void bootstrap() {}
|
|
|
|
}
|