Hello,
i just try to understand, how to add mods into minetest. best way is to write a small mod myself, but i get some problems.
i put into into the \data\mods folder my mod name "deko". this contains the init.lua (see code below) the depends.txt with the default info and the folder with the textures
the code of this small mod is :
-- Crafting
minetest.register_craft(
{
output = 'NodeItem "deko:deko_desk" 1',
recipe = {
{'craft "default:stick",'node "default:wood"','craft "default:stick"'},
}
}
)
-- Blocks
minetest.register_node("deko:deko_desk",{
tile_images = {"deko_desk.png"},
inventory_image = minetest.inventorycube("deko_desk.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(5.0),
})
now starting minetest i always get the error
error_message = ModError: Failed to load and run ......minetest\bin\..\data\mods\deko\init.lua
i wrote the init.lua with the normal editor and save the file as init.lua.
can someone give me a hint whats wrong ?
thanks in advance...