import BlockTransformation from '../../transformations/blockTransformation';
import ConditionalBlockTransformation from '../../transformations/conditionalBlockTransformation';
import { convertBlockAboveNonRepeat, isInSoulPatch, spreadAsh } from '../utils';
const rules = [
    {
        from: ['minecraft:moss_carpet'],
        to: new BlockTransformation('twb_wisu:ash_layer', { states: { 'twb_wisu:level': 1 } }),
    },
    {
        from: [
            'minecraft:mud',
            'minecraft:muddy_mangrove_roots'
        ],
        to: new ConditionalBlockTransformation(new BlockTransformation('minecraft:soul_sand', { afterConvert: convertBlockAboveNonRepeat }), new BlockTransformation('twb_wisu:ash', {
            afterConvert: (b, p) => {
                convertBlockAboveNonRepeat(b, p);
                spreadAsh(b);
            }
        }), isInSoulPatch)
    },
];
export default rules;
