Skip to content

Commit

Permalink
Fix double fir door drop and single fir double-slab drop.
Browse files Browse the repository at this point in the history
  • Loading branch information
gniftygnome committed Aug 11, 2022
1 parent c3d2ae2 commit 89f217e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -14,15 +15,13 @@ 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);
addDrop(TraverseBlocks.FIR_PLANKS);
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);
Expand All @@ -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);
Expand Down

0 comments on commit 89f217e

Please sign in to comment.