Adding custom keystrokes through LUA
Posted: Thu Jan 15, 2015 01:44
To add advanced functionality to mods adding custom keystrokes would be great. Bundling that together with pointing at nodes it could be used to give nodes more than 1 action (knocking on a door, opening/closing a door and locking/unlocking a door).
LUA example:
LUA example:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_key({
key = 'C',
function = do_c()
})