Skip to content

Commit

Permalink
Add crafting for emerald tools
Browse files Browse the repository at this point in the history
And balance items one again
  • Loading branch information
xYundy committed Mar 16, 2024
1 parent df121ba commit 140b7b3
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/pl/xyundy/squaredadditions/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
public class ModItems {

public static final Item COPPER_SWORD = registerItem("copper_sword",
new SwordItem(ModToolMaterial.COPPER_INGOT, 2, 2f, new FabricItemSettings()));
new SwordItem(ModToolMaterial.COPPER_INGOT, 3, -2.4F, new FabricItemSettings()));
public static final Item COPPER_PICKAXE = registerItem("copper_pickaxe",
new PickaxeItem(ModToolMaterial.COPPER_INGOT, 1, 1f, new FabricItemSettings()));
new PickaxeItem(ModToolMaterial.COPPER_INGOT, 1, -2.8F, new FabricItemSettings()));
public static final Item COPPER_SHOVEL = registerItem("copper_shovel",
new ShovelItem(ModToolMaterial.COPPER_INGOT, 0, 0f, new FabricItemSettings()));
new ShovelItem(ModToolMaterial.COPPER_INGOT, 1.5F, -3.0F, new FabricItemSettings()));
public static final Item COPPER_AXE = registerItem("copper_axe",
new AxeItem(ModToolMaterial.COPPER_INGOT, 6, -2f, new FabricItemSettings()));
new AxeItem(ModToolMaterial.COPPER_INGOT, 7.0F, -3.2F, new FabricItemSettings()));
public static final Item COPPER_HOE = registerItem("copper_hoe",
new HoeItem(ModToolMaterial.COPPER_INGOT, 0, 0f, new FabricItemSettings()));
new HoeItem(ModToolMaterial.COPPER_INGOT, -1, -2.0F, new FabricItemSettings()));

public static final Item EMERALD_SWORD = registerItem("emerald_sword",
new SwordItem(ModToolMaterial.EMERALD, 2, 2f, new FabricItemSettings()));
new SwordItem(ModToolMaterial.EMERALD, 3, -2.4F, new FabricItemSettings()));
public static final Item EMERALD_PICKAXE = registerItem("emerald_pickaxe",
new PickaxeItem(ModToolMaterial.EMERALD, 1, 1f, new FabricItemSettings()));
new PickaxeItem(ModToolMaterial.EMERALD, 1, -2.8F, new FabricItemSettings()));
public static final Item EMERALD_SHOVEL = registerItem("emerald_shovel",
new ShovelItem(ModToolMaterial.EMERALD, 0, 0f, new FabricItemSettings()));
new ShovelItem(ModToolMaterial.EMERALD, 1.5F, -3.0F, new FabricItemSettings()));
public static final Item EMERALD_AXE = registerItem("emerald_axe",
new AxeItem(ModToolMaterial.EMERALD, 6, -2f, new FabricItemSettings()));
new AxeItem(ModToolMaterial.EMERALD, 6.0F, -3.1F, new FabricItemSettings()));
public static final Item EMERALD_HOE = registerItem("emerald_hoe",
new HoeItem(ModToolMaterial.EMERALD, 0, 0f, new FabricItemSettings()));
new HoeItem(ModToolMaterial.EMERALD, -2, -1.0F, new FabricItemSettings()));



Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/data/squaredadditions/recipes/emerald_axe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"EE ",
"ES ",
" S "
],
"key": {
"E": {
"item": "minecraft:emerald"
},
"S": {
"item": "minecraft:stick"
}
},
"result": {
"item": "squaredadditions:emerald_axe"
}
}
20 changes: 20 additions & 0 deletions src/main/resources/data/squaredadditions/recipes/emerald_hoe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"EE ",
" S ",
" S "
],
"key": {
"E": {
"item": "minecraft:emerald"
},
"S": {
"item": "minecraft:stick"
}
},
"result": {
"item": "squaredadditions:emerald_hoe"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"EEE",
" S ",
" S "
],
"key": {
"E": {
"item": "minecraft:emerald"
},
"S": {
"item": "minecraft:stick"
}
},
"result": {
"item": "squaredadditions:emerald_pickaxe"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"E",
"S",
"S"
],
"key": {
"E": {
"item": "minecraft:emerald"
},
"S": {
"item": "minecraft:stick"
}
},
"result": {
"item": "squaredadditions:emerald_shovel"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"E",
"E",
"S"
],
"key": {
"E": {
"item": "minecraft:emerald"
},
"S": {
"item": "minecraft:stick"
}
},
"result": {
"item": "squaredadditions:emerald_sword"
}
}

0 comments on commit 140b7b3

Please sign in to comment.