diff --git a/src/main/java/me/jonasjones/nec/item/ModItems.java b/src/main/java/me/jonasjones/nec/item/ModItems.java index f0d9fd2..feb8978 100644 --- a/src/main/java/me/jonasjones/nec/item/ModItems.java +++ b/src/main/java/me/jonasjones/nec/item/ModItems.java @@ -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); } } diff --git a/src/main/resources/assets/nec/models/item/negative_flint.json b/src/main/resources/assets/nec/models/item/negative_flint.json new file mode 100644 index 0000000..b519c99 --- /dev/null +++ b/src/main/resources/assets/nec/models/item/negative_flint.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "nec:item/negative_flint" + } + } \ No newline at end of file diff --git a/src/main/resources/assets/nec/models/item/steel.json b/src/main/resources/assets/nec/models/item/steel.json new file mode 100644 index 0000000..5f4b422 --- /dev/null +++ b/src/main/resources/assets/nec/models/item/steel.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "nec:item/steel" + } + } \ No newline at end of file diff --git a/src/main/resources/assets/nec/textures/item/negative_flint.png b/src/main/resources/assets/nec/textures/item/negative_flint.png new file mode 100644 index 0000000..5aefe38 Binary files /dev/null and b/src/main/resources/assets/nec/textures/item/negative_flint.png differ diff --git a/src/main/resources/assets/nec/textures/item/steel.png b/src/main/resources/assets/nec/textures/item/steel.png new file mode 100644 index 0000000..cad9fda Binary files /dev/null and b/src/main/resources/assets/nec/textures/item/steel.png differ diff --git a/src/main/resources/data/nec/recipes/steel.json b/src/main/resources/data/nec/recipes/steel.json new file mode 100644 index 0000000..1d8ddda --- /dev/null +++ b/src/main/resources/data/nec/recipes/steel.json @@ -0,0 +1,14 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:flint_and_steel" + }, + { + "item": "nec:negative_flint" + } + ], + "result": { + "item": "nec:steel" + } +}