diff --git a/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java b/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java index c0b47fe..ba0787f 100644 --- a/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java +++ b/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java @@ -3,6 +3,7 @@ import com.terraformersmc.traverse.block.TraverseBlocks; import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; +import net.minecraft.data.server.BlockLootTableGenerator; public class TraverseBlockLootTableProvider extends FabricBlockLootTableProvider { protected TraverseBlockLootTableProvider(FabricDataGenerator dataGenerator) { @@ -14,7 +15,6 @@ protected void generateBlockLootTables() { // simple blocks addDrop(TraverseBlocks.BROWN_AUTUMNAL_SAPLING); addDrop(TraverseBlocks.FIR_BUTTON); - addDrop(TraverseBlocks.FIR_DOOR); addDrop(TraverseBlocks.FIR_FENCE); addDrop(TraverseBlocks.FIR_FENCE_GATE); addDrop(TraverseBlocks.FIR_LOG); @@ -22,7 +22,6 @@ protected void generateBlockLootTables() { addDrop(TraverseBlocks.FIR_PRESSURE_PLATE); addDrop(TraverseBlocks.FIR_SAPLING); addDrop(TraverseBlocks.FIR_SIGN); - addDrop(TraverseBlocks.FIR_SLAB); addDrop(TraverseBlocks.FIR_STAIRS); addDrop(TraverseBlocks.FIR_TRAPDOOR); addDrop(TraverseBlocks.FIR_WALL_SIGN); @@ -33,6 +32,10 @@ protected void generateBlockLootTables() { addDrop(TraverseBlocks.STRIPPED_FIR_WOOD); addDrop(TraverseBlocks.YELLOW_AUTUMNAL_SAPLING); + // less simple blocks + addDrop(TraverseBlocks.FIR_DOOR, BlockLootTableGenerator::addDoorDrop); + addDrop(TraverseBlocks.FIR_SLAB, BlockLootTableGenerator::slabDrops); + // potted things addPottedPlantDrop(TraverseBlocks.POTTED_BROWN_AUTUMNAL_SAPLING); addPottedPlantDrop(TraverseBlocks.POTTED_FIR_SAPLING);