bouncy_mushrooms/init.lua

36 lines
1.0 KiB
Lua

minetest.register_node('bouncy_mushrooms:bouncy_mushroom', {
description = 'Bouncy Mushroom',
tiles = {"bouncy_mushrooms_mushroom_top.png", "bouncy_mushrooms_mushroom_bottom.png", "bouncy_mushrooms_mushroom_side.png"},
paramtype = "light",
sunlight_propagates = true,
drawtype = "nodebox",
groups = { snappy = 1, bouncy = 125, fall_damage_add_percent = -100 },
is_ground_content = true,
node_box = {
type = "fixed",
fixed = {
{-0.125, -0.5, -0.125, 0.125, 0.125, 0.125},
{-0.375, 0.125, -0.375, 0.375, 0.5, 0.375},
}
},
})
minetest.register_decoration({
decoration = "bouncy_mushrooms:bouncy_mushroom",
deco_type = "simple",
place_on = "default:dirt_with_coniferous_litter",
sidelen = 16,
fill_ratio = 0.0008,
y_min = 0,
y_max = 31000,
})
minetest.register_decoration({
decoration = "bouncy_mushrooms:bouncy_mushroom",
deco_type = "simple",
place_on = "nc_terrain:dirt_with_grass",
sidelen = 16,
fill_ratio = 0.0001,
y_min = 0,
y_max = 8,
})