blockly mode - goflishMC/fabled-temp GitHub Wiki
๐งฑ Blockly Mode (Optional)
Blockly Mode allows you to visually build skills using a drag-and-drop logic system instead of the standard form editor. This mode is ideal for complex skills that involve multiple triggers, mechanics, conditions, or nested logic.
๐ฎ Enabling Blockly Mode
- Click the โ๏ธ Settings button in the bottom-right corner of the Web Editor.
- In the settings modal, toggle Blockly Mode to
ON
. - Return to the Skills tab โ you will now see Blockly editing panels instead of standard forms.
Blockly can be toggled on or off at any time from the settings menu. Switching modes wonโt delete your existing work.
๐งฑ How Blockly Works
In Blockly Mode, each skill is built by linking together visual blocks. These blocks represent:
- Triggers โ Events that start the skill (e.g.,
Cast
,Initialize
,OnKill
) - Targets โ What the skill affects (e.g.,
Self
,Area
,Location
,Projectile
) - Conditions โ Logic gates that check for specific rules (e.g., "if health < 50%")
- Mechanics โ The actual effects (e.g.,
Damage
,Heal
,Teleport
,Message
)
These are arranged in a tree:
Trigger โ Target โ [Conditions] โ Mechanics
Each block can contain nested logic, scaling formulas, and input fields.
๐ Features
- ๐งฉ Component-Based Blocks โ Every skill function is available as a modular block.
- ๐ Collapse/Expand โ Double-click any block to collapse or expand it for readability.
- ๐ Search Toolbox โ Use the search filter to quickly find mechanics or conditions.
- ๐ง Preview Mode โ Hover to see what each block configures.
- โก Live Updates โ Changes are instantly reflected in the YAML export.
- ๐ง Smart Grouping โ Conditions and mechanics automatically nest based on block order.
โ ๏ธ Notes
- Blockly skills are saved and exported just like form-based skills.
- You do not need to convert blocks to YAML โ the editor handles this automatically.
- Form-mode-only fields (e.g., name, icon, cooldown) are still configured outside the Blockly panel.
๐ Switching Between Modes
- You can switch back to Form Mode at any time by toggling Blockly Mode off in โ๏ธ Settings.
- Your Blockly structure will be retained, but not visible in Form Mode.
- Form-mode-only mechanics cannot be edited visually.
๐ค Exporting
Once you're satisfied with your Blockly-built skill:
- Click ๐พ Save to download the skill.
- Or use the Backup All button to download all content to your device.
- Place the resulting
skills.yml
in/plugins/Fabled/
and reload the plugin.