import { ActionFormData } from '@minecraft/server-ui';


export async function showMainMenuForm(player){
    let form = new ActionFormData();
    form.title("Colorful Paintings Add-On Guide Book");


form.body(`\n§eHey ${player.name}! §rThanks for checking out §6Colorful Paintings Add-On §rby §aBlock Perfect Studios§r.\n\n§7This add-on lets you create, place, and swap between over 80 unique designs.§r\n\n§l§6Crafting the Easel:§r\n§7To get started, craft an Easel using:§r\n§f- 1 Minecraft Painting\n- 3 Sticks§r\n\nPlace the easel in your world and interact with it to open the §ePainting Menu§r.\n\n§l§6Choosing a Painting Size:§r\nFrom the easel menu, you can select the size of your custom painting. Different sizes allow for larger artworks to decorate your builds.\n\n§l§6Placing a Painting:§r\n§f1.§r Once you have a painting item, go to where you want it displayed.\n§f2.§r Place it in the §ebottom-left corner§r of the desired space.\n§f3.§r The full painting will load automatically in the correct size and shape.\n\n§l§6Changing the Design:§r\nInteract anywhere on the painting to bring up the §eDesign Menu§r.\nBrowse through available artworks and select your favorite.\nThe painting will update instantly.\n\n§l§cNeed Help?§r\nFor tips, troubleshooting, and community support, join our Discord:\n§9discord.blockperfectstudios.com§r`);



    const result = await form.show(player)
    const selection = result.selection;


}
