Skip to content

Commit

Permalink
Override stone tool recipes. Changed deepslate tool recipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fukubus committed Jun 20, 2024
1 parent 5ddd83d commit 9e388be
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
mod_version=0.2.0-alpha2
mod_version=0.2.1-beta
maven_group=mommiissues.impracticality
archives_base_name=impracticality

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.common.base.Suppliers;

import net.minecraft.block.Block;
import net.minecraft.item.Items;
import net.minecraft.item.ToolMaterial;
import net.minecraft.recipe.Ingredient;
import net.minecraft.registry.RegistryKeys;
Expand All @@ -15,7 +16,7 @@

public enum ImpracticalToolMaterials implements ToolMaterial
{
DEEPSLATE(BlockTags.INCORRECT_FOR_STONE_TOOL, 262, 5f, 1.5f, 9, () -> Ingredient.fromTag(TagKey.of(RegistryKeys.ITEM, Identifier.of(Impracticality.MOD_ID, "deepslate_tool_materials"))));
DEEPSLATE(BlockTags.INCORRECT_FOR_STONE_TOOL, 262, 4.75f, 1.3f, 9, () -> Ingredient.ofItems(Items.COBBLED_DEEPSLATE));

private final TagKey<Block> inverseTag;
private final int itemDurability;
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/data/impracticality/recipe/deepslate_axe.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"category": "equipment",
"key": {
"#": {
"item": "minecraft:cobbled_deepslate"
"item": "minecraft:stick"
},
"X": {
"tag": "minecraft:stone_axe"
"item": "minecraft:cobbled_deepslate"
}
},
"pattern": [
"###",
"#X#",
"###"
"XX",
"X#",
" #"
],
"result": {
"count": 1,
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/data/impracticality/recipe/deepslate_hoe.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"category": "equipment",
"key": {
"#": {
"item": "minecraft:cobbled_deepslate"
"item": "minecraft:stick"
},
"X": {
"tag": "minecraft:stone_hoe"
"item": "minecraft:cobbled_deepslate"
}
},
"pattern": [
"###",
"#X#",
"###"
"XX",
" #",
" #"
],
"result": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"category": "equipment",
"key": {
"#": {
"item": "minecraft:cobbled_deepslate"
"item": "minecraft:stick"
},
"X": {
"tag": "minecraft:stone_pickaxe"
"item": "minecraft:cobbled_deepslate"
}
},
"pattern": [
"###",
"#X#",
"###"
"XXX",
" # ",
" # "
],
"result": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"category": "equipment",
"key": {
"#": {
"item": "minecraft:cobbled_deepslate"
"item": "minecraft:stick"
},
"X": {
"tag": "minecraft:stone_shovel"
"item": "minecraft:cobbled_deepslate"
}
},
"pattern": [
"###",
"#X#",
"###"
"X",
"#",
"#"
],
"result": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"category": "equipment",
"key": {
"#": {
"item": "minecraft:cobbled_deepslate"
"item": "minecraft:stick"
},
"X": {
"tag": "minecraft:stone_sword"
"item": "minecraft:cobbled_deepslate"
}
},
"pattern": [
"###",
"#X#",
"###"
"X",
"X",
"#"
],
"result": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": true,
"values": [
"minecraft:cobblestone"
]
}

0 comments on commit 9e388be

Please sign in to comment.