From 5530dfc982b4f1b332a3a3a1ec43755b1ce3e0f3 Mon Sep 17 00:00:00 2001 From: Halbear Date: Mon, 3 Aug 2026 23:25:38 +0100 Subject: [PATCH] block drops --- .../halbear/aotg/registries/ModBlocks.java | 11 ++++------ .../loot_table/blocks/alloy_furnace.json | 20 +++++++++++++++++++ .../ageofthegods/loot_table/blocks/forge.json | 20 +++++++++++++++++++ .../loot_table/blocks/limestone_block.json | 20 +++++++++++++++++++ .../blocks/limestone_grass_block.json | 20 +++++++++++++++++++ .../loot_table/blocks/olive_leaves.json | 20 +++++++++++++++++++ .../loot_table/blocks/olive_log.json | 20 +++++++++++++++++++ .../loot_table/blocks/olive_planks.json | 20 +++++++++++++++++++ .../loot_table/blocks/shale_block.json | 20 +++++++++++++++++++ .../loot_table/blocks/shale_grass_block.json | 20 +++++++++++++++++++ .../loot_table/blocks/silver_ore.json | 20 +++++++++++++++++++ .../loot_table/blocks/tin_ore.json | 20 +++++++++++++++++++ .../loot_table/blocks/zinc_ore.json | 20 +++++++++++++++++++ .../data/minecraft/tags/block/logs.json | 6 ++++++ .../minecraft/tags/block/logs_that_burn.json | 6 ++++++ .../minecraft/tags/block/mineable/axe.json | 7 +++++++ .../minecraft/tags/block/mineable/hoe.json | 6 ++++++ .../tags/block/mineable/pickaxe.json | 14 +++++++++++++ .../minecraft/tags/block/mineable/shovel.json | 7 +++++++ .../minecraft/tags/block/needs_iron_tool.json | 9 +++++++++ .../data/minecraft/tags/block/planks.json | 6 ++++++ .../data/minecraft/tags/item/dirt.json | 9 +++++++++ .../data/minecraft/tags/item/logs.json | 6 ++++++ .../minecraft/tags/item/logs_that_burn.json | 6 ++++++ .../data/minecraft/tags/item/planks.json | 6 ++++++ .../tags/item/stone_crafting_materials.json | 7 +++++++ .../tags/item/stone_tool_materials.json | 7 +++++++ .../data/minecraft/tags/item/swords.json | 6 ++++++ 28 files changed, 352 insertions(+), 7 deletions(-) create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/alloy_furnace.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/forge.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/limestone_block.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/limestone_grass_block.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/olive_leaves.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/olive_log.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/olive_planks.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/shale_block.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/shale_grass_block.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/silver_ore.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/tin_ore.json create mode 100644 src/main/resources/data/ageofthegods/loot_table/blocks/zinc_ore.json create mode 100644 src/main/resources/data/minecraft/tags/block/logs.json create mode 100644 src/main/resources/data/minecraft/tags/block/logs_that_burn.json create mode 100644 src/main/resources/data/minecraft/tags/block/mineable/axe.json create mode 100644 src/main/resources/data/minecraft/tags/block/mineable/hoe.json create mode 100644 src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json create mode 100644 src/main/resources/data/minecraft/tags/block/mineable/shovel.json create mode 100644 src/main/resources/data/minecraft/tags/block/needs_iron_tool.json create mode 100644 src/main/resources/data/minecraft/tags/block/planks.json create mode 100644 src/main/resources/data/minecraft/tags/item/dirt.json create mode 100644 src/main/resources/data/minecraft/tags/item/logs.json create mode 100644 src/main/resources/data/minecraft/tags/item/logs_that_burn.json create mode 100644 src/main/resources/data/minecraft/tags/item/planks.json create mode 100644 src/main/resources/data/minecraft/tags/item/stone_crafting_materials.json create mode 100644 src/main/resources/data/minecraft/tags/item/stone_tool_materials.json create mode 100644 src/main/resources/data/minecraft/tags/item/swords.json diff --git a/src/main/java/net/halbear/aotg/registries/ModBlocks.java b/src/main/java/net/halbear/aotg/registries/ModBlocks.java index 759282b..96a0d4d 100644 --- a/src/main/java/net/halbear/aotg/registries/ModBlocks.java +++ b/src/main/java/net/halbear/aotg/registries/ModBlocks.java @@ -25,8 +25,8 @@ public class ModBlocks { .lightLevel(state -> 0) )); public static final DeferredBlock LIMESTONE_GRASS_BLOCK = RegisterBlock("limestone_grass_block", - properties -> new RockCoveredGrassBlock(properties.strength(1.5f) - .explosionResistance(6.0f) + properties -> new RockCoveredGrassBlock(properties.strength(0.5f) + .explosionResistance(4.0f) .sound(SoundType.GRASS) .lightLevel(state -> 0) @@ -55,7 +55,6 @@ public class ModBlocks { public static final DeferredBlock OLIVE_LOG = RegisterBlock("olive_log", properties -> new RotatedPillarBlock(properties.strength(0.35f) - .requiresCorrectToolForDrops() .explosionResistance(1.0f) .sound(SoundType.WOOD) .lightLevel(state -> 0) @@ -72,7 +71,6 @@ public class ModBlocks { )); public static final DeferredBlock OLIVE_PLANKS = RegisterBlock("olive_planks", properties -> new Block(properties.strength(0.35f) - .requiresCorrectToolForDrops() .explosionResistance(1.0f) .sound(SoundType.WOOD) .lightLevel(state -> 0) @@ -86,9 +84,8 @@ public class ModBlocks { .lightLevel(state -> 0) )); public static final DeferredBlock SHALE_GRASS_BLOCK = RegisterBlock("shale_grass_block", - properties -> new RockCoveredGrassBlock(properties.strength(1.5f) - .requiresCorrectToolForDrops() - .explosionResistance(6.0f) + properties -> new RockCoveredGrassBlock(properties.strength(0.5f) + .explosionResistance(4.0f) .sound(SoundType.GRASS) .lightLevel(state -> 0) )); diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/alloy_furnace.json b/src/main/resources/data/ageofthegods/loot_table/blocks/alloy_furnace.json new file mode 100644 index 0000000..1d19ff9 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/alloy_furnace.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:alloy_furnace" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/forge.json b/src/main/resources/data/ageofthegods/loot_table/blocks/forge.json new file mode 100644 index 0000000..bddddff --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/forge.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:forge" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_block.json b/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_block.json new file mode 100644 index 0000000..f9589b7 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_block.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:limestone_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_grass_block.json b/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_grass_block.json new file mode 100644 index 0000000..3d17590 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/limestone_grass_block.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:limestone_grass_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/olive_leaves.json b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_leaves.json new file mode 100644 index 0000000..8aad81c --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_leaves.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:olive_leaves" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/olive_log.json b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_log.json new file mode 100644 index 0000000..f60ba1e --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_log.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:olive_log" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/olive_planks.json b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_planks.json new file mode 100644 index 0000000..1c40635 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/olive_planks.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:olive_planks" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/shale_block.json b/src/main/resources/data/ageofthegods/loot_table/blocks/shale_block.json new file mode 100644 index 0000000..b5f8d1a --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/shale_block.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:shale_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/shale_grass_block.json b/src/main/resources/data/ageofthegods/loot_table/blocks/shale_grass_block.json new file mode 100644 index 0000000..b5f8d1a --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/shale_grass_block.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:shale_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/silver_ore.json b/src/main/resources/data/ageofthegods/loot_table/blocks/silver_ore.json new file mode 100644 index 0000000..0fdbd60 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/silver_ore.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 2.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:raw_silver" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/tin_ore.json b/src/main/resources/data/ageofthegods/loot_table/blocks/tin_ore.json new file mode 100644 index 0000000..ee7bd75 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/tin_ore.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 2.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:raw_tin" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/ageofthegods/loot_table/blocks/zinc_ore.json b/src/main/resources/data/ageofthegods/loot_table/blocks/zinc_ore.json new file mode 100644 index 0000000..5c6b323 --- /dev/null +++ b/src/main/resources/data/ageofthegods/loot_table/blocks/zinc_ore.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 2.0, + "entries": [ + { + "type": "minecraft:item", + "name": "ageofthegods:raw_zinc" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/src/main/resources/data/minecraft/tags/block/logs.json b/src/main/resources/data/minecraft/tags/block/logs.json new file mode 100644 index 0000000..2ba3bf7 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/logs.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_log" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/logs_that_burn.json b/src/main/resources/data/minecraft/tags/block/logs_that_burn.json new file mode 100644 index 0000000..2ba3bf7 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/logs_that_burn.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_log" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/mineable/axe.json b/src/main/resources/data/minecraft/tags/block/mineable/axe.json new file mode 100644 index 0000000..989a0ad --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/mineable/axe.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_log", + "ageofthegods:olive_planks" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/mineable/hoe.json b/src/main/resources/data/minecraft/tags/block/mineable/hoe.json new file mode 100644 index 0000000..c66d6b2 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/mineable/hoe.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_leaves" + ] +} \ 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..7fc02c0 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/mineable/pickaxe.json @@ -0,0 +1,14 @@ +{ + "replace": false, + "values": [ + "ageofthegods:limestone_block", + "ageofthegods:limestone_grass_block", + "ageofthegods:shale_block", + "ageofthegods:shale_grass_block", + "ageofthegods:alloy_furnace", + "ageofthegods:silver_ore", + "ageofthegods:tin_ore", + "ageofthegods:zinc_ore", + "ageofthegods:forge" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/mineable/shovel.json b/src/main/resources/data/minecraft/tags/block/mineable/shovel.json new file mode 100644 index 0000000..7c00758 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/mineable/shovel.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "ageofthegods:shale_grass_block", + "ageofthegods:limestone_grass_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/needs_iron_tool.json b/src/main/resources/data/minecraft/tags/block/needs_iron_tool.json new file mode 100644 index 0000000..3f5d116 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/needs_iron_tool.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "ageofthegods:silver_ore", + "ageofthegods:tin_ore", + "ageofthegods:zinc_ore", + "ageofthegods:forge" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/block/planks.json b/src/main/resources/data/minecraft/tags/block/planks.json new file mode 100644 index 0000000..b7327d2 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/block/planks.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_planks" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/dirt.json b/src/main/resources/data/minecraft/tags/item/dirt.json new file mode 100644 index 0000000..28f91e2 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/dirt.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "ageofthegods:limestone_grass_block", + "ageofthegods:limestone_block", + "ageofthegods:shale_grass_block", + "ageofthegods:shale_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/logs.json b/src/main/resources/data/minecraft/tags/item/logs.json new file mode 100644 index 0000000..2ba3bf7 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/logs.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_log" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/logs_that_burn.json b/src/main/resources/data/minecraft/tags/item/logs_that_burn.json new file mode 100644 index 0000000..2ba3bf7 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/logs_that_burn.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_log" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/planks.json b/src/main/resources/data/minecraft/tags/item/planks.json new file mode 100644 index 0000000..b7327d2 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/planks.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:olive_planks" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/stone_crafting_materials.json b/src/main/resources/data/minecraft/tags/item/stone_crafting_materials.json new file mode 100644 index 0000000..4238f38 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/stone_crafting_materials.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "ageofthegods:limestone_block", + "ageofthegods:shale_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/stone_tool_materials.json b/src/main/resources/data/minecraft/tags/item/stone_tool_materials.json new file mode 100644 index 0000000..4238f38 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/stone_tool_materials.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "ageofthegods:limestone_block", + "ageofthegods:shale_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/item/swords.json b/src/main/resources/data/minecraft/tags/item/swords.json new file mode 100644 index 0000000..26c42f5 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/item/swords.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "ageofthegods:xiphos" + ] +} \ No newline at end of file