From 93f8901ceb83adc0dad98565c05c813c9c5f8665 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 23 Sep 2018 16:29:30 +0300 Subject: bike friendly --- nodes_feldweg.lua | 50 ++++++++++++++++---------------------------------- 1 file changed, 16 insertions(+), 34 deletions(-) diff --git a/nodes_feldweg.lua b/nodes_feldweg.lua index e424e15..7d72f80 100644 --- a/nodes_feldweg.lua +++ b/nodes_feldweg.lua @@ -66,9 +66,8 @@ if( cottages_feldweg_mode == "simple" or cottages_feldweg_mode == "flat" ) then description = S("Dirt road"), tiles = {"cottages_feldweg.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly=1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, }) @@ -85,9 +84,8 @@ if( cottages_feldweg_mode == "flat" ) then description = S("Dirt road crossing"), tiles = {"cottages_feldweg_kreuzung.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, }) @@ -96,9 +94,8 @@ if( cottages_feldweg_mode == "flat" ) then description = S("Dirt road t junction"), tiles = {"cottages_feldweg_t-kreuzung.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, }) @@ -107,9 +104,8 @@ if( cottages_feldweg_mode == "flat" ) then description = S("Dirt road curve"), tiles = {"cottages_feldweg_ecke.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, }) @@ -123,9 +119,8 @@ elseif( cottages_feldweg_mode == "nodebox" ) then description = S("Dirt road"), tiles = {"cottages_feldweg_orig.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - roups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + roups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, drawtype = "nodebox", @@ -155,12 +150,10 @@ elseif( cottages_feldweg_mode == "nodebox" ) then description = S("Dirt road crossing"), tiles = {"cottages_feldweg_kreuzung.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, - drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer paramtype = "light", @@ -201,12 +194,10 @@ elseif( cottages_feldweg_mode == "nodebox" ) then description = S("Dirt road t junction"), tiles = {"cottages_feldweg_t-kreuzung.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, - drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer paramtype = "light", @@ -245,12 +236,10 @@ elseif( cottages_feldweg_mode == "nodebox" ) then description = S("Dirt road curve"), tiles = {"cottages_feldweg_ecke.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, - drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer paramtype = "light", @@ -297,9 +286,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg", { description = S("Dirt road"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png^default_grass_side.png", @@ -315,9 +303,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_crossing", { description = S("Dirt road crossing"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png", @@ -333,9 +320,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_t_junction", { description = S("Dirt road t junction"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png^default_grass_side.png", "default_dirt.png", @@ -351,9 +337,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_curve", { description = S("Dirt road curve"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"default_dirt.png^default_grass_side.png","default_grass.png", @@ -369,9 +354,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_end", { description = S("Dirt road end"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png^default_grass_side.png", @@ -393,7 +377,7 @@ end -- create stairs if possible if( minetest.get_modpath("stairs") and stairs and stairs.register_stair_and_slab) then stairs.register_stair_and_slab("feldweg", "cottages:feldweg", - {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, {"cottages_feldweg.png","default_dirt.png", "default_grass.png","default_grass.png","cottages_feldweg.png","cottages_feldweg.png"}, S("Dirt Road Stairs"), S("Dirt Road, half height"), @@ -423,9 +407,8 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_slope", { description = S("Dirt road slope"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png^default_grass_side.png", @@ -445,9 +428,8 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_slope_long", { description = S("Dirt road slope long"), paramtype2 = "facedir", - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + groups = {crumbly = 3, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, bike_friendly = 1}, legacy_facedir_simple = true, - groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults, is_ground_content = false, tiles = {"cottages_feldweg_end.png","default_dirt.png^default_grass_side.png", -- cgit v1.2.3