it possible to befriend dragons. A dragon can only be found by spawning it yourself with a spawner egg and once you’ve tamed one it will protect you at all costs as a loyal friend and companion.
First off you will have to craft a Spawn Dragon Pet item. Then use the egg to spawn the dragon. The dragon is friendly as long you don’t attack it.
A spawned dragon will act similar to how wolves behave in Minecraft. They will bark once in a while and if you hit them they will make a similar yelping noice as to when you attack wolves.
Because they got the same behavioristics as wolves they are also tamable. Get close to a dragon while holding some bones and tap on the Tame button to try and tame it.
If you succeed it will help you attack mobs and defend you when necessary.