src/main/java/com/github/klikli_dev/occultism/datagen/StandardLootTableProvider.java
/**
         * Does not work currently, leads to no sapling drop
         */
Does not work currently, leads to no sapling drop
Does not work currently leads to no sapling drop
@Deprecated
        protected LootTable.Builder otherWorldLeavesDroppingWithChancesAndSticks(Block forBlock, Block coveredSapling,
                                                                                 Block uncoveredSapling,
                                                                                 float... chances) {
            IOtherworldBlock otherworldBlock = (IOtherworldBlock) forBlock;
            ILootCondition.IBuilder uncoveredCondition =
                    BlockStateProperty.hasBlockStateProperties(forBlock).setProperties(
                            StatePropertiesPredicate.Builder.properties()
                                    .hasProperty(IOtherworldBlock.UNCOVERED, true));
            return this.droppingAlternativeWithChancesAndSticks(forBlock,
                    ItemLootEntry.lootTableItem(otherworldBlock.getUncoveredBlock())
                            .when(uncoveredCondition)
                            .otherwise(ItemLootEntry.lootTableItem(
                                    otherworldBlock.getCoveredBlock())),
                    ItemLootEntry.lootTableItem(uncoveredSapling)
                            .when(uncoveredCondition)
                            .otherwise(ItemLootEntry.lootTableItem(coveredSapling)), chances);
        }
@ Deprecated protected LootTable . Builder otherWorldLeavesDroppingWithChancesAndSticks ( Block forBlock , Block coveredSapling , Block uncoveredSapling , float ... chances ) { IOtherworldBlock otherworldBlock = ( IOtherworldBlock ) forBlock ; ILootCondition . IBuilder uncoveredCondition = BlockStateProperty . hasBlockStateProperties ( forBlock ) . setProperties ( StatePropertiesPredicate . Builder . properties ( ) . hasProperty ( IOtherworldBlock . UNCOVERED , true ) ) ; return this . droppingAlternativeWithChancesAndSticks ( forBlock , ItemLootEntry . lootTableItem ( otherworldBlock . getUncoveredBlock ( ) ) . when ( uncoveredCondition ) . otherwise ( ItemLootEntry . lootTableItem ( otherworldBlock . getCoveredBlock ( ) ) ) , ItemLootEntry . lootTableItem ( uncoveredSapling ) . when ( uncoveredCondition ) . otherwise ( ItemLootEntry . lootTableItem ( coveredSapling ) ) , chances ) ; }
Does not work currently, leads to no sapling drop
Does not work currently leads to no sapling drop
//Leaves entry //Sapling entry