How to make an Island Generator (Realm Friendly)

Island generators were previously extremely difficult to create, but they are now a simple and fully functional island generator.
This works for realms!

Minecraft PS4 Bedrock Edition - How To Join Hypixel Skyblock [Minecraft PS4 Bedrock Servers] 9-42 screenshot.png

Video Showcase

Download files here:

Want to add a friend system? Use the following commands/ functions:

/scoreboard players operation @p[tag=acceptFriend] locationID1 = @p[tag=addingFriend] locationID
This sets locationID1's value for the person with the tag acceptFriend equal to the person with the tag addingFriend. 
/function locationDB1 
This will teleport the person to their 1st friends island. 

You can do the same for /function locationDB2 and /function locationDB3 to add up to three friends.