mirror of
https://github.com/JonasunderscoreJones/NotEnoughCursedness.git
synced 2025-10-23 04:29:19 +02:00
added negative flint, steel and steel crafting
This commit is contained in:
parent
ccd98528cc
commit
6cd2dea689
6 changed files with 36 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "nec:item/negative_flint"
|
||||||
|
}
|
||||||
|
}
|
6
src/main/resources/assets/nec/models/item/steel.json
Normal file
6
src/main/resources/assets/nec/models/item/steel.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "nec:item/steel"
|
||||||
|
}
|
||||||
|
}
|
BIN
src/main/resources/assets/nec/textures/item/negative_flint.png
Normal file
BIN
src/main/resources/assets/nec/textures/item/negative_flint.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 334 B |
BIN
src/main/resources/assets/nec/textures/item/steel.png
Normal file
BIN
src/main/resources/assets/nec/textures/item/steel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 B |
14
src/main/resources/data/nec/recipes/steel.json
Normal file
14
src/main/resources/data/nec/recipes/steel.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:flint_and_steel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "nec:negative_flint"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"item": "nec:steel"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue