by Topywo » Sat Oct 13, 2012 23:35
Copy paste this code in the init.lua:
minetest.register_node( "stonebricks:cobble_bricks", {
description = "Cobblebricks",
tiles = { "stonebricks_cobble_bricks.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = 'stonebricks:cobble_bricks 9',
recipe = {
{'default:cobble', 'default:cobble'},
{'default:cobble', 'default:cobble'},
{'default:cobble', 'default:cobble'},
}
})
I've tested it and it works. For the line: tiles = { "stonebricks_cobble_bricks.png" },
I used an .png image I save (as) with the name: stonebricks_cobble_bricks.png
- The name of the folder of your mod must be: stonebricks --> no CAPS
- In the stonebricks folder must be an init.lua with the lines I asked you to copy and paste
- In the stonebricks folder, there must be a folder called textures (no CAPS to be sure).
- In the textures folder must be at least 1 .png file called (no CAPS) stonebricks_cobble_bricks.png
- In the stonebricks folder must be a file called depends.txt (no CAPS to be sure),
- In the depends.txt folder must be 1 line with the text: default (copy/paste it in there)
My first guess is that you don't have the depends.txt file (with the single word "default' in it).
Good luck and don't give up on it!