A mod for minetest based on the code of bas080