added AK-47

This commit is contained in:
Jonas_Jones 2023-04-05 04:10:45 +02:00
parent 516bf1607c
commit 75767bf470
4 changed files with 23 additions and 0 deletions

View file

@ -14,6 +14,7 @@ public class ModItems {
private static Item NEGATIVE_FLINT_ITEM; private static Item NEGATIVE_FLINT_ITEM;
private static Item LETTER_ITEM; private static Item LETTER_ITEM;
private static Item CHAINMAIL_ITEM; private static Item CHAINMAIL_ITEM;
private static Item AK47_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());
@ -35,5 +36,9 @@ public class ModItems {
Item CHAINMAIL = new Item(new FabricItemSettings()); Item CHAINMAIL = new Item(new FabricItemSettings());
CHAINMAIL_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "chainmail"), CHAINMAIL); CHAINMAIL_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "chainmail"), CHAINMAIL);
ModRegistries.register_item(CHAINMAIL_ITEM); ModRegistries.register_item(CHAINMAIL_ITEM);
Item AK47 = new Item(new FabricItemSettings());
AK47_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "ak_47"), AK47);
ModRegistries.register_item(AK47_ITEM);
} }
} }

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:smithing",
"base": {
"item": "minecraft:bow"
},
"addition": {
"item": "minecraft:iron_ingot"
},
"result": {
"item": "nec:ak_47"
}
}