This repository has been archived on 2025-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
GamerItems/src/main/java/net/arcmods/ryantlg/blocks/oriumBlocks.java
2022-05-01 15:09:52 +02:00

33 lines
1.9 KiB
Java

package net.arcmods.ryantlg.blocks;
import net.arcmods.ryantlg.gameritems;
import net.arcmods.ryantlg.blockClasses.oriumBlock;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.item.BlockItem;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
import net.minecraft.util.registry.Registry;
public class oriumBlocks {
public static final Block ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
public static final Block ORIUM_BLOCK = new oriumBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
public static final Block DEEPSLATE_ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
public static void register() {
Registry.register(Registry.BLOCK, new Identifier("gameritems", "orium_ore"), ORIUM_ORE);
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_ore"), new BlockItem(ORIUM_ORE, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
Registry.register(Registry.BLOCK, new Identifier("gameritems", "deepslate_orium_ore"), DEEPSLATE_ORIUM_ORE);
Registry.register(Registry.ITEM, new Identifier("gameritems", "deepslate_orium_ore"), new BlockItem(DEEPSLATE_ORIUM_ORE, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
Registry.register(Registry.BLOCK, new Identifier("gameritems", "orium_block"), ORIUM_BLOCK);
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_block"), new BlockItem(ORIUM_BLOCK, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
gameritems.LOGGER.info("oriumBlocks loaded");
}
}