forked from thunderdog1138/star_wars
52 lines
1.3 KiB
Lua
52 lines
1.3 KiB
Lua
|
|
local S = ethereal.intllib
|
|
|
|
-- vines
|
|
minetest.register_node("ethereal:vine", {
|
|
description = S("Vine"),
|
|
drawtype = "signlike",
|
|
tiles = {"vine.png"},
|
|
inventory_image = "vine.png",
|
|
wield_image = "vine.png",
|
|
paramtype = "light",
|
|
paramtype2 = "wallmounted",
|
|
walkable = false,
|
|
climbable = true,
|
|
is_ground_content = false,
|
|
selection_box = {
|
|
type = "wallmounted",
|
|
},
|
|
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
|
|
legacy_wallmounted = true,
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "ethereal:vine 2",
|
|
recipe = {
|
|
{"group:leaves", "", "group:leaves"},
|
|
{"", "group:leaves", ""},
|
|
{"group:leaves", "", "group:leaves"},
|
|
}
|
|
})
|
|
|
|
-- Grey Shrub (not Flammable - too cold to burn)
|
|
minetest.register_node("ethereal:snowygrass", {
|
|
description = S("Snowy Grass"),
|
|
drawtype = "plantlike",
|
|
visual_scale = 0.9,
|
|
tiles = {"snowygrass.png"},
|
|
inventory_image = "snowygrass.png",
|
|
wield_image = "snowygrass.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
waving = 1,
|
|
walkable = false,
|
|
buildable_to = true,
|
|
groups = {snappy = 3, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16},
|
|
},
|
|
}) |