I think drowning mod is a good example for add the synced and non-synced search:
http://minetest.net/forum/viewtopic.php?id=1402
sdzen wrote:yes that may work but it should kill you must faster than water
default.register_drowning_node("default:sand")