We use these in our game to highlight where dungeons (mossycobble) are...
I'm rather fond of Jacaranda trees because I come from Grafton in Australia ;):
Code: Select all
-- Jacaranda Tree
minetest.register_node("exotictrees:jacaranda_trunk", {
description = "Jacaranda Trunk",
tiles = {
"exotictrees_jacaranda_trunk_top.png",
"exotictrees_jacaranda_trunk_top.png",
"exotictrees_jacaranda_trunk.png"
},
paramtype2 = "facedir",
is_ground_content = true,
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
})
minetest.register_node("exotictrees:jacaranda_planks", {
description = "Jacaranda Planks",
tiles = {"exotictrees_jacaranda_wood.png"},
is_ground_content = true,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("exotictrees:jacaranda_sapling", {
description = "Jacaranda Sapling",
drawtype = "plantlike",
tiles = {"exotictrees_jacaranda_sapling.png"},
inventory_image = "exotictrees_jacaranda_sapling.png",
paramtype = "light",
paramtype2 = "waving",
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
sounds = default.node_sound_defaults(),
})
minetest.register_node("exotictrees:jacaranda_leaves", {
description = "Jacaranda Leaves",
drawtype = "allfaces_optional",
tiles = {"exotictrees_jacaranda_leaves.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy=3, flammable=2, leaves=1, --[[moretrees_leaves=1]]},
sounds = default.node_sound_leaves_defaults(),
})
exotictrees.jacaranda_tree_model={
axiom="FFFFFFFAFFBF",
rules_a="[&&&FFFFF&&FFFF][&&&++++FFFFF&&FFFF][&&&----FFFFF&&FFFF]",
rules_b="[&&&++FFFFF&&FFFF][&&&--FFFFF&&FFFF][&&&------FFFFF&&FFFF]",
trunk="exotictrees:jacaranda_trunk",
leaves="exotictrees:jacaranda_leaves",
angle=30,
iterations=2,
random_level=0,
trunk_type="single",
thin_branches=true,
}
exotictrees.jacaranda_tree_biome = {
surface = { "default:dirt_with_grass", "default:dirt_with_dry_grass" },
avoid_nodes = exotictrees.avoidnodes,
avoid_radius = 10,
check_air = true,
seed_diff = 339,
min_elevation = 1,
max_elevation = 100,
near_nodes = {"default:mossycobble"},
near_nodes_size = 15,
near_nodes_count = 10,
temp_min = 0.1,
temp_max = -0.15,
rarity = 90,
max_count = 1,
}
biome_lib:register_generate_plant(exotictrees.jacaranda_tree_biome, exotictrees.spawn_jacaranda_tree_object)