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; import net.minecraft.util.Identifier;
public class ModItems { public class ModItems {
private static Item STEEL_ITEM;
private static ToolItem DIRT_SWORD_ITEM; private static ToolItem DIRT_SWORD_ITEM;
private static Item NEGATIVE_FLINT_ITEM;
public static void register() { public static void register() {
ToolItem DIRT_SWORD = new SwordItem(DirtToolMaterial.INSTANCE, 1, -3.0F, new Item.Settings()); 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); DIRT_SWORD_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "dirt_sword"), DIRT_SWORD);
ModRegistries.register_item(DIRT_SWORD_ITEM); 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);
} }
} }

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "nec:item/negative_flint"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "nec:item/steel"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

View file

@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:flint_and_steel"
},
{
"item": "nec:negative_flint"
}
],
"result": {
"item": "nec:steel"
}
}