]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/main/nodes.lua
Added Seasons
[Crafter.git] / mods / main / nodes.lua
index 05af3bc98746fa6958478d95d57a235976d914f2..d44cde8c6dc6a27f13a9e38280485408eed6b7a4 100644 (file)
@@ -220,7 +220,7 @@ minetest.register_node("main:dirt", {
 
 minetest.register_node("main:grass", {
     description = "Grass",
-    tiles = {"grass.png"},
+    tiles = season.pick({"grass_spring.png", "grass.png"}, {"grass.png"}, {"leaves_ground.png"}, {"snow.png"}),
     groups = {grass = 1, soil=1,pathable = 1, farm_tillable=1},
     sounds = main.dirtSound(),
     drop="main:dirt",
@@ -364,7 +364,7 @@ minetest.register_node("main:leaves", {
        climbable = true,
        paramtype = "light",
        is_ground_content = false,      
-    tiles = {"leaves.png"},
+    tiles = {season.pick("leaves_spring.png", "leaves.png", "leaves_dry.png", "branches.png")},
     groups = {leaves = 1, leafdecay = 1,flammable=1},
     sounds = main.grassSound(),
     drop = {