From 43bf44ce63ffe837c9eeec14df6ebab225b8873e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 9 Jan 2018 14:23:59 +0100 Subject: [PATCH] Structure nodes.lua a little --- nodes.lua | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/nodes.lua b/nodes.lua index a6bc0e2..24405ce 100644 --- a/nodes.lua +++ b/nodes.lua @@ -1,3 +1,7 @@ +------------------------- +-- Savanna tree +------------------------- + minetest.register_node("mg:savannatree", { description = "Savannawood Tree", tiles = {"mg_dry_tree_top.png", "mg_dry_tree_top.png", "mg_dry_tree.png"}, @@ -76,16 +80,9 @@ minetest.register_abm({ end }) -minetest.register_node("mg:dirt_with_dry_grass", { - description = "Dry Grass", - tiles = {"mg_dry_grass.png", "default_dirt.png", "default_dirt.png^mg_dry_grass_side.png"}, - is_ground_content = true, - groups = {crumbly=3,soil=1}, - drop = 'default:dirt', - sounds = default.node_sound_dirt_defaults({ - footstep = {name="default_grass_footstep", gain=0.25}, - }), -}) +------------------------- +-- Pine tree +------------------------- minetest.register_node("mg:pinetree", { description = "Pine Tree", @@ -165,6 +162,21 @@ minetest.register_abm({ end }) +------------------------- +-- Other +------------------------- + +minetest.register_node("mg:dirt_with_dry_grass", { + description = "Dry Grass", + tiles = {"mg_dry_grass.png", "default_dirt.png", "default_dirt.png^mg_dry_grass_side.png"}, + is_ground_content = true, + groups = {crumbly=3,soil=1}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_grass_footstep", gain=0.25}, + }), +}) + minetest.register_node("mg:ignore", { description = "MG Ignore", drawtype = "airlike",