Rebuild Datapack

This commit is contained in:
Frank 2023-12-19 12:21:10 +01:00
parent 83d900a0fa
commit 7e8858c80c
24 changed files with 47 additions and 68 deletions

View file

@ -20,14 +20,13 @@
}, },
"requirements": [ "requirements": [
[ [
"has_tag_c_iron_ingots", "has_the_recipe",
"has_the_recipe" "has_tag_c_iron_ingots"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_cauldron" "bclib:tag_cauldron"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -30,15 +30,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots",
"has_tag_minecraft_planks", "has_tag_minecraft_planks"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_shield" "bclib:tag_shield"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -32,15 +32,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_chest", "has_tag_c_chest",
"has_shulker_shell", "has_shulker_shell"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_shulker_box" "bclib:tag_shulker_box"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -30,15 +30,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots",
"has_tag_minecraft_planks", "has_tag_minecraft_planks"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_smith_table" "bclib:tag_smith_table"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -32,15 +32,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_stone", "has_stone",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_stonecutter" "bclib:tag_stonecutter"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -20,14 +20,13 @@
}, },
"requirements": [ "requirements": [
[ [
"has_tag_c_iron_ingots", "has_the_recipe",
"has_the_recipe" "has_tag_c_iron_ingots"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_bucket" "bclib:tag_bucket"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -30,15 +30,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_chest", "has_tag_c_chest",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_hopper" "bclib:tag_hopper"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -54,17 +54,16 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_cobblestone", "has_cobblestone",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots",
"has_redstone", "has_redstone",
"has_tag_minecraft_planks", "has_tag_minecraft_planks"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_piston" "bclib:tag_piston"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -32,15 +32,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots",
"has_redstone", "has_redstone"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_compass" "bclib:tag_compass"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -20,14 +20,13 @@
}, },
"requirements": [ "requirements": [
[ [
"has_tag_c_iron_ingots", "has_the_recipe",
"has_the_recipe" "has_tag_c_iron_ingots"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_minecart" "bclib:tag_minecart"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -32,15 +32,14 @@
}, },
"requirements": [ "requirements": [
[ [
"has_the_recipe",
"has_tag_c_iron_ingots", "has_tag_c_iron_ingots",
"has_stick", "has_stick"
"has_the_recipe"
] ]
], ],
"rewards": { "rewards": {
"recipes": [ "recipes": [
"bclib:tag_rail" "bclib:tag_rail"
] ]
}, }
"sends_telemetry_event": false
} }

View file

@ -12,6 +12,5 @@
], ],
"result": { "result": {
"item": "minecraft:bucket" "item": "minecraft:bucket"
}, }
"show_notification": true
} }

View file

@ -13,6 +13,5 @@
], ],
"result": { "result": {
"item": "minecraft:cauldron" "item": "minecraft:cauldron"
}, }
"show_notification": true
} }

View file

@ -16,6 +16,5 @@
], ],
"result": { "result": {
"item": "minecraft:compass" "item": "minecraft:compass"
}, }
"show_notification": true
} }

View file

@ -16,6 +16,5 @@
], ],
"result": { "result": {
"item": "minecraft:hopper" "item": "minecraft:hopper"
}, }
"show_notification": true
} }

View file

@ -12,6 +12,5 @@
], ],
"result": { "result": {
"item": "minecraft:minecart" "item": "minecraft:minecart"
}, }
"show_notification": true
} }

View file

@ -22,6 +22,5 @@
], ],
"result": { "result": {
"item": "minecraft:piston" "item": "minecraft:piston"
}, }
"show_notification": true
} }

View file

@ -17,6 +17,5 @@
"result": { "result": {
"count": 16, "count": 16,
"item": "minecraft:rail" "item": "minecraft:rail"
}, }
"show_notification": true
} }

View file

@ -16,6 +16,5 @@
], ],
"result": { "result": {
"item": "minecraft:shield" "item": "minecraft:shield"
}, }
"show_notification": true
} }

View file

@ -16,6 +16,5 @@
], ],
"result": { "result": {
"item": "minecraft:shulker_box" "item": "minecraft:shulker_box"
}, }
"show_notification": true
} }

View file

@ -16,6 +16,5 @@
], ],
"result": { "result": {
"item": "minecraft:smithing_table" "item": "minecraft:smithing_table"
}, }
"show_notification": true
} }

View file

@ -15,6 +15,5 @@
], ],
"result": { "result": {
"item": "minecraft:stonecutter" "item": "minecraft:stonecutter"
}, }
"show_notification": true
} }

View file

@ -20,7 +20,6 @@
"minecraft:dandelion", "minecraft:dandelion",
"minecraft:fern", "minecraft:fern",
"minecraft:flowering_azalea", "minecraft:flowering_azalea",
"minecraft:grass",
"minecraft:large_fern", "minecraft:large_fern",
"minecraft:lilac", "minecraft:lilac",
"minecraft:lily_of_the_valley", "minecraft:lily_of_the_valley",
@ -39,6 +38,7 @@
"minecraft:pumpkin_stem", "minecraft:pumpkin_stem",
"minecraft:red_tulip", "minecraft:red_tulip",
"minecraft:rose_bush", "minecraft:rose_bush",
"minecraft:short_grass",
"minecraft:small_dripleaf", "minecraft:small_dripleaf",
"minecraft:spore_blossom", "minecraft:spore_blossom",
"minecraft:sugar_cane", "minecraft:sugar_cane",

View file

@ -111,7 +111,7 @@ public class CraftingRecipeBuilder extends AbstractBaseRecipeBuilder<CraftingRec
public CraftingRecipeBuilder unlockedBy(ItemStack... stacks) { public CraftingRecipeBuilder unlockedBy(ItemStack... stacks) {
return super.unlockedBy(stacks); return super.unlockedBy(stacks);
} }
@Override @Override
protected CraftingRecipeBuilder unlocks(String name, Criterion<?> criterion) { protected CraftingRecipeBuilder unlocks(String name, Criterion<?> criterion) {
this.unlocks.put(name, criterion); this.unlocks.put(name, criterion);
@ -148,6 +148,7 @@ public class CraftingRecipeBuilder extends AbstractBaseRecipeBuilder<CraftingRec
final ShapelessRecipeBuilder builder = ShapelessRecipeBuilder.shapeless( final ShapelessRecipeBuilder builder = ShapelessRecipeBuilder.shapeless(
category, output.getItem(), output.getCount() category, output.getItem(), output.getCount()
); );
for (Map.Entry<String, Criterion<?>> item : unlocks.entrySet()) { for (Map.Entry<String, Criterion<?>> item : unlocks.entrySet()) {
builder.unlockedBy(item.getKey(), item.getValue()); builder.unlockedBy(item.getKey(), item.getValue());
} }