Contact
← All tools

Bedrock form builder

Lay out ActionForm, ModalForm and MessageForm, preview them and copy Script API code or the packet JSON.

BedrockScript APIUI
Form type
Buttons
Preview
Tigin Menü

Bir seçenek seç:

OynaMağaza
Script API (@minecraft/server-ui)
import { ActionFormData } from "@minecraft/server-ui";

const form = new ActionFormData()
  .title("§l§aTigin Menü")
  .body("Bir seçenek seç:")
  .button("§2Oyna", "textures/ui/controller_glyph")
  .button("§6Mağaza");

form.show(player).then((res) => {
  if (res.canceled) return;
  switch (res.selection) {
    case 0: // Oyna
      break;
    case 1: // Mağaza
      break;
  }
});
Packet JSON (PocketMine, Nukkit, Dragonfly)
{
  "type": "form",
  "title": "§l§aTigin Menü",
  "content": "Bir seçenek seç:",
  "buttons": [
    {
      "text": "§2Oyna",
      "image": {
        "type": "path",
        "data": "textures/ui/controller_glyph"
      }
    },
    {
      "text": "§6Mağaza"
    }
  ]
}