Minetest_game: Cactus seedling

Created on 29 Oct 2018  路  42Comments  路  Source: minetest/minetest_game

In the current version of Minetest, the Cactus naturally grows in the shape of
cactus
Where as grown cactus looks like this:
screenshot_2018-10-28-16-46-15-1
So there is no way to re-create the original look
So I think there should be a cactus seedling!
big cactus
screenshot_2018-10-28-16-36-49-1
### /\ SUBJECT TO CHANGE /\
raw file
t026

Feature request Mapgen

All 42 comments

Cacti can grow from seeds or cuttings.

I do believe the current method, references using a cutting.

Hoping not to sound rude, I am not crazy about using 'cactus_sapling' (if it were 'cactus_seedling' I could be more sold but I honestly do not see an issue with the current set up)

I believe the issue is the inconsistency.

I think that needs to be addressed in the schematic, I'll take a look at it.

Full grown cactus should look as originals which are placed by mapgen.

Adding a new table for cactus_seedling would probably be best.

Using the image provided here would work nice as cactus_seedling but, then the seedling needs to have a schematic.
I can do this (hopefully shortly)

Good point. If this is done i would add a 'sapling' for 'large cactus' and have it behave like a tree.

Tumeni, the cactus seedlng would just be a plantlike node, we don't need a new schematic.
What do you mean by 'I think that needs to be addressed in the schematic,'?

if you want to add a cactus_sapling that's fine but it needs to be added as a schematic does it not? Same as trees do.
That is what I mean, the cactus will need a cactus_from_sapling.mts

I still feel 'sapling' is the wrong word to use for this instance, and should be 'seedling' https://duckduckgo.com/?q=cactus+seedlings&t=lm&iax=images&ia=images
because they are _not_ the same as trees

the cactus will need a cactus_from_sapling.mts

Yes, i see what you're saying now. But the seedling itself will not be a schematic as you have written.
And yeah sapling is the wrong word.

OK yeah I looked up what they where called but I couldn't find anything which is why I wrote sapling
+Changed

is this not what would be needed?

```
-- Large cactus

local C = {name = "default:cactus", prob = 255, param2 = 20}
local R = {name = "default:cactus", prob = 255, param2 = 20, force_place = true}
local E = {name = "default:cactus", prob = 127, param2 = 20}

mts_save("large_cactus", {
size = {x = 5, y = 7, z = 1},
data = {
_, _, R, _, _,
_, _, C, _, _,
_, _, C, _, _,
C, C, C, C, C,
C, _, C, _, C,
E, _, C, _, E,
_, _, C, _, _,
},
})

-- Large cactus from seedling

local C = {name = "default:cactus", prob = 255, param2 = 20}
local R = {name = "default:cactus", prob = 255, param2 = 20, force_place = true}
local E = {name = "default:cactus", prob = 127, param2 = 20}

mts_save("large_cactus_from_seedling", {
size = {x = 5, y = 7, z = 1},
data = {
_, _, R, _, _,
_, _, C, _, _,
_, _, C, _, _,
C, C, C, C, C,
C, _, C, _, C,
E, _, C, _, E,
_, _, C, _, _,
},
})

But those schematics are identical :)

Actually, i've just seen that the cactus schematic only force-places the node in the ground, so we don't need a second schematic.
However in order to replace the seedling, the 2nd node up in the 'trunk' now needs to be force-placed too.

Anyway, this is a good valid issue, the large cactus has been a little sloppy. I support making it growable using a special 'large cactus seedling'.

A seedling should be expensive in a recipe, so that you only get 1 or 2 from a large cactus, so i would make the recipe:

CCC
_C_

Okay sounds good

But those schematics are identical :)

Actually, i've just seen that the cactus schematic only force-places the node in the ground, so we don't need a second schematic.
However in order to replace the seedling, the 2nd node up in the 'trunk' now needs to be force-placed too.

Oh good, I can scrap what I was poking with then :D
@Extex101 are you going to make a PR for this?

I can't atm I won't have access to a computer for a few days

That's ok, it can wait :)

I like the cactus seedling texture in the first post, Extex101 i assume you made it?

Yup I made it, although it's based off of the original cactus texture

OK so i'm gonna make a PR but i'm not sure how..
Also i don't know how to make it work like a sapling (grow)

paramat explained what is needed here https://github.com/minetest/minetest_game/issues/2255#issuecomment-434151816

I can do this PR if you like... if you plan to do it yourself

the new schematic needs to look like so

```
-- Large cactus

local C = {name = "default:cactus", prob = 255, param2 = 20}
local R = {name = "default:cactus", prob = 255, param2 = 20, force_place = true}
local E = {name = "default:cactus", prob = 127, param2 = 20}

mts_save("large_cactus", {
size = {x = 5, y = 7, z = 1},
data = {
_, _, R, _, _,
_, _, R, _, _,
_, _, C, _, _,
C, C, C, C, C,
C, _, C, _, C,
E, _, C, _, E,
_, _, C, _, _,
},
})

-- Large cactus from seedling

local C = {name = "default:cactus", prob = 255, param2 = 20}
local R = {name = "default:cactus", prob = 255, param2 = 20, force_place = true}
local E = {name = "default:cactus", prob = 127, param2 = 20}

mts_save("large_cactus_from_seedling", {
size = {x = 5, y = 7, z = 1},
data = {
_, _, R, _, _,
_, _, C, _, _,
_, _, C, _, _,
C, C, C, C, C,
C, _, C, _, C,
E, _, C, _, E,
_, _, C, _, _,
},
})

^ That's wrong, we only need 1 schematic, the already existing one just needs changing to have 2 'R's in the trunk.
Extex101 you're welcome to try a PR if you want, but someone else can do it if you prefer.
It might also be a good idea to wait for @Ezhh 's opinion first, however i support the concept.

So, nothing else needs to be done?
A new seedling node is needed, yes/no? You have to have _something_ to plant.
And doesn't it need to have the growing functions added to it? (maybe not, the way it is sounding to me now)

Evidently I am incorrect about my assumptions as to what is needed...

What I'm saying is that I don't know how to make a PR (I'm new to github)

And I'm not sure how to make the seedling actually grow

It'd probably be better if you do it because I have no idea what would need to be done

Ok no problem.

TumeniNodes, yes other stuff is needed, i wrote 'we only need 1 schematic', as opposed to 2 schematics.

ok,

OK just tell me when the PR is up

Hopefully you are ok with the usual CC BY-SA 3.0 for the texture?

I don't even know what that is

Nvm looked it up.
That's good thanks

Hey @paramat I have two questions I'd like to ask:
1) What will be coming first 0.4.18 or will you go straight to 0.5.0?
2) Is there any guessed time that 0.5.0 will come out

That's offtopic here, best to read the forum topic about 5.0.0 in the news subforum.

Well I was just wondering when I'd be seeing the seedling in MTG

It might also be a good idea to wait for @Ezhh 's opinion first

No issues with the concept as long as cacti can still be grown the current way as well. The current way makes sense for farming, whereas the type with arms would be the more natural/landscape option.

Note: growing time from a sapling should be handled carefully so that it's not quicker to get the same number of cactus nodes using this approach.

Ezhh i completely agree with your points.

growing time from a sapling should be handled carefully so that it's not quicker to get the same number of cactus nodes using this approach.

Very good point, will have to think about this issue. The sapling grow time may then have to be so slow as to be not worth doing.

So how long does it take for one cacti to grow?
Time脳11 (amount of cactus on large cactus 馃尩)

Yeah, i'll do this anyway and calculate growth to not create an advantage.

Cool can't wait!

Hey is there a mod that gets a scheme and turns it into one of these

local C = {name = "default:cactus", prob = 255, param2 = 20}
local R = {name = "default:cactus", prob = 255, param2 = 20, force_place = true}
local E = {name = "default:cactus", prob = 127, param2 = 20}

mts_save("large_cactus_from_seedling", {
    size = {x = 5, y = 7, z = 1},
    data = {
        _, _, R, _, _,
        _, _, C, _, _,
        _, _, C, _, _,
        C, C, C, C, C,
        C, _, C, _, C,
        E, _, C, _, E,
        _, _, C, _, _,
    },
})

Or does it have to be done by hand?

Yes a mod called 'schemtools', although it displays all nodes as 'n1'. 'n2', 'n3', etc. so the table doesn't look nice.

Made a PR! #2269

PR #2271

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juozaspo picture juozaspo  路  6Comments

cx384 picture cx384  路  6Comments

MarkuBu picture MarkuBu  路  5Comments

HybridDog picture HybridDog  路  4Comments

paramat picture paramat  路  3Comments