Page 1 of 1

another problem with my mod -_- crafting with dirt

PostPosted: Fri Aug 30, 2013 13:37
by durtective6
whenever i put default:dirt or dirt into the crafting recipe part of the LUA file, when i load the game the mod fails to load.
one of the blocks needs dirt to be able to be crafted but i cant get the mod to work due to the crafting recipe not working.
what do i put so i can have a crafting recipe that includes dirt?

NOTE: i cant get it to work with gravel and some other stuff either

PostPosted: Fri Aug 30, 2013 13:41
by kaeza
It could help if you pasted the actual code for us to see.

PostPosted: Fri Aug 30, 2013 13:42
by durtective6
lol k
minetest.register_node("blocksplus:hard_dirt",{
description = "hard dirt",
tile_images = {hard_dirt.png},
groups = {crumbly=1},
})
minetest.register_craft({
output = '"blocksplus:hard_dirt"',
recipe = {
{'default:dirt', 'default:dirt', 'default:dirt'},
{'default:dirt', 'default:dirt', 'default:dirt'},
{'default:dirt', 'default:dirt', 'default:dirt'},
}
})

i cant get it to work with clay and other stuff either

PostPosted: Fri Aug 30, 2013 13:44
by kaeza
durtective6 wrote:output = '"blocksplus:hard_dirt"',

Remove one pair of quotes.

PostPosted: Fri Aug 30, 2013 13:48
by durtective6
i tried some but it didnt work
i tried output = "blocksplus:hard_dirt"
'blocksplus:hard_dirt'

the problem is probably very basic and im to tired to see it :P

PostPosted: Fri Aug 30, 2013 13:58
by durtective6
i think ive got it to work