Page 1 of 1

Need help on mod

PostPosted: Sat Sep 29, 2012 23:14
by GJH105775
when I attempt to craft one recipe is correct game crashes


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
--fancy wood
minetest.register_node("xtrablocks:fancywood", {
    tile_images = {"xtrablocks_fancywood.png"},
    groups={snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3},
})
minetest.register_craft({
    output = '"xtrablocks:fancywood" 2',
    recipe = {
        {'default:wood', 'default:wood', ''},
        {'default:wood', 'default:wood', ''},
        {'', '', ''},
    }
})
})



--fancy tile
minetest.register_node("xtrablocks:fancytile", {
    tile_images = {"xtrablocks_fancytile.png"},
    groups={cracky=3},
})
minetest.register_craft({
    output = '"xtrablocks:fancytile=2',
    recipe = {
        {'default:cobble', 'default:stone', ''},
        {'default:stone', 'default:cobble', ''},
        {'', '', ''},
    }
})

PostPosted: Sun Sep 30, 2012 01:55
by cornernote
you have this..

minetest.register_craft({
})
}) <--- you close the function call again, remove this line

PostPosted: Sun Sep 30, 2012 11:41
by GJH105775
OK will do, thanks. (face palm)

PostPosted: Sun Sep 30, 2012 11:45
by GJH105775
Worked, thanks.