From 075f2d718f03677a66a9debd330bffce8d13c10e Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Sun, 9 Mar 2025 18:02:03 +0100 Subject: [PATCH] added recipes and loot tables --- .../gtagdp/loot_table/blocks/ruby_ore.json | 20 +++++++++++++++++++ .../gtagdp/recipe/blasting_ruby_from_ore.json | 9 +++++++++ .../recipe/campfire_torch_from_stub.json | 9 +++++++++ .../recipe/shaped_ruby_block_from_rubies.json | 15 ++++++++++++++ .../shapeless_rubies_from_ruby_block.json | 10 ++++++++++ .../tags/block/mineable/pickaxe.json | 7 +++++++ .../minecraft/tags/block/need_iron_tool.json | 7 +++++++ 7 files changed, 77 insertions(+) create mode 100644 src/main/resources/data/gtagdp/loot_table/blocks/ruby_ore.json create mode 100644 src/main/resources/data/gtagdp/recipe/blasting_ruby_from_ore.json create mode 100644 src/main/resources/data/gtagdp/recipe/campfire_torch_from_stub.json create mode 100644 src/main/resources/data/gtagdp/recipe/shaped_ruby_block_from_rubies.json create mode 100644 src/main/resources/data/gtagdp/recipe/shapeless_rubies_from_ruby_block.json create mode 100644 src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json create mode 100644 src/main/resources/data/minecraft/tags/block/need_iron_tool.json diff --git a/src/main/resources/data/gtagdp/loot_table/blocks/ruby_ore.json b/src/main/resources/data/gtagdp/loot_table/blocks/ruby_ore.json new file mode 100644 index 0000000..657b832 --- /dev/null +++ b/src/main/resources/data/gtagdp/loot_table/blocks/ruby_ore.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "gtagdp:rubyball" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/gtagdp/recipe/blasting_ruby_from_ore.json b/src/main/resources/data/gtagdp/recipe/blasting_ruby_from_ore.json new file mode 100644 index 0000000..91cf0a2 --- /dev/null +++ b/src/main/resources/data/gtagdp/recipe/blasting_ruby_from_ore.json @@ -0,0 +1,9 @@ +{ + "type": "minecraft:blasting", + "ingredient": "gtagdp:ruby_ore", + "result": { + "id": "gtagdp:rubyball" + }, + "experience": 0.1, + "cookingtime": 200 +} diff --git a/src/main/resources/data/gtagdp/recipe/campfire_torch_from_stub.json b/src/main/resources/data/gtagdp/recipe/campfire_torch_from_stub.json new file mode 100644 index 0000000..3224d2c --- /dev/null +++ b/src/main/resources/data/gtagdp/recipe/campfire_torch_from_stub.json @@ -0,0 +1,9 @@ +{ + "type": "minecraft:campfire_cooking", + "ingredient": "gtagdp:stub", + "result": { + "id": "minecraft:torch" + }, + "experience": 0.1, + "cookingtime": 20 +} diff --git a/src/main/resources/data/gtagdp/recipe/shaped_ruby_block_from_rubies.json b/src/main/resources/data/gtagdp/recipe/shaped_ruby_block_from_rubies.json new file mode 100644 index 0000000..ba0d339 --- /dev/null +++ b/src/main/resources/data/gtagdp/recipe/shaped_ruby_block_from_rubies.json @@ -0,0 +1,15 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "###", + "###", + "###" + ], + "key": { + "#": "gtagdp:rubyball" + }, + "result": { + "id": "gtagdp:ruby_block", + "count": 1 + } +} \ No newline at end of file diff --git a/src/main/resources/data/gtagdp/recipe/shapeless_rubies_from_ruby_block.json b/src/main/resources/data/gtagdp/recipe/shapeless_rubies_from_ruby_block.json new file mode 100644 index 0000000..838f487 --- /dev/null +++ b/src/main/resources/data/gtagdp/recipe/shapeless_rubies_from_ruby_block.json @@ -0,0 +1,10 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + "gtagdp:ruby_block" + ], + "result": { + "id": "gtagdp:rubyball", + "count": 9 + } +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json b/src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json new file mode 100644 index 0000000..98b75b6 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "gtagdp:ruby_block", + "gtagdp:ruby_ore" + ] +} diff --git a/src/main/resources/data/minecraft/tags/block/need_iron_tool.json b/src/main/resources/data/minecraft/tags/block/need_iron_tool.json new file mode 100644 index 0000000..39d91b9 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/need_iron_tool.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "gtagdp:ruby_block", + "gtagdp:ruby_ore" + ] +} \ No newline at end of file