You are free to take food to the Maldives. If you want to carry some snacks such as crisps, cereals, nuts and any drinks that do not have any alcohol percentage in them, you are free to do so. Most resorts in the Maldives offer international cuisine though, so you will surely find something that you like while there.