Skip to content

Commit

Permalink
Added recipes and tags for metals
Browse files Browse the repository at this point in the history
  • Loading branch information
fuj1n committed Sep 8, 2019
1 parent bfa7638 commit 14d916e
Show file tree
Hide file tree
Showing 17 changed files with 170 additions and 1 deletion.
@@ -1,13 +1,14 @@
package slimeknights.tmechworks.common.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.ToolType;

public class MetalBlock extends Block
{
public MetalBlock()
{
super(Properties.create(Material.IRON).hardnessAndResistance(5F, 10F).harvestTool(ToolType.PICKAXE).harvestLevel(-1));
super(Properties.create(Material.IRON).hardnessAndResistance(5F, 10F).harvestTool(ToolType.PICKAXE).harvestLevel(-1).sound(SoundType.METAL));
}
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:aluminum_block"
]
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:copper_block"
]
}
6 changes: 6 additions & 0 deletions src/resources/data/forge/tags/items/ingots/aluminum.json
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:aluminum_ingot"
]
}
6 changes: 6 additions & 0 deletions src/resources/data/forge/tags/items/ingots/copper.json
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:copper_ingot"
]
}
6 changes: 6 additions & 0 deletions src/resources/data/forge/tags/items/nuggets/aluminum.json
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:aluminum_nugget"
]
}
6 changes: 6 additions & 0 deletions src/resources/data/forge/tags/items/nuggets/copper.json
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:copper_nugget"
]
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:aluminum_block"
]
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"tmechworks:copper_block"
]
}
17 changes: 17 additions & 0 deletions src/resources/data/tmechworks/recipes/aluminum_block.json
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"group": "aluminum_block",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "tmechworks:aluminum_ingot"
}
},
"result": {
"item": "tmechworks:aluminum_block"
}
}
17 changes: 17 additions & 0 deletions src/resources/data/tmechworks/recipes/aluminum_ingot.json
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"group": "aluminum_ingot",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "tmechworks:aluminum_nugget"
}
},
"result": {
"item": "tmechworks:aluminum_ingot"
}
}
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"group": "aluminum_ingot",
"ingredients": [
{
"item": "tmechworks:aluminum_block"
}
],
"result": {
"item": "tmechworks:aluminum_ingot",
"count": 9
}
}
13 changes: 13 additions & 0 deletions src/resources/data/tmechworks/recipes/aluminum_nugget.json
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"group": "aluminum_nugget",
"ingredients": [
{
"item": "tmechworks:aluminum_ingot"
}
],
"result": {
"item": "tmechworks:aluminum_nugget",
"count": 9
}
}
17 changes: 17 additions & 0 deletions src/resources/data/tmechworks/recipes/copper_block.json
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"group": "copper_block",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "tmechworks:copper_ingot"
}
},
"result": {
"item": "tmechworks:copper_block"
}
}
17 changes: 17 additions & 0 deletions src/resources/data/tmechworks/recipes/copper_ingot.json
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"group": "copper_ingot",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "tmechworks:copper_nugget"
}
},
"result": {
"item": "tmechworks:copper_ingot"
}
}
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"group": "copper_ingot",
"ingredients": [
{
"item": "tmechworks:copper_block"
}
],
"result": {
"item": "tmechworks:copper_ingot",
"count": 9
}
}
13 changes: 13 additions & 0 deletions src/resources/data/tmechworks/recipes/copper_nugget.json
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"group": "copper_nugget",
"ingredients": [
{
"item": "tmechworks:copper_ingot"
}
],
"result": {
"item": "tmechworks:copper_nugget",
"count": 9
}
}

0 comments on commit 14d916e

Please sign in to comment.