Join me in looking at the award mod for Minetest. I'll also briefly show you how to create your own awards if you are a mod developer, simply use the code below as a template to get started and change the variables as needed to register your own awards.
awards.register_achievement("award_mesefind",{
title = "First Mese Find",
description = "Found some Mese!",
trigger={
type="dig", --award is given when
node="default:mese", --this type of node has been dug
target=1, --this number of times
},
})