factorization mod for minetest