Rebuild Datapack
This commit is contained in:
parent
83d900a0fa
commit
7e8858c80c
24 changed files with 47 additions and 68 deletions
|
@ -20,14 +20,13 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_the_recipe"
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_cauldron"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -30,15 +30,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_tag_minecraft_planks",
|
||||
"has_the_recipe"
|
||||
"has_tag_minecraft_planks"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_shield"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -32,15 +32,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_chest",
|
||||
"has_shulker_shell",
|
||||
"has_the_recipe"
|
||||
"has_shulker_shell"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_shulker_box"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -30,15 +30,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_tag_minecraft_planks",
|
||||
"has_the_recipe"
|
||||
"has_tag_minecraft_planks"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_smith_table"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -32,15 +32,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_stone",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_the_recipe"
|
||||
"has_tag_c_iron_ingots"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_stonecutter"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -20,14 +20,13 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_the_recipe"
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_bucket"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -30,15 +30,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_chest",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_the_recipe"
|
||||
"has_tag_c_iron_ingots"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_hopper"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -54,17 +54,16 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_cobblestone",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_redstone",
|
||||
"has_tag_minecraft_planks",
|
||||
"has_the_recipe"
|
||||
"has_tag_minecraft_planks"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_piston"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -32,15 +32,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_redstone",
|
||||
"has_the_recipe"
|
||||
"has_redstone"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_compass"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -20,14 +20,13 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_the_recipe"
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_minecart"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -32,15 +32,14 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_tag_c_iron_ingots",
|
||||
"has_stick",
|
||||
"has_the_recipe"
|
||||
"has_stick"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"bclib:tag_rail"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
||||
}
|
|
@ -12,6 +12,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:bucket"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -13,6 +13,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:cauldron"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -16,6 +16,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:compass"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -16,6 +16,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:hopper"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -12,6 +12,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:minecart"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -22,6 +22,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:piston"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -17,6 +17,5 @@
|
|||
"result": {
|
||||
"count": 16,
|
||||
"item": "minecraft:rail"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -16,6 +16,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:shield"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -16,6 +16,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:shulker_box"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -16,6 +16,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:smithing_table"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -15,6 +15,5 @@
|
|||
],
|
||||
"result": {
|
||||
"item": "minecraft:stonecutter"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
||||
}
|
|
@ -20,7 +20,6 @@
|
|||
"minecraft:dandelion",
|
||||
"minecraft:fern",
|
||||
"minecraft:flowering_azalea",
|
||||
"minecraft:grass",
|
||||
"minecraft:large_fern",
|
||||
"minecraft:lilac",
|
||||
"minecraft:lily_of_the_valley",
|
||||
|
@ -39,6 +38,7 @@
|
|||
"minecraft:pumpkin_stem",
|
||||
"minecraft:red_tulip",
|
||||
"minecraft:rose_bush",
|
||||
"minecraft:short_grass",
|
||||
"minecraft:small_dripleaf",
|
||||
"minecraft:spore_blossom",
|
||||
"minecraft:sugar_cane",
|
||||
|
|
|
@ -111,7 +111,7 @@ public class CraftingRecipeBuilder extends AbstractBaseRecipeBuilder<CraftingRec
|
|||
public CraftingRecipeBuilder unlockedBy(ItemStack... stacks) {
|
||||
return super.unlockedBy(stacks);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected CraftingRecipeBuilder unlocks(String name, Criterion<?> criterion) {
|
||||
this.unlocks.put(name, criterion);
|
||||
|
@ -148,6 +148,7 @@ public class CraftingRecipeBuilder extends AbstractBaseRecipeBuilder<CraftingRec
|
|||
final ShapelessRecipeBuilder builder = ShapelessRecipeBuilder.shapeless(
|
||||
category, output.getItem(), output.getCount()
|
||||
);
|
||||
|
||||
for (Map.Entry<String, Criterion<?>> item : unlocks.entrySet()) {
|
||||
builder.unlockedBy(item.getKey(), item.getValue());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue