actually it's very implied that most ores in minecraft have magical properties. lapis is the most obvious, considering it's used in the enchanting table, and is necessary for enchanting items. but diamonds are too, because you need them to craft an enchanting table in the first place.
and then there's gold — gold is the most enchantable ore in the game. it is a game mechanic that gold tools enchant better than other tools. every enchantable item has an enchantability level — and gold is by far the highest, at 22 for tools and 25 for armor.
there's a lot of interesting stuff about enchantability that implies quite a bit about magic though! maces, leather and wood have an enchantability of 15, which is higher than all the ores, EXCEPT for netherite which also has an enchantability of 15 (which implies that netherite scraps/debris lower the enchantability of the gold in the combination). iron has 14, 9 for armor, copper has 13, 8 for armor, chainmail has 12, diamond has 10 for both — which is the lowest out of all the ores! then turtle shell comes in at 9, stone at 5, and the rest enchantable items (book, trident, crossbow, bow and fishing rod) are all at 1 (which implies a lot of stuff about wood and how less of it + combined with other stuff lowers the enchantability — which is also something implied with gold in netherite).
but! despite that, most ores (exceptions of redstone, coal, and lapis) can be used to power beacons in block form, and activate them in item form. beacons in general are also really interesting because of the requirement of obsidian + nether star to craft them (and the everything that goes into withers).
and of course there's redstone. redstone is its entire own thing that can be used to activate and deactivate things with power lines and various other components. i don't really know much about redstone so i can't really speak about it much, i just know "you activate it and it does things". it's like minecraft electricity/computing/engineering to me. it's also dark magic to me. i don't understand it.
quartz is interesting though, becuse there's not really much magical about it other than the absurds amounts of experience you can get from mining it (saved my mending tools quite a few times...). there's still something about it that really interests me though.