+ recepies

This commit is contained in:
Glitchlabs
2026-06-26 22:57:52 +02:00
parent f0fd0e4d25
commit b2235bf504
37 changed files with 985 additions and 0 deletions
@@ -0,0 +1,33 @@
// 1.21.1 2026-06-26T22:47:10.999126598 Recipes
82efb330df3536b2b91cb59d6f7443c32c6b0f4a data/ornamentum/advancement/recipes/building_blocks/black_glow_stained_glass.json
986d6e3da35726b4cd1d0c4d8ebcaae376e19fcb data/ornamentum/advancement/recipes/building_blocks/blue_glow_stained_glass.json
9001f25abdb03979c0efed37d6453eac7808a0fe data/ornamentum/advancement/recipes/building_blocks/brown_glow_stained_glass.json
fb2f603f817751b768ba3413e5cc87f43d287a24 data/ornamentum/advancement/recipes/building_blocks/cyan_glow_stained_glass.json
df02622b692ce408db63bdbdbd6a656e18447075 data/ornamentum/advancement/recipes/building_blocks/gray_glow_stained_glass.json
4852ce5493fd760a2a1b76db9e809b4052ca3dce data/ornamentum/advancement/recipes/building_blocks/green_glow_stained_glass.json
c400a39e9436fe52ac7365423482afa8483c239f data/ornamentum/advancement/recipes/building_blocks/light_blue_glow_stained_glass.json
6c170f11b80c25a798f9bb443e2ecbcd984ab947 data/ornamentum/advancement/recipes/building_blocks/light_gray_glow_stained_glass.json
4e05503ae5d9d4b57b23c8b61324c7f8f4865be0 data/ornamentum/advancement/recipes/building_blocks/lime_glow_stained_glass.json
4d72f0a8af65bab71d26806a54dbc4f61e66052c data/ornamentum/advancement/recipes/building_blocks/magenta_glow_stained_glass.json
84245d2c099f122ea5969931e16f1d1f106b32cc data/ornamentum/advancement/recipes/building_blocks/orange_glow_stained_glass.json
1b5a37b475dab0604a2af7369a2add670ae2d8f8 data/ornamentum/advancement/recipes/building_blocks/pink_glow_stained_glass.json
725c91eb7ed7e17497313044caa80c605a98ff4d data/ornamentum/advancement/recipes/building_blocks/purple_glow_stained_glass.json
670adda744880b018c44bd831dd08892b14bb18f data/ornamentum/advancement/recipes/building_blocks/red_glow_stained_glass.json
0d50d49d50103cfabe80700bd0336a93b6fcaa91 data/ornamentum/advancement/recipes/building_blocks/white_glow_stained_glass.json
6ee3ed6b69a377a65945341505ec19f795eadb85 data/ornamentum/advancement/recipes/building_blocks/yellow_glow_stained_glass.json
7cfe4d663c2ec0c20da98280a4b1027e41883161 data/ornamentum/recipe/black_glow_stained_glass.json
b45d8b7fa2c49e507afaa24edc0ce370e21edd6e data/ornamentum/recipe/blue_glow_stained_glass.json
6b1dd3de8ca8c03360a9801be86716cd7b7d0b48 data/ornamentum/recipe/brown_glow_stained_glass.json
0953be9781f878a4d4506a751bf6580f27b5f3de data/ornamentum/recipe/cyan_glow_stained_glass.json
8093de1956ab9c6e58bca99d5d7071a40a718b5d data/ornamentum/recipe/gray_glow_stained_glass.json
353a45623f5f237a337f3dca5f60965f80a5b083 data/ornamentum/recipe/green_glow_stained_glass.json
b70ca6c47ea8f74bd43dff06d476fd8dcec9a77b data/ornamentum/recipe/light_blue_glow_stained_glass.json
fb1564fd6768ae3dff7eb48c85eb533d7ffde9af data/ornamentum/recipe/light_gray_glow_stained_glass.json
e48af5d1f85436b9284d8ef4110ba53a05ba0d4f data/ornamentum/recipe/lime_glow_stained_glass.json
4f5770b4ec18dc34f82874600dd9e3e8e768daed data/ornamentum/recipe/magenta_glow_stained_glass.json
de52b52205a33203203408a238109b2d1bd0fcb3 data/ornamentum/recipe/orange_glow_stained_glass.json
c80feb0f43a685ca8c5e17ae204a535b14b8fbc7 data/ornamentum/recipe/pink_glow_stained_glass.json
2eee5c0fef8b235633bf44501d1451974e5b265a data/ornamentum/recipe/purple_glow_stained_glass.json
3ae98fd64c832069747d0afc5a35579bf44fb0ee data/ornamentum/recipe/red_glow_stained_glass.json
4ebc5a3be2cd74b9a6fb772a0d61c2edee3c06ff data/ornamentum/recipe/white_glow_stained_glass.json
a95c50ef6e0345d86baf3ec6dc8a0ba83d488186 data/ornamentum/recipe/yellow_glow_stained_glass.json
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:black_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:black_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:blue_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:blue_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:brown_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:brown_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:cyan_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:cyan_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:gray_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:gray_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:green_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:green_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:light_blue_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:light_blue_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:light_gray_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:light_gray_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:lime_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:lime_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:magenta_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:magenta_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:orange_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:orange_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:pink_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:pink_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:purple_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:purple_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:red_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:red_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:white_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:white_glow_stained_glass"
]
}
}
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_glow_ink_sac": {
"conditions": {
"items": [
{
"items": "minecraft:glow_ink_sac"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ornamentum:yellow_glow_stained_glass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_glow_ink_sac"
]
],
"rewards": {
"recipes": [
"ornamentum:yellow_glow_stained_glass"
]
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:black_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:black_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:blue_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:blue_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:brown_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:brown_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:cyan_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:cyan_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:gray_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:gray_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:green_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:green_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:light_blue_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:light_blue_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:light_gray_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:light_gray_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:lime_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:lime_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:magenta_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:magenta_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:orange_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:orange_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:pink_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:pink_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:purple_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:purple_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:red_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:red_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:white_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:white_glow_stained_glass"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"group": "stained_glass",
"key": {
"#": {
"item": "minecraft:yellow_stained_glass"
},
"X": {
"item": "minecraft:glow_ink_sac"
}
},
"pattern": [
"###",
"#X#",
"###"
],
"result": {
"count": 8,
"id": "ornamentum:yellow_glow_stained_glass"
}
}
@@ -39,5 +39,7 @@ public class DataGenerators {
generator.addProvider(event.includeClient(), new ModBlockStateProvider(packOutput, existingFileHelper)); generator.addProvider(event.includeClient(), new ModBlockStateProvider(packOutput, existingFileHelper));
generator.addProvider(event.includeClient(), new ModLanguageProvider(packOutput)); generator.addProvider(event.includeClient(), new ModLanguageProvider(packOutput));
generator.addProvider(event.includeServer(), new ModRecipeProvider(packOutput, lookupProvider));
} }
} }
@@ -0,0 +1,69 @@
package ovh.glitchlabs.ornamentum.datagen;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.PackOutput;
import net.minecraft.data.recipes.RecipeCategory;
import net.minecraft.data.recipes.RecipeOutput;
import net.minecraft.data.recipes.RecipeProvider;
import net.minecraft.data.recipes.ShapedRecipeBuilder;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.ItemLike;
import ovh.glitchlabs.ornamentum.blocks.ModBlocks;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
public class ModRecipeProvider extends RecipeProvider {
public ModRecipeProvider(PackOutput output,
CompletableFuture<HolderLookup.Provider> registries) {
super(output, registries);
}
@Override
protected void buildRecipes(RecipeOutput output) {
Map<ItemLike, ItemLike> glowGlassRecipes = new LinkedHashMap<>();
glowGlassRecipes.put(Items.WHITE_STAINED_GLASS, ModBlocks.WHITE_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.ORANGE_STAINED_GLASS, ModBlocks.ORANGE_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.MAGENTA_STAINED_GLASS, ModBlocks.MAGENTA_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.LIGHT_BLUE_STAINED_GLASS, ModBlocks.LIGHT_BLUE_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.YELLOW_STAINED_GLASS, ModBlocks.YELLOW_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.LIME_STAINED_GLASS, ModBlocks.LIME_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.PINK_STAINED_GLASS, ModBlocks.PINK_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.GRAY_STAINED_GLASS, ModBlocks.GRAY_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.LIGHT_GRAY_STAINED_GLASS, ModBlocks.LIGHT_GRAY_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.CYAN_STAINED_GLASS, ModBlocks.CYAN_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.PURPLE_STAINED_GLASS, ModBlocks.PURPLE_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.BLUE_STAINED_GLASS, ModBlocks.BLUE_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.BROWN_STAINED_GLASS, ModBlocks.BROWN_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.GREEN_STAINED_GLASS, ModBlocks.GREEN_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.RED_STAINED_GLASS, ModBlocks.RED_GLOW_STAINED_GLASS.get());
glowGlassRecipes.put(Items.BLACK_STAINED_GLASS, ModBlocks.BLACK_GLOW_STAINED_GLASS.get());
glowGlassRecipes.forEach((input, result) ->
createGlowGlassRecipe(output, input, result));
}
private void createGlowGlassRecipe(RecipeOutput output,
ItemLike input,
ItemLike result) {
ShapedRecipeBuilder.shaped(
RecipeCategory.BUILDING_BLOCKS,
result,
8
)
.pattern("###")
.pattern("#X#")
.pattern("###")
.define('#', input)
.define('X', Items.GLOW_INK_SAC)
.group("stained_glass")
.unlockedBy("has_glow_ink_sac", has(Items.GLOW_INK_SAC))
.save(output);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 191 B

@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"pattern": [
" A ",
"A A",
" A "
],
"key": {
"A": {
"item": "minecraft:iron_block"
}
},
"result": {
"id": "ornamentum:iron_grate"
}
}