Skip to content

Commit

Permalink
Add missingCobbleRecipes rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Jun 27, 2022
1 parent 0af559d commit 74bbf89
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/de/rubixdev/rug/RugSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,23 @@ public String description() {
category = { EXPERIMENTAL, SURVIVAL, RENEWABLE, RUG }
)
public static boolean deepslateGeneration = false;

@CraftingRule(
recipes = {
"dispenser.json",
"dropper.json",
"lever.json",
"observer.json",
"piston.json"
},
recipeNamespace = "minecraft"
)
@Rule(
desc = "Adds missing recipes for allowing blackstone and cobbled deepslate in place of cobblestone",
extra = "Expect a lag spike when changing the value",
category = { SURVIVAL, CRAFTING, BUGFIX, RUG }
)
public static boolean missingCobbleRecipes = false;
}

// BUGFIX
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"key": {
"#": {
"tag": "minecraft:stone_crafting_materials"
},
"R": {
"item": "minecraft:redstone"
},
"X": {
"item": "minecraft:bow"
}
},
"pattern": [
"###",
"#X#",
"#R#"
],
"result": {
"item": "minecraft:dispenser"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"key": {
"#": {
"tag": "minecraft:stone_crafting_materials"
},
"R": {
"item": "minecraft:redstone"
}
},
"pattern": [
"###",
"# #",
"#R#"
],
"result": {
"item": "minecraft:dropper"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"key": {
"#": {
"tag": "minecraft:stone_crafting_materials"
},
"X": {
"item": "minecraft:stick"
}
},
"pattern": [
"X",
"#"
],
"result": {
"item": "minecraft:lever"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"key": {
"#": {
"tag": "minecraft:stone_crafting_materials"
},
"Q": {
"item": "minecraft:quartz"
},
"R": {
"item": "minecraft:redstone"
}
},
"pattern": [
"###",
"RRQ",
"###"
],
"result": {
"item": "minecraft:observer"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"type": "minecraft:crafting_shaped",
"key": {
"#": {
"tag": "minecraft:stone_crafting_materials"
},
"R": {
"item": "minecraft:redstone"
},
"T": {
"tag": "minecraft:planks"
},
"X": {
"item": "minecraft:iron_ingot"
}
},
"pattern": [
"TTT",
"#X#",
"#R#"
],
"result": {
"item": "minecraft:piston"
}
}

0 comments on commit 74bbf89

Please sign in to comment.