Skip to content

Commit

Permalink
added recipe for soundproof glass
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Aug 5, 2024
1 parent 9f3ba45 commit 99c713b
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-08-05T00:24:35.9031049 Recipes
// 1.21 2024-08-05T00:26:49.7353485 Recipes
ff2b4eded29e6aee06a2b8a67ed2460d6b44574c data/deeperdarker/advancement/recipes/building_blocks/bloom_planks.json
2b96f477889839f16134ded19ef45829d1ef94d3 data/deeperdarker/advancement/recipes/building_blocks/bloom_slab.json
67da220cbe51e2cdd8ce24d17eacc2558e4ba816 data/deeperdarker/advancement/recipes/building_blocks/bloom_stairs.json
Expand Down Expand Up @@ -162,6 +162,7 @@ f9e982e607d61787866348fea287731c4db5909f data/deeperdarker/advancement/recipes/b
e0b5fd7e2cda9ef7bd5a9ee556e5e6e1efda75ea data/deeperdarker/advancement/recipes/building_blocks/smooth_sculk_stone_stairs_from_smooth_sculk_stone_stonecutting.json
d6997e0568569958883bc7c7ef83574866cb1a23 data/deeperdarker/advancement/recipes/building_blocks/smooth_sculk_stone_wall.json
43ad17c280d6d9d063df84afa4555580286a4ae8 data/deeperdarker/advancement/recipes/building_blocks/smooth_sculk_stone_wall_from_smooth_sculk_stone_stonecutting.json
6f4089e1259105ef8b87477b4ed88a7273d690e2 data/deeperdarker/advancement/recipes/building_blocks/soundproof_glass.json
e6e5116b5225483eebb23e7d129ce2f5a3742c1b data/deeperdarker/advancement/recipes/building_blocks/stripped_echo_wood.json
a64804f0b5f94539f749b1cea301f7d571f98fb6 data/deeperdarker/advancement/recipes/combat/sonorous_staff.json
e1eab5706f40aca2fa305742732f4f9666a74edb data/deeperdarker/advancement/recipes/combat/warden_boots_smithing.json
Expand Down Expand Up @@ -448,6 +449,7 @@ cf1bf7b201f811e64dc65744aa142c2e10fea833 data/deeperdarker/recipe/smooth_sculk_s
86c0603ad443139c19fc532f33ab9a047ad7d1b6 data/deeperdarker/recipe/smooth_sculk_stone_wall_from_smooth_sculk_stone_stonecutting.json
45444ccddf1f6a7553ea159574f9608406d816d0 data/deeperdarker/recipe/sonorous_staff.json
aea3bf9a942afe4b45459837b671352814563ff4 data/deeperdarker/recipe/soul_elytra.json
003310a84d838ff034bb51b909f0b06caf3291c8 data/deeperdarker/recipe/soundproof_glass.json
aa4d7caeb8bb0bdadb27f802e967c02ea26efea5 data/deeperdarker/recipe/stripped_echo_wood.json
f8be1416b8ee77ccc9d27c35fff8622346cca986 data/deeperdarker/recipe/warden_axe_smithing.json
599be8fb5a235281e0eb522d2449c338efc34b6d data/deeperdarker/recipe/warden_boots_smithing.json
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_soul_dust": {
"conditions": {
"items": [
{
"items": "deeperdarker:soul_dust"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "deeperdarker:soundproof_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_soul_dust"
]
],
"rewards": {
"recipes": [
"deeperdarker:soundproof_glass"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"key": {
"G": {
"item": "minecraft:glass"
},
"S": {
"item": "deeperdarker:soul_dust"
}
},
"pattern": [
" S ",
"SGS",
" S "
],
"result": {
"count": 2,
"id": "deeperdarker:soundproof_glass"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ private void addCraftingRecipes(RecipeOutput output) {
slab(output, RecipeCategory.BUILDING_BLOCKS, DDBlocks.SCULK_GRIME_BRICK_SLAB.get(), DDBlocks.SCULK_GRIME_BRICKS.get());
wall(output, RecipeCategory.BUILDING_BLOCKS, DDBlocks.SCULK_GRIME_BRICK_WALL.get(), DDBlocks.SCULK_GRIME_BRICKS.get());

ShapedRecipeBuilder.shaped(RecipeCategory.BUILDING_BLOCKS, DDBlocks.SOUNDPROOF_GLASS, 2)
.define('S', DDItems.SOUL_DUST).define('G', Items.GLASS)
.pattern(" S ").pattern("SGS").pattern(" S ")
.unlockedBy(getHasName(DDItems.SOUL_DUST), has(DDItems.SOUL_DUST)).save(output);

ShapedRecipeBuilder.shaped(RecipeCategory.TRANSPORTATION, DDItems.SOUL_ELYTRA.get())
.define('B', DDItems.SCULK_BONE.get()).define('C', DDItems.SOUL_CRYSTAL.get()).define('D', DDItems.SOUL_DUST.get()).define('E', Items.ELYTRA)
.pattern("BCB").pattern("DED").pattern("B B")
Expand Down

0 comments on commit 99c713b

Please sign in to comment.