diff options
author | root <root@linux-forks.de> | 2018-11-14 12:45:10 +0100 |
---|---|---|
committer | root <root@linux-forks.de> | 2018-11-14 12:45:10 +0100 |
commit | 070c5dd08e9652cd540542b860d5a5cce1f8c7d4 (patch) | |
tree | 55b8404d46f195a38bb34a470290a9cacd4b75bd /plantlife.lua | |
parent | 31fe2ff374e72fb8ea44d50cd82d6fc8b9be5463 (diff) | |
parent | b29634b3632aebe6c21d035884ed454cfd7ce77a (diff) |
Diffstat (limited to 'plantlife.lua')
-rw-r--r-- | plantlife.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plantlife.lua b/plantlife.lua index 2c677ce..ad60fb1 100644 --- a/plantlife.lua +++ b/plantlife.lua @@ -233,7 +233,7 @@ minetest.register_node("ethereal:crystalgrass", { }) -- Define Moss Types (Has grass textures on all sides) -function ethereal.add_moss(typ, descr, texture, receipe_item) +local add_moss = function(typ, descr, texture, receipe_item) minetest.register_node("ethereal:" .. typ .. "_moss", { description = S(descr .. " Moss"), @@ -250,11 +250,11 @@ function ethereal.add_moss(typ, descr, texture, receipe_item) }) end -ethereal.add_moss( "crystal", "Crystal", "ethereal_grass_crystal_top.png", "ethereal:frost_leaves") -ethereal.add_moss( "mushroom", "Mushroom", "ethereal_grass_mushroom_top.png", "ethereal:mushroom") -ethereal.add_moss( "fiery", "Fiery", "ethereal_grass_fiery_top.png", "ethereal:dry_shrub") -ethereal.add_moss( "gray", "Gray", "ethereal_grass_gray_top.png", "ethereal:snowygrass") -ethereal.add_moss( "green", "Green", "default_grass.png", "default:jungleleaves") +add_moss( "crystal", "Crystal", "ethereal_grass_crystal_top.png", "ethereal:frost_leaves") +add_moss( "mushroom", "Mushroom", "ethereal_grass_mushroom_top.png", "ethereal:mushroom") +add_moss( "fiery", "Fiery", "ethereal_grass_fiery_top.png", "ethereal:dry_shrub") +add_moss( "gray", "Gray", "ethereal_grass_gray_top.png", "ethereal:snowygrass") +add_moss( "green", "Green", "default_grass.png", "default:jungleleaves") -- Illuminated Cave Shrooms (Red, Green and Blue) minetest.register_node("ethereal:illumishroom", { @@ -267,7 +267,7 @@ minetest.register_node("ethereal:illumishroom", { light_source = 5, sunlight_propagates = true, walkable = false, - groups = {dig_immediate = 3, attached_node = 1,flammable = 3}, + groups = {dig_immediate = 3, attached_node = 1, flammable = 3}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -285,7 +285,7 @@ minetest.register_node("ethereal:illumishroom2", { light_source = 5, sunlight_propagates = true, walkable = false, - groups = {dig_immediate = 3, attached_node = 1,flammable = 3}, + groups = {dig_immediate = 3, attached_node = 1, flammable = 3}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -303,7 +303,7 @@ minetest.register_node("ethereal:illumishroom3", { light_source = 5, sunlight_propagates = true, walkable = false, - groups = {dig_immediate = 3, attached_node = 1,flammable = 3}, + groups = {dig_immediate = 3, attached_node = 1, flammable = 3}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", |