Add sticks to grasslands.

This commit is contained in:
Duane 2016-06-26 00:25:15 -05:00
parent 5568b5c893
commit 394b046bed
4 changed files with 43 additions and 4 deletions

View file

@ -97,12 +97,51 @@ minetest.register_craft({
}, },
}) })
minetest.register_craft({ minetest.register_craft({
output = "default:stick", output = "default:stick",
type = 'shapeless',
recipe = { 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)

View file

@ -77,7 +77,7 @@ minetest.register_node('fun_caves:sticks_default', {
drawtype = 'allfaces_optional', drawtype = 'allfaces_optional',
waving = 1, waving = 1,
visual_scale = 1.3, visual_scale = 1.3,
tiles = {'mymonths_sticks.png'}, tiles = {'fun_caves_dry_twigs.png'},
paramtype = 'light', paramtype = 'light',
is_ground_content = false, is_ground_content = false,
drop = 'default:stick 2', drop = 'default:stick 2',

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B