Page 1 of 1

coal from wood mod

PostPosted: Thu Sep 05, 2013 17:02
by leetelate
in minecraft if you can't find coal you can make charcoal (coal_lump) from wood planks

anyway, here's the mod: - create a folder named coalfromwood into the mods folder then create a text file named init.lua inside that folder, then put the follwing into it

minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:wood",
})

save it, enable the mod, put something that burns into the furnace, then pop some wooden_planks into the top -> coal_lump

PostPosted: Thu Sep 05, 2013 17:53
by Evergreen
leetelate wrote:in minecraft if you can't find coal you can make charcoal (coal_lump) from wood planks

anyway, here's the mod: - create a folder named coalfromwood into the mods folder then create a text file named init.lua inside that folder, then put the follwing into it

minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:wood",
})

save it, enable the mod, put something that burns into the furnace, then pop some wooden_planks into the top -> coal_lump
Ehm, you can find coal in minecraft.

PostPosted: Thu Sep 05, 2013 17:57
by LionsDen
You will also need to create a text file called depends.txt and have default as it's only line. Plus if it's planks that you want, you might want to include the junglewood. Add this underneath the craft recipe above to do so.

minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:junglewood",
})


Otherwise, you will still have those stupid junglewood trees and planks that you can't do much with.

PostPosted: Thu Sep 05, 2013 18:40
by Evergreen
LionsDen wrote:You will also need to create a text file called depends.txt and have default as it's only line. Plus if it's planks that you want, you might want to include the junglewood. Add this underneath the craft recipe above to do so.

minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:junglewood",
})


Otherwise, you will still have those stupid junglewood trees and planks that you can't do much with.
Actually, just put group:wood.

PostPosted: Tue Oct 08, 2013 19:52
by HeisenbergCZE
hi, i made similar mod, with some additional features (then i made some search and found this, haha)
you can check http://minetest.puzmi.eu/index2.html if you are interested :)

PostPosted: Wed Oct 09, 2013 01:04
by Melkor
HeisenbergCZE wrote:hi, i made similar mod, with some additional features (then i made some search and found this, haha)
you can check http://minetest.puzmi.eu/index2.html if you are interested :)


why?
if you make a mod, put it here, in the forum, use dropbox or equal for the download link, not in another site...

PostPosted: Wed Oct 09, 2013 08:23
by rubenwardy
LionsDen wrote:You will also need to create a text file called depends.txt and have default as it's only line. Plus if it's planks that you want, you might want to include the junglewood. Add this underneath the craft recipe above to do so.

minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:junglewood",
})


Otherwise, you will still have those stupid junglewood trees and planks that you can't do much with.


You do not need a depends, as you do not use any of the functions defined by default, and you assume that the default is assigned somewhere.

Instead of default:wood or default:junglewood, use group:wood, so you get all wood types. (another reason not to use depends)

PostPosted: Wed Oct 09, 2013 08:30
by HeisenbergCZE
Melkor wrote:why?
if you make a mod, put it here, in the forum, use dropbox or equal for the download link, not in another site...


why not? i want to start somehow and this was easy, i cannot start with something difficult, if do not know the Lua much
and i use my own site, because of my conviction about dropbox and those kind of services, but that is a different story

PostPosted: Wed Oct 09, 2013 08:36
by rubenwardy
You can use your own site for file storage, but you need to post a topic on the forum to actually release it to the public.

PostPosted: Wed Oct 09, 2013 08:44
by HeisenbergCZE
rubenwardy wrote:You can use your own site for file storage, but you need to post a topic on the forum to actually release it to the public.


thanks, i tried, but i cannot post new topics (or i did something wrong). so maybe the next time.

edit: but in the modding general i can, so next time i will post a topic there

PostPosted: Wed Oct 09, 2013 11:01
by Evergreen
HeisenbergCZE wrote:
rubenwardy wrote:You can use your own site for file storage, but you need to post a topic on the forum to actually release it to the public.


thanks, i tried, but i cannot post new topics (or i did something wrong). so maybe the next time.

edit: but in the modding general i can, so next time i will post a topic there
You can't post topics in mod releases. They have to be moved by a moderator.

PostPosted: Wed Oct 09, 2013 14:58
by PilzAdam
There is generally nothing wrong with creating a new website for your mods (or mods of other people if the license allows it).
The problem is just that you most likely will get a lot less attention from the community.