If you want to add a node to a diffrent mod, you need to use:Kilarin wrote:Lua syntax question.
I want to register a new type of door in a mod. So, I figured I'd just need to make my mod depend on doors and then call doors:register_door
But when I do I get:Which means I'm doing something STUPID. Any help here?Code: Select all
09:43:49: ERROR[main]: /usr/share/minetest/builtin/game/register.lua:60: Name doors:door_secret does not follow naming conventions: "modname:" or ":" prefix required
minetest.register_node(":testmod:testnode",def)
EDIT: Whoops. Saw your 2nd post too late.