Page 1 of 1

using stairs functions

PostPosted: Sun Dec 02, 2012 02:50
by Menche
Is it possible to use the functions from the stairs mod in other mods? I tried calling the functions from my mod, but it tried to use the modname "stairs", rather than my modname, causing this error:
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
/builtin/misc_register.lua:62: Name stairs:stair_desert_cobble does not follow naming conventions: "modname:" or ":" prefix required

Is there a way around this besides copying the code into my mod? It would be nice if the functions could be used in other mods.

PostPosted: Sun Dec 02, 2012 09:18
by PilzAdam
You can call it.
You just have to prefix your modname before the : and not the stairs mod name.