Why is it impossible to farm underground?

User avatar
yyt16384
Member
 
Posts: 46
Joined: Mon Nov 03, 2014 12:16
GitHub: yyt16384
IRC: yyt16384
In-game: yyt16384

Why is it impossible to farm underground?

by yyt16384 » Sun Jan 25, 2015 08:46

There are many people saying that you can't farm underground because you can't achieve 13 light level without sunlight, and that seems to be right after some experiment.
But I still don't understand the reason. I think it is possible to have 13 light level by placing a torch next to the wheat. The torch has 14 light level so the wheat has 13 light level. I didn't find anything against this in the source code, so where am I wrong?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Why is it impossible to farm underground?

by Krock » Sun Jan 25, 2015 09:06

The super glow glass from moreblocks works fine to farm. Give it a try.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
RHR
Member
 
Posts: 214
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

Re: Why is it impossible to farm underground?

by RHR » Sun Jan 25, 2015 09:16

torches have LIGHT_MAX - 1 which is 13. So the first block next to them has only 12 and wheat and cotton need at least a light level of 13 to grow, so it is impossible to grow in minetest_game without changes.
The easiest thing would be to use a mod which adds a light source with 14 e.g. super glow glass from "moreblocks" Or you have to lower the minlight of wheat and cotton or you can to higher the light level of the torch.
torch
wheat
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: Why is it impossible to farm underground?

by Jordach » Sun Jan 25, 2015 11:53

Some subgames make plants require light levels 10 or higher (don't quote me on this), as it makes farming with torches or weaker light sources to generate light much easier and less resource requiring.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
yyt16384
Member
 
Posts: 46
Joined: Mon Nov 03, 2014 12:16
GitHub: yyt16384
IRC: yyt16384
In-game: yyt16384

Re: Why is it impossible to farm underground?

by yyt16384 » Sun Jan 25, 2015 14:38

RHR wrote:torches have LIGHT_MAX - 1 which is 13. So the first block next to them has only 12 and wheat and cotton need at least a light level of 13 to grow, so it is impossible to grow in minetest_game without changes.
The easiest thing would be to use a mod which adds a light source with 14 e.g. super glow glass from "moreblocks" Or you have to lower the minlight of wheat and cotton or you can to higher the light level of the torch.
torch
wheat

OK. I misread the code and thought LIGHT_MAX was 15. Super glow glass is great, though.
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Why is it impossible to farm underground?

by Wuzzy » Mon Jan 26, 2015 14:49

The assertion that it is impossible to farm underground is false.

A possible solution for underground farming which does not involve any modifications or additions to minetest_game is this:

To the places where you wish to have sunlight, build a long vertical shaft (at least of radius 1×1) directly above the spot where you wish light. I call these “light shafts”. If the sun is shining, the full sunlight will go vertically through the shaft. To my knowledge, it does not matter how deep your shaft is. But you have to make sure the shaft does not contain any light-blocking block and it must be perfectly vertical.

You may place glass at the upper and lower end of the shaft, to avoid people falling inside. Glass does not reduce the brightness of the light, so it is save to use.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Why is it impossible to farm underground?

by ExeterDad » Mon Jan 26, 2015 15:03

Wuzzy wrote:The assertion that it is impossible to farm underground is false.

A possible solution for underground farming which does not involve any modifications or additions to minetest_game is this:

To the places where you wish to have sunlight, build a large vertical 1×1 shaft directly above the spot where you wish light. I call these “light shafts”. If the sun is shining, the full sunlight will go vertically through the shaft. To my knowledge, it does not matter how deep your shaft is. But you have to make sure the shaft does not contain any light-blocking block and it must be perfectly vertical.

You may place glass at the upper and lower end of the shaft, to avoid people falling inside. Glass does not reduce the brightness of the light, so it is save to use.

So your saying that if I dig a 1 x 1 shaft straight down. Even to the point of it being dark. If I place a dirt block at the bottom, and plant. That plant will grow? That really messes with my mind!
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Why is it impossible to farm underground?

by Wuzzy » Mon Jan 26, 2015 15:17

The point is, no matter how deep you dig, the sunlight does not become darker, you will still have full sunlight at the bottom.
Here is proof:

Image

The glass is an ordinary glass, it is NOT a glow glass! No torches were used, it is all sunlight. Sam is standing at Y=-101.5.

Note that the other plants don't seem to ever outgrow size 1, only the plant directly below the shaft grows to full size. It looks like that every spot needs its own 1×1 light shaft. So underground farming is possible, but very limited. If you were to dig out the full shaft for every plant in the screenshot, it is probably not really underground anymore … unless you fill the shafts with glass or something. ;-)
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Why is it impossible to farm underground?

by ExeterDad » Mon Jan 26, 2015 18:39

Thanks for the demonstration! I never would of guessed it was possible.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Why is it impossible to farm underground?

by Krock » Tue Jan 27, 2015 18:53

ExeterDad wrote:Thanks for the demonstration! I never would of guessed it was possible.

Yes but it's too easy to make the light disappear. Lamps/Glow glasses are definitely the better soulation.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Why is it impossible to farm underground?

by Hybrid Dog » Sat Feb 07, 2015 20:34

What happens if l override minetest.get_node_light() to always return 15?
 

User avatar
yyt16384
Member
 
Posts: 46
Joined: Mon Nov 03, 2014 12:16
GitHub: yyt16384
IRC: yyt16384
In-game: yyt16384

Re: Why is it impossible to farm underground?

by yyt16384 » Mon Feb 16, 2015 13:19

Hybrid Dog wrote:What happens if l override minetest.get_node_light() to always return 15?

If I read the code correctly LIGHT_MAX is 14, and the max light level for growing is LIGHT_MAX, so you should return 14. And this may break some mod...
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 22 guests

cron