From 1e075ff3c91bb025cb4cf4e3ac6a532d18ba28da Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Mon, 28 Oct 2024 10:28:23 +0100 Subject: [PATCH] Allow blast smelting of tools --- .../weaponmod/advancements/gold.blast.json | 109 ++++++++++++++++++ .../weaponmod/advancements/iron.blast.json | 109 ++++++++++++++++++ .../data/weaponmod/recipes/gold.blast.json | 35 ++++++ .../data/weaponmod/recipes/iron.blast.json | 35 ++++++ 4 files changed, 288 insertions(+) create mode 100644 common/src/main/resources/data/weaponmod/advancements/gold.blast.json create mode 100644 common/src/main/resources/data/weaponmod/advancements/iron.blast.json create mode 100644 common/src/main/resources/data/weaponmod/recipes/gold.blast.json create mode 100644 common/src/main/resources/data/weaponmod/recipes/iron.blast.json diff --git a/common/src/main/resources/data/weaponmod/advancements/gold.blast.json b/common/src/main/resources/data/weaponmod/advancements/gold.blast.json new file mode 100644 index 00000000..f0a3265f --- /dev/null +++ b/common/src/main/resources/data/weaponmod/advancements/gold.blast.json @@ -0,0 +1,109 @@ +{ + "parent": "weaponmod:root", + "rewards": { + "recipes": [ + "weaponmod:gold.blast" + ] + }, + "criteria": { + "has_spear.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:spear.gold" + } + ] + } + }, + "has_halberd.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:halberd.gold" + } + ] + } + }, + "has_knife.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:knife.gold" + } + ] + } + }, + "has_battleaxe.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:battleaxe.gold" + } + ] + } + }, + "has_warhammer.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:warhammer.gold" + } + ] + } + }, + "has_flail.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:flail.gold" + } + ] + } + }, + "has_boomerang.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:boomerang.gold" + } + ] + } + }, + "has_katana.gold": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:katana.gold" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "weaponmod:gold.blast" + } + } + }, + "requirements": [ + [ + "has_spear.gold", + "has_halberd.gold", + "has_knife.gold", + "has_battleaxe.gold", + "has_warhammer.gold", + "has_flail.gold", + "has_boomerang.gold", + "has_katana.gold", + "has_the_recipe" + ] + ] +} diff --git a/common/src/main/resources/data/weaponmod/advancements/iron.blast.json b/common/src/main/resources/data/weaponmod/advancements/iron.blast.json new file mode 100644 index 00000000..12c50702 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/advancements/iron.blast.json @@ -0,0 +1,109 @@ +{ + "parent": "weaponmod:root", + "rewards": { + "recipes": [ + "weaponmod:iron.blast" + ] + }, + "criteria": { + "has_spear.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:spear.iron" + } + ] + } + }, + "has_halberd.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:halberd.iron" + } + ] + } + }, + "has_knife.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:knife.iron" + } + ] + } + }, + "has_battleaxe.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:battleaxe.iron" + } + ] + } + }, + "has_warhammer.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:warhammer.iron" + } + ] + } + }, + "has_flail.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:flail.iron" + } + ] + } + }, + "has_boomerang.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:boomerang.iron" + } + ] + } + }, + "has_katana.iron": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "weaponmod:katana.iron" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "weaponmod:iron.blast" + } + } + }, + "requirements": [ + [ + "has_spear.iron", + "has_halberd.iron", + "has_knife.iron", + "has_battleaxe.iron", + "has_warhammer.iron", + "has_flail.iron", + "has_boomerang.iron", + "has_katana.iron", + "has_the_recipe" + ] + ] +} diff --git a/common/src/main/resources/data/weaponmod/recipes/gold.blast.json b/common/src/main/resources/data/weaponmod/recipes/gold.blast.json new file mode 100644 index 00000000..524cc531 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/recipes/gold.blast.json @@ -0,0 +1,35 @@ +{ + "type": "minecraft:blasting", + "category": "misc", + "ingredient": [ + { + "item": "weaponmod:spear.gold" + }, + { + "item": "weaponmod:halberd.gold" + }, + { + "item": "weaponmod:knife.gold" + }, + { + "item": "weaponmod:battleaxe.gold" + }, + { + "item": "weaponmod:warhammer.gold" + }, + { + "item": "weaponmod:flail.gold" + }, + { + "item": "weaponmod:boomerang.gold" + }, + { + "item": "weaponmod:katana.gold" + } + ], + "result": { + "id": "minecraft:gold_nugget" + }, + "experience": 0.1, + "cookingtime": 100 +} diff --git a/common/src/main/resources/data/weaponmod/recipes/iron.blast.json b/common/src/main/resources/data/weaponmod/recipes/iron.blast.json new file mode 100644 index 00000000..1d3fcc55 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/recipes/iron.blast.json @@ -0,0 +1,35 @@ +{ + "type": "minecraft:blasting", + "category": "misc", + "ingredient": [ + { + "item": "weaponmod:spear.iron" + }, + { + "item": "weaponmod:halberd.iron" + }, + { + "item": "weaponmod:knife.iron" + }, + { + "item": "weaponmod:battleaxe.iron" + }, + { + "item": "weaponmod:warhammer.iron" + }, + { + "item": "weaponmod:flail.iron" + }, + { + "item": "weaponmod:boomerang.iron" + }, + { + "item": "weaponmod:katana.iron" + } + ], + "result": { + "id": "minecraft:iron_nugget" + }, + "experience": 0.1, + "cookingtime": 100 +}