migrator
migrator
DialogMaster includes automated two-way conversion tools:
- Import Migrator (
/ydm migrate): Convert legacy chest-based GUI menus (DeluxeMenus and TrMenu) into native DialogMaster dialog menus. - Export Converter (
/ydm export): Convert native DialogMaster dialog menus into standard DeluxeMenus chest inventory.ymlfiles.
1. Import Commands (DeluxeMenus / TrMenu → DialogMaster)
/ydm migrate <deluxemenus|trmenu> [source_folder]
Examples
/ydm migrate deluxemenus: Scansplugins/DeluxeMenus/gui_menus/and converts all.ymlmenus./ydm migrate trmenu: Scansplugins/TrMenu/menus/and converts all.ymlmenus./ydm migrate deluxemenus custom_menus/: Scans a custom folder relative to the server root.
2. Export Commands (DialogMaster → DeluxeMenus)
/ydm export <deluxemenus|dm> [menu_id|all] [target_folder]
Examples
/ydm export deluxemenus all: Exports all menus toplugins/DialogMaster/exported/deluxemenus/./ydm export deluxemenus main-menu: Exports onlymain-menu.yml./ydm export deluxemenus all plugins/DeluxeMenus/gui_menus/: Writes converted DeluxeMenus files directly into the DeluxeMenus folder.
3. What Gets Exported
- Adaptive Chest Sizing: Calculates minimal 9-to-54 chest inventory size based on button count.
- Layout Mapping Across All Menu Types:
multiAction: Places body content on an Info Book (slot: 0) and action buttons in sequential slots.confirmation: 9-slot chest with Slot 0 prompt book, Slot 1 Lime Concrete Confirm button, Slot 2 Red Concrete Cancel button.notice: 9-slot chest with Slot 0 Notice info book and Slot 1 Emerald OK button.serverlinks: Generates compact slot items with[openurl]commands.
- Item Materials & Models:
- Extracts materials from
<item:material> - CustomModelData
<item:material#10005>→material: MATERIAL,model_data: 10005 - Paper Item Models
<item:minecraft:item[item_model=pack:model]>→material: ITEM,item_model: 'pack:model' - ItemsAdder
<ia:ruby_sword>→material: "itemsadder:ruby_sword" - Oraxen
<ox:elven_bow>→material: "oraxen:elven_bow" - Player heads
<head:%player_name%>→material: head-%player_name%
- Extracts materials from
- Color Translation: Converts modern MiniMessage tags (
<green>,<bold>,<#55ff55>) to DeluxeMenus color codes (&a,&l,7ff55;). - Action Translation: Translates
player:,console:,open-menu:,message:,broadcast:,actionbar:,title:,sound:,suggest:,delay:,close, and inlines Action Packages (package:). - Requirements: Translates
permission:,!permission:, andhas-money:checks to DeluxeMenusview_requirement/click_requirement.