For the complete documentation index, see llms.txt. This page is also available as Markdown.

Confirm Leave Menu

Here you'll find how to make your own confirm leave menu from scratch.

General Sections

First, give your menu a custom name by adding a title (string) section. After that, you may configure other general options of your menu: previous-menu (boolean) to enable opening of previous menu when closing the menu; type (string) to set the inventory-type of the menu; open-sound (sound) for setting a custom sound when opening the menu.

You may find a list of valid inventory-types on this link. By default, this menu uses the HOPPER type, which has a single row with 5 slots.

Pattern Section

Let's work on the pattern section. The pattern section is the area where you can configure the layout of your menu. It is a list of strings that each char in them represents a different item that will be displayed in your menu. Because this menu uses the HOPPER type by default, the pattern should contain a single line with 5 chars - spaces are not counted as chars. If you have two same chars in different slots, then the items in these slots will be identical. Configuring how items will look like is not done here, but in the items section.

The confirm-leave menu is used to confirm or cancel leaving an island, and therefore it has special buttons that should be configured. Simply set them as a custom char from your pattern in order to make that item a custom button.

Field Name
Field Type
Description

confirm

Char

The button that confirms and makes the player leave.

cancel

Char

The button that cancels leaving the island.

Items Section

That's the place where you configure your items. You can find a tutorial on how to properly configure an item here.

Sounds Section

In this section you can configure custom sounds that will be played when players click the items in the menu. You can find a tutorial on how to properly configure sounds here.

Commands Section

In this section you can configure custom commands that will be executed when players click the items in the menu. You can find a tutorial on how to properly configure commands here.

Permissions Section

In this section you can configure required-permissions for your items that players must have before they can click an item. You can find a tutorial on how to properly configure permissions here.

This is the default confirm-leave menu, which includes most of the technics and features stated in this tutorial.

Last updated