formspeceditor/README.md

27 lines
1.2 KiB
Markdown
Raw Normal View History

2021-07-16 12:32:43 -04:00
# Formspec Editor
## REALTIME formspec viewer/editor "game" for minetest
![formspec editor preview](preview.png)
## Getting Started
2021-07-20 00:52:23 +02:00
This mod needs access to an insecure environment in order to work.
Add `formspec_edit` to `secure.trusted_mods` in your `minetest.conf` file.
2021-07-16 12:32:43 -04:00
The file *formspec.spec* in your:
```minetest_folder/games/formspec_editor/mods/formspec_edit```
2021-07-20 00:48:51 +02:00
contains a formspec you can edit and see updates of in real time. (You can also specify a file location with the `formspec_editor.file_path` setting.)
2021-07-16 12:32:43 -04:00
Simply add the game to MT, load up a level of *Formspec Editor*, and
2021-07-20 00:48:51 +02:00
you will be greeted with the formspec.
2021-07-16 12:32:43 -04:00
2021-07-20 00:48:51 +02:00
- To make edits, open the file in your editor of choice and make changes as you see fit. When you hit save, the formspec will auto-update. Best when used side by side.
2021-07-16 12:32:43 -04:00
- To exit just hit <escape> or use a button_exit[] button. Both send the
fields.quit message.
- You can test with images if you want, adding a "textures" folder to the
formspec_edit gamemod folder, otherwise images will default to random colors.
2021-07-20 00:48:51 +02:00
- You can show the formspec with builtin, minetest_game or mineclone2 styling (see the `formspec_editor.style` setting)
- You can change the refresh rate by changing the `formspec_editor.update_time` setting