From 8555ff1b97c23231eccb015fdce807616b5ddf23 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 | 125 ++++++++++++++++++ .../weaponmod/advancements/iron.blast.json | 125 ++++++++++++++++++ .../data/weaponmod/recipes/gold.blast.json | 33 +++++ .../data/weaponmod/recipes/iron.blast.json | 33 +++++ 4 files changed, 316 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..63892619 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/advancements/gold.blast.json @@ -0,0 +1,125 @@ +{ + "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..7553f40b --- /dev/null +++ b/common/src/main/resources/data/weaponmod/advancements/iron.blast.json @@ -0,0 +1,125 @@ +{ + "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..1a3c2c55 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/recipes/gold.blast.json @@ -0,0 +1,33 @@ +{ + "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": "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..8a4facd3 --- /dev/null +++ b/common/src/main/resources/data/weaponmod/recipes/iron.blast.json @@ -0,0 +1,33 @@ +{ + "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": "minecraft:iron_nugget", + "experience": 0.1, + "cookingtime": 100 +}