From 696f64fba6386fab84f3f7c42cd7a7c919bae285 Mon Sep 17 00:00:00 2001 From: Prabuddha Hans <21313482@studentmail.ul.ie> Date: Sun, 21 Jul 2024 19:10:52 +0100 Subject: [PATCH] Block can now be mined --- .../loot_tables/blocks/adamantite_block.json | 19 +++++++++++++++++++ .../tags/blocks/mineable/pickaxe.json | 6 ++++++ .../tags/blocks/needs_diamond_tool.json | 6 ++++++ 3 files changed, 31 insertions(+) create mode 100644 src/main/resources/data/examplemod/loot_tables/blocks/adamantite_block.json create mode 100644 src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json create mode 100644 src/main/resources/data/minecraft/tags/blocks/needs_diamond_tool.json diff --git a/src/main/resources/data/examplemod/loot_tables/blocks/adamantite_block.json b/src/main/resources/data/examplemod/loot_tables/blocks/adamantite_block.json new file mode 100644 index 0000000..ec7188f --- /dev/null +++ b/src/main/resources/data/examplemod/loot_tables/blocks/adamantite_block.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft_block", + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:item", + "name": "examplemod:adamantite_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json b/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json new file mode 100644 index 0000000..a4cc77e --- /dev/null +++ b/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "examplemod:adamantite_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/blocks/needs_diamond_tool.json b/src/main/resources/data/minecraft/tags/blocks/needs_diamond_tool.json new file mode 100644 index 0000000..a4cc77e --- /dev/null +++ b/src/main/resources/data/minecraft/tags/blocks/needs_diamond_tool.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "examplemod:adamantite_block" + ] +} \ No newline at end of file