Help
Computer got messed up and I lost a bunch of stuff including mymod. I am trying to rewrite it and I get this:
Here is my code
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
10:48:40: ERROR[main]: Failed to load and run script from
10:48:40: ERROR[main]: C:\Users\Will\Documents\minetest-0.4.3-win32 (1)\minetest-0.4.3-win32\bin\..\mods\minetest\decomod\init.lua:
10:48:40: ERROR[main]: ...inetest-0.4.3-win32\bin\..\builtin/misc_register.lua:62: Name mymod:decowood does not follow naming conventions: "modname:" or ":" prefix required
10:48:40: ERROR[main]: stack traceback:
10:48:40: ERROR[main]: [C]: in function 'error'
10:48:40: ERROR[main]: ...inetest-0.4.3-win32\bin\..\builtin/misc_register.lua:62: in function 'check_modname_prefix'
10:48:40: ERROR[main]: ...inetest-0.4.3-win32\bin\..\builtin/misc_register.lua:98: in function 'register_item'
10:48:40: ERROR[main]: ...inetest-0.4.3-win32\bin\..\builtin/misc_register.lua:154: in function 'register_node'
10:48:40: ERROR[main]: ...st-0.4.3-win32\bin\..\mods\minetest\decomod\init.lua:2: in main chunk
Here is my code
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
print('loading decomod')
minetest.register_node("mymod:decowood", {
tile_images = {"decowood.png"},
groups={choppy=1},
})
minetest.register_craft({
output = '"tutorial:decowood" 2',
recipe = {
{'default:wood', 'default:wood', ''},
{'default:wood', 'default:stone', ''},
{'', '', ''},
}
})