added negative flint, steel and steel crafting

This commit is contained in:
Jonas_Jones 2023-04-05 00:06:49 +02:00
parent ccd98528cc
commit 6cd2dea689
6 changed files with 36 additions and 0 deletions

View file

@ -9,11 +9,21 @@ import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
public class ModItems {
private static Item STEEL_ITEM;
private static ToolItem DIRT_SWORD_ITEM;
private static Item NEGATIVE_FLINT_ITEM;
public static void register() {
ToolItem DIRT_SWORD = new SwordItem(DirtToolMaterial.INSTANCE, 1, -3.0F, new Item.Settings());
DIRT_SWORD_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "dirt_sword"), DIRT_SWORD);
ModRegistries.register_item(DIRT_SWORD_ITEM);
Item STEEL = new Item(new FabricItemSettings());
STEEL_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "steel"), STEEL);
ModRegistries.register_item(STEEL_ITEM);
Item NEGATIVE_FLINT = new Item(new FabricItemSettings());
NEGATIVE_FLINT_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "negative_flint"), NEGATIVE_FLINT);
ModRegistries.register_item(NEGATIVE_FLINT_ITEM);
}
}