diff --git a/deco_rocks.lua b/deco_rocks.lua index 1e7f207..737a192 100644 --- a/deco_rocks.lua +++ b/deco_rocks.lua @@ -97,12 +97,51 @@ minetest.register_craft({ }, }) + minetest.register_craft({ output = "default:stick", + type = 'shapeless', recipe = { - {"", "", ""}, - {"default:dry_shrub", "default:dry_shrub", ""}, - {"default:dry_shrub", "default:dry_shrub", ""}, + "default:dry_shrub", "default:dry_shrub", + "default:dry_shrub", "default:dry_shrub", }, }) +minetest.register_craft({ + output = "default:stick", + type = 'shapeless', + recipe = { + "fun_caves:roots", + }, +}) + +minetest.register_node("fun_caves:roots", { + description = "Exposed Roots", + tiles = {"fun_caves_dry_twigs.png"}, + inventory_image = "fun_caves_dry_twigs.png", + is_ground_content = true, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + drawtype = "raillike", + selection_box = { type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + }, + groups = {stone=1, oddly_breakable_by_hand=3, dig_immediate = 3}, + sounds = default.node_sound_stone_defaults(), +}) + +local param = { + deco_type = "simple", + decoration = "fun_caves:roots", + sidelen = 80, + place_on = {"group:soil", "group:sand"}, + fill_ratio = 0.0005, + biomes = {"sandstone_grassland", "stone_grassland", "desertstone_grassland", }, + flags = "place_center_x, place_center_z", + rotation = "random", +} +if not fun_caves.use_bi_hi then + param.biomes = nil +end +minetest.register_decoration(param) diff --git a/nodes.lua b/nodes.lua index 4ddadf6..0a02bc7 100644 --- a/nodes.lua +++ b/nodes.lua @@ -77,7 +77,7 @@ minetest.register_node('fun_caves:sticks_default', { drawtype = 'allfaces_optional', waving = 1, visual_scale = 1.3, - tiles = {'mymonths_sticks.png'}, + tiles = {'fun_caves_dry_twigs.png'}, paramtype = 'light', is_ground_content = false, drop = 'default:stick 2', diff --git a/textures/fun_caves_dry_twigs.png b/textures/fun_caves_dry_twigs.png new file mode 100644 index 0000000..a278c80 Binary files /dev/null and b/textures/fun_caves_dry_twigs.png differ diff --git a/textures/mymonths_sticks.png b/textures/mymonths_sticks.png deleted file mode 100644 index d441f7b..0000000 Binary files a/textures/mymonths_sticks.png and /dev/null differ