mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
Removing snow in the nether, farming modified
- Now, impossible to see snow generated in the nether - Minimum light level needed to grow wheat and cotton is now 11
This commit is contained in:
parent
5250247ac3
commit
9660a2fc60
@ -12,7 +12,7 @@ farming.register_plant("farming:wheat", {
|
||||
description = "Wheat seed",
|
||||
inventory_image = "farming_wheat_seed.png",
|
||||
steps = 8,
|
||||
minlight = 13,
|
||||
minlight = 11,
|
||||
maxlight = LIGHT_MAX,
|
||||
fertility = {"grassland"}
|
||||
})
|
||||
@ -45,7 +45,7 @@ farming.register_plant("farming:cotton", {
|
||||
description = "Cotton seed",
|
||||
inventory_image = "farming_cotton_seed.png",
|
||||
steps = 8,
|
||||
minlight = 13,
|
||||
minlight = 11,
|
||||
maxlight = LIGHT_MAX,
|
||||
fertility = {"grassland", "desert"}
|
||||
})
|
||||
|
@ -81,6 +81,7 @@ end
|
||||
--This function places snow checking at the same time for snow level and increasing as needed.
|
||||
--This also takes into account sourrounding snow and makes snow even.
|
||||
function snow.place(pos)
|
||||
if pos.y < -19000 then return end -- Don't put anything in the nether!
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
local drawtype = ""
|
||||
if node and minetest.registered_nodes[node.name] then
|
||||
|
Loading…
Reference in New Issue
Block a user