Power of 3 mod for Minetest