Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Page Form

split buttons to different forms

video

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);
});