[Mod] Farming Plus [farming_plus]
https://github.com/minetest/minetest_game/pull/183
I saw your pull request, hdastwb. I hope it gets added to Minetest, for it would allow pumpkins to grow again. Perhaps pumpkins could even be added to the base game?
I saw your pull request, hdastwb. I hope it gets added to Minetest, for it would allow pumpkins to grow again. Perhaps pumpkins could even be added to the base game?
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/
Transplanting plants is fine for building purposes. The method used by Mauvebic in his hydro mod where you can harvest the fruits of a plant and thus return the plant to an earlier stage is also very nice and realistic. Some plants (e.g. strawberries) seem to appear in diffrent types in cultures - ones that are used only one year, and ones that survive winter and grew new fruits the next year.
A list of my mods can be found here.
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
This pull request and the one for farming_plus is merged. Pumpkins and all other plants work now correctly with the farming mod in minetest_game.Inocudom wrote:https://github.com/minetest/minetest_game/pull/183
I saw your pull request, hdastwb. I hope it gets added to Minetest, for it would allow pumpkins to grow again. Perhaps pumpkins could even be added to the base game?
- hdastwb
- Member
- Posts: 106
- Joined: Tue Jan 01, 2013 18:47
- GitHub: hdastwb
- IRC: hdastwb
- In-game: hdastwb
- Location: United States
Take a look inside pumkin.lua in the mod folder and scan through until you find the node definition for fully grown pumpkins (circa line 59, it should begin with 'minetest.register_node(":farming:pumpkin"'). If you look down into the on_punch handler, you'll see a couple lines that add pumpkin seeds individually to the puncher's inventory when a wooden, stone, or steel sword is used (interestingly, there's no support for bronze, MESE, or diamond swords yet); the lines look like this:ak399g wrote:Any way to change the number of seeds dropped by pumpkins from 1-2 to 1-3 or 1-4?
Code: Select all
puncher:get_inventory():add_item("main", ItemStack("farming:pumpkin_seed"))
if math.random(1, 5) == 1 then
puncher:get_inventory():add_item("main", ItemStack("farming:pumpkin_seed"))
end
Code: Select all
puncher:get_inventory():add_item("main", ItemStack("farming:pumpkin_seed "
.. (4 - math.floor(math.log(math.random(1, 2^4 - 1))/math.log(2)))));
What's the problem with my pull request? :-/
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).
See also the MT-Faithful texture pack (work in progress).
Ok; what about gettings seeds from the weed?PilzAdam wrote:There is no real problem, except that Im not really happy about it.Zeg9 wrote:What's the problem with my pull request? :-/
EDIT: or redefine grass so it drops random seeds.
Last edited by Zeg9 on Tue Sep 03, 2013 15:18, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).
See also the MT-Faithful texture pack (work in progress).
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
Yes, that way. One could be due to this. I did an experiment. I added the end of the file (init.lua), this code:
minetest.register_node(":default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
is_ground_content = true,
groups = {crumbly=3},
drop = {
max_items = 3,
items = {
{
items = {'farming_plus:carrot_seed','farming_plus:potatoe_seed','farming:pumpkin_seed','default:dirt'},
rarity = 55,
},
{
items = {'farming_plus:rhubarb_seed','farming_plus:strawberry_seed','farming_plus:tomato_seed','default:dirt'},
rarity = 55,
},
{
items = {'default:dirt'},
}
}
},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
minetest.register_node(":default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
is_ground_content = true,
groups = {crumbly=3},
drop = {
max_items = 3,
items = {
{
items = {'farming_plus:carrot_seed','farming_plus:potatoe_seed','farming:pumpkin_seed','default:dirt'},
rarity = 55,
},
{
items = {'farming_plus:rhubarb_seed','farming_plus:strawberry_seed','farming_plus:tomato_seed','default:dirt'},
rarity = 55,
},
{
items = {'default:dirt'},
}
}
},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
Last edited by valmet565 on Sat Nov 02, 2013 21:19, edited 1 time in total.
- VanessaE
- Moderator
- Posts: 4564
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Some updates went in today to fix compatibility with the latest behind-the-scenes changes to minetest_game (PilzAdam), make the various plants spawn at mapgen time (Zeg9), and to fix some spelling errors (me).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
HI !
I tried this mod for a while, and it seems super cool.
But I must be dumb, i found cocoa trees and bana trees (and got saplings from them), but how do you get the other seeds ?
I've explored the world for hours, and found only grass, from which i only get wheat seeds.
I used hoe on sio on a big area, and got no seed.
What am I doing wrong ?
I tried this mod for a while, and it seems super cool.
But I must be dumb, i found cocoa trees and bana trees (and got saplings from them), but how do you get the other seeds ?
I've explored the world for hours, and found only grass, from which i only get wheat seeds.
I used hoe on sio on a big area, and got no seed.
What am I doing wrong ?
If you dig regular grass by hand, you get wheat seed. If you dig jungle grass by hand, you get cotton seed. As far as I know, you can only get the other seeds initially by using the "giveme" command. I never can remember exactly how the modmaker formats the names so I open the farming_plus folder and look at the various files (top of each file) in it to get the exact spellings.Doriphore wrote:HI !
I tried this mod for a while, and it seems super cool.
But I must be dumb, i found cocoa trees and bana trees (and got saplings from them), but how do you get the other seeds ?
I've explored the world for hours, and found only grass, from which i only get wheat seeds.
I used hoe on sio on a big area, and got no seed.
What am I doing wrong ?
These are the ones I've found:
- farming_plus:banana_sapling
- farming_plus:carrot_seed
- farming_plus:cocoa_sapling
- farming_plus:orange_seed
- farming_plus:potatoe_seed <= I would LOVE it if they'd fix this misspelling.
- :farming:pumpkin_seed <= Don't ask me why this one starts with a colon, that's just how it is in the file.
- farming_plus:rhubarb_seed
- farming_plus:strawberry_seed
- farming_plus:tomato_seed
- rubenwardy
- Moderator
- Posts: 6379
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: United Kingdom
- Contact:
It is misspelled because when I made the texture, I called it "potatoes"
It starts with a colon, because it is an override.
It starts with a colon, because it is an override.
Last edited by rubenwardy on Tue Nov 12, 2013 14:10, edited 1 time in total.
Core Developer | Donate | My Twitter | Mods | Mods 4 Android | Minetest Modding Book
Hello profile reader
Hello profile reader
- rubenwardy
- Moderator
- Posts: 6379
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: United Kingdom
- Contact:
Yeah, I know.Jouster27 wrote:"Potatoes" is correct. Singular, though, is just "potato".rubenwardy wrote:It is misspelled because when I made the texture, I called it "potatoes"
It starts with a colon, because it is an override.
Core Developer | Donate | My Twitter | Mods | Mods 4 Android | Minetest Modding Book
Hello profile reader
Hello profile reader
Who is online
Users browsing this forum: No registered users and 8 guests