import BlockTransformation from '../../transformations/blockTransformation';
import ConditionalBlockTransformation from '../../transformations/conditionalBlockTransformation';
import { convertBlockAboveGrass, generateLargeTree, isInAshPatch, isInSoulPatch, placeTallWilt, ashLayerToBlock } from '../utils';
const rules = [
    {
        from: ['minecraft:grass_block', 'minecraft:podzol'],
        to: new ConditionalBlockTransformation(new BlockTransformation('twb_wisu:ash_layer', { states: { 'twb_wisu:level': 7 }, beforeConvert: convertBlockAboveGrass, afterConvert: ashLayerToBlock }), new ConditionalBlockTransformation(new BlockTransformation('minecraft:soul_sand', { beforeConvert: convertBlockAboveGrass }), new BlockTransformation('twb_wisu:wilt_block', {
            beforeConvert: (b) => {
                placeTallWilt(b, 1);
                generateLargeTree(b);
            }
        }), isInSoulPatch), isInAshPatch)
    },
];
export default rules;
