What’s on your mind?

AI-generated answers may be inaccurate

MythicGenerator

  • Developer tools
  • Minecraft
  • Go
  • Vue
  • Tauri

MythicGenerator is a configuration tool I wrote for the Minecraft plugin MythicMobs. The first version edits items through forms and exports YAML. I later started a Tauri version with a drag-and-drop component editor.

The Wails version

The first version uses Wails, with Vue 3 and Vite for the interface and Go for data and file operations. Items have editable names, display text, descriptions, enchantments, and attributes. GORM handles saving, querying, updating, and deleting them in a local SQLite database.

A configuration screen in the Wails version

Attributes can apply to all slots or to a main hand, off hand, helmet, chestplate, leggings, or boots. Values have lower and upper bounds, converted to a single value or range for export. Descriptions become line lists; enchantments and hidden fields have their own output entries.

Another item-configuration screen

Data conversion and export

The editor, database, and YAML output use separate structures. Nested attributes, options, and enchantments are serialized for SQLite and reconstructed when loaded into the editor.

Export converts them again, organizes entries by internal item name, and omits disabled or empty attributes. A Wails save dialog selects the item.yml destination, and Go writes the file. Saved items remain available for later editing and export.

The Tauri rewrite

The rewrite uses Vue 3, TypeScript, and Naive UI. Its main work was the draggable editing area and colored-text preview. Components can be cloned from the sidebar into the content area, with their source entries then locked. Placeholders and animation provide drag feedback.

Dragging components in the Tauri version

The color editor previews character formatting, including gradient and rainbow tags.

Colored-text input and preview

I stopped the rewrite at the interface and interaction-prototype stage.

Source code