Skip to content

Commit 6114694

Browse files
committed
Add recipe for splicing table
1 parent 865b587 commit 6114694

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parent": "minecraft:recipes/root",
3+
"criteria": {
4+
"has_item": {
5+
"conditions": {
6+
"items": [
7+
{
8+
"items": [
9+
"hexcasting:focus"
10+
]
11+
}
12+
]
13+
},
14+
"trigger": "minecraft:inventory_changed"
15+
},
16+
"has_the_recipe": {
17+
"conditions": {
18+
"recipe": "hexdebug:splicing_table"
19+
},
20+
"trigger": "minecraft:recipe_unlocked"
21+
}
22+
},
23+
"requirements": [
24+
[
25+
"has_item",
26+
"has_the_recipe"
27+
]
28+
],
29+
"rewards": {
30+
"recipes": [
31+
"hexdebug:splicing_table"
32+
]
33+
},
34+
"sends_telemetry_event": false
35+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"type": "minecraft:crafting_shaped",
3+
"category": "misc",
4+
"key": {
5+
"A": {
6+
"item": "minecraft:amethyst_shard"
7+
},
8+
"C": {
9+
"item": "hexcasting:charged_amethyst"
10+
},
11+
"F": {
12+
"item": "hexcasting:focus"
13+
},
14+
"G": {
15+
"item": "minecraft:gold_ingot"
16+
},
17+
"P": {
18+
"item": "hexcasting:edified_planks"
19+
},
20+
"S": {
21+
"item": "hexcasting:slate_block"
22+
}
23+
},
24+
"pattern": [
25+
"PCP",
26+
"AFA",
27+
"SGS"
28+
],
29+
"result": {
30+
"item": "hexdebug:splicing_table"
31+
},
32+
"show_notification": true
33+
}

Forge/src/main/kotlin/gay/object/hexdebug/forge/datagen/HexDebugRecipes.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import at.petrak.hexcasting.common.lib.HexBlocks
55
import at.petrak.hexcasting.common.lib.HexItems
66
import at.petrak.paucal.api.datagen.PaucalRecipeProvider
77
import gay.`object`.hexdebug.HexDebug
8+
import gay.`object`.hexdebug.registry.HexDebugBlocks
89
import gay.`object`.hexdebug.registry.HexDebugItems
910
import net.minecraft.data.PackOutput
1011
import net.minecraft.data.recipes.FinishedRecipe
@@ -23,6 +24,19 @@ class HexDebugRecipes(output: PackOutput) : PaucalRecipeProvider(output, HexDebu
2324
flyswatter(HexDebugItems.EVALUATOR.value, HexBlocks.SLATE_BLOCK)
2425
.unlockedBy("has_item", hasItem(HexTags.Items.STAVES))
2526
.save(writer)
27+
28+
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, HexDebugBlocks.SPLICING_TABLE.value)
29+
.define('P', HexBlocks.EDIFIED_PLANKS)
30+
.define('C', HexItems.CHARGED_AMETHYST)
31+
.define('A', Items.AMETHYST_SHARD)
32+
.define('F', HexItems.FOCUS)
33+
.define('S', HexBlocks.SLATE_BLOCK)
34+
.define('G', Items.GOLD_INGOT)
35+
.pattern("PCP")
36+
.pattern("AFA")
37+
.pattern("SGS")
38+
.unlockedBy("has_item", hasItem(HexItems.FOCUS))
39+
.save(writer)
2640
}
2741

2842
@Suppress("SameParameterValue")

0 commit comments

Comments
 (0)