From 4faf2e4b2b1a105be692efe92146bc1511e8a98c Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 9 Feb 2022 08:45:50 -0600 Subject: [PATCH] Use Create cobblestones, undo some cobbling --- .../loot_tables/blocks/andesite.json | 2 +- .../minecraft/loot_tables/blocks/diorite.json | 2 +- .../minecraft/loot_tables/blocks/granite.json | 2 +- .../loot_tables/blocks/red_sandstone.json | 43 ------------------- .../loot_tables/blocks/sandstone.json | 43 ------------------- .../minecraft/loot_tables/blocks/stone.json | 43 ------------------- .../recipes/unify/cobble.js | 10 +++++ 7 files changed, 13 insertions(+), 132 deletions(-) delete mode 100644 kubejs/data/minecraft/loot_tables/blocks/red_sandstone.json delete mode 100644 kubejs/data/minecraft/loot_tables/blocks/sandstone.json delete mode 100644 kubejs/data/minecraft/loot_tables/blocks/stone.json create mode 100644 kubejs/server_scripts/HarmoniousEngineering/recipes/unify/cobble.js diff --git a/kubejs/data/minecraft/loot_tables/blocks/andesite.json b/kubejs/data/minecraft/loot_tables/blocks/andesite.json index a995a27..646d66d 100644 --- a/kubejs/data/minecraft/loot_tables/blocks/andesite.json +++ b/kubejs/data/minecraft/loot_tables/blocks/andesite.json @@ -33,7 +33,7 @@ "condition": "minecraft:survives_explosion" } ], - "name": "natural-progression:cobbled_andesite" + "name": "create:andesite_cobblestone" } ] } diff --git a/kubejs/data/minecraft/loot_tables/blocks/diorite.json b/kubejs/data/minecraft/loot_tables/blocks/diorite.json index 1d82875..a0f4c4e 100644 --- a/kubejs/data/minecraft/loot_tables/blocks/diorite.json +++ b/kubejs/data/minecraft/loot_tables/blocks/diorite.json @@ -33,7 +33,7 @@ "condition": "minecraft:survives_explosion" } ], - "name": "natural-progression:cobbled_diorite" + "name": "create:diorite_cobblestone" } ] } diff --git a/kubejs/data/minecraft/loot_tables/blocks/granite.json b/kubejs/data/minecraft/loot_tables/blocks/granite.json index 5d33d04..884bfeb 100644 --- a/kubejs/data/minecraft/loot_tables/blocks/granite.json +++ b/kubejs/data/minecraft/loot_tables/blocks/granite.json @@ -33,7 +33,7 @@ "condition": "minecraft:survives_explosion" } ], - "name": "natural-progression:cobbled_granite" + "name": "create:granite_cobblestone" } ] } diff --git a/kubejs/data/minecraft/loot_tables/blocks/red_sandstone.json b/kubejs/data/minecraft/loot_tables/blocks/red_sandstone.json deleted file mode 100644 index 38dcda4..0000000 --- a/kubejs/data/minecraft/loot_tables/blocks/red_sandstone.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "name": "minecraft:red_sandstone" - }, - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ], - "name": "natural-progression:cobbled_red_sandstone" - } - ] - } - ] - } - ] -} diff --git a/kubejs/data/minecraft/loot_tables/blocks/sandstone.json b/kubejs/data/minecraft/loot_tables/blocks/sandstone.json deleted file mode 100644 index bc83581..0000000 --- a/kubejs/data/minecraft/loot_tables/blocks/sandstone.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "name": "minecraft:sandstone" - }, - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ], - "name": "natural-progression:cobbled_sandstone" - } - ] - } - ] - } - ] -} diff --git a/kubejs/data/minecraft/loot_tables/blocks/stone.json b/kubejs/data/minecraft/loot_tables/blocks/stone.json deleted file mode 100644 index 4ad27c4..0000000 --- a/kubejs/data/minecraft/loot_tables/blocks/stone.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "name": "minecraft:stone" - }, - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ], - "name": "minecraft:cobblestone" - } - ] - } - ] - } - ] -} diff --git a/kubejs/server_scripts/HarmoniousEngineering/recipes/unify/cobble.js b/kubejs/server_scripts/HarmoniousEngineering/recipes/unify/cobble.js new file mode 100644 index 0000000..9d58396 --- /dev/null +++ b/kubejs/server_scripts/HarmoniousEngineering/recipes/unify/cobble.js @@ -0,0 +1,10 @@ +onEvent('recipes', event => { + event.stonecutting('create:andesite_cobblestone', 'natural-progression:cobbled_andesite'); + event.stonecutting('natural-progression:cobbled_andesite', 'create:andesite_cobblestone'); + + event.stonecutting('create:diorite_cobblestone', 'natural-progression:cobbled_diorite'); + event.stonecutting('natural-progression:cobbled_diorite', 'create:diorite_cobblestone'); + + event.stonecutting('create:granite_cobblestone', 'natural-progression:cobbled_granite'); + event.stonecutting('natural-progression:cobbled_granite', 'create:granite_cobblestone'); +});