Minecraft wiki entry for Farmland, associated text: When mined (even with a Silk Touch tool), farmland drops dirt. In Java Edition, it can be obtained from the inventory only by using commands, or by the Creative inventory or the pick block control.