split buttons to different forms
Dependencies:
Example:
import { Player, world } from "@minecraft/server";
import FormatActionFormButtons from "page-form";
world.afterEvents.itemUse.subscribe(({ source }) => {
if (source instanceof Player)
FormatActionFormButtons(
{
titleText: "title",
bodyText: "body",
buttons: [
{ text: "text" },
{ text: "text" },
{ text: "text" },
{ text: "text" },
{ text: "text" },
],
},
3,
source
).then(console.warn);
});