- Create a new world with the attached datapack (or use attached one)
- Find warm ocean biome (or just create a single biome/superflat world)
- Place dispenser with bone meal
- Place water next to the front of the dispenser
- Place redstone block next to dispenser
- Crash triggers
Note that to reproduce the crash (and not just error on logs), the block needs to require a supporting block or some other placement requirements, and it must fail when the bone meal tries to "grow" them. In the example datapack I used a white carpet.