Apply the attached patch
and try out some keyboard shortcuts in your minetest.conf (the last 3 are for worldedit)
- Code: Select all
#set time to day
keymap_alias_daytime = KEY_MULTIPLY
keymap_command_daytime = time 06000
#set worldedit pos1
keymap_alias_pos1 = KEY_HOME
keymap_command_pos1 = /pos1
#set worldedit pos2
keymap_alias_pos2 = KEY_END
keymap_command_pos2 = /pos2
#set all nodes to air between pos 1 and pos2
keymap_alias_airnode = KEY_DELETE
keymap_command_airnode = /set air
Add your own and see what you can come up with... (I've asked Uberi to add a bunch of commands to world edit -- e.g. I would love to use arrow keys + pg up, pg dn to move markers around)
Here's the TODO list:
1. Allow modifiers (e.g. checking for CTRL, SHIFT, ALT etc)
2. Add user interface
3. Create Lua API hooks so that mods can register default keys for certain actions, but allow user to override them.
Happy to take suggestions. Devs, please let me know if this is the right approach.
