update oak_steampunk; fall oak trunk
This commit is contained in:
parent
030258996f
commit
b03ba5e1b0
@ -87,7 +87,6 @@ local _ = {
|
||||
|
||||
local T = {
|
||||
name = "oak_steampunk:oak_tree_trunk",
|
||||
force_place = true,
|
||||
}
|
||||
|
||||
local L = {
|
||||
@ -176,9 +175,9 @@ oak_tree_schematic = {
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter", "dirt_with_snow"},
|
||||
biomes = {"coniferous_forest", "taiga"}, -- "grassland", "deciduous_forest",
|
||||
biomes = {"grassland", "snowy_grassland"}, -- "deciduous_forest", "coniferous_forest", "taiga"
|
||||
sidelen = 5,
|
||||
fill_ratio = 0.001,
|
||||
fill_ratio = 0.0005,
|
||||
schematic = oak_tree_schematic,
|
||||
rotation = 'random',
|
||||
y_min = 20,
|
||||
@ -186,6 +185,13 @@ minetest.register_decoration({
|
||||
flags = {place_center_z = true, place_center_x = true},
|
||||
})
|
||||
|
||||
-- register leaf decay for oak tree
|
||||
default.register_leafdecay({
|
||||
trunks = {"oak_steampunk:oak_tree_trunk"},
|
||||
leaves = {"oak_steampunk:oak_tree_leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "oak_steampunk:oak_tree_planks 4",
|
||||
recipe = {{"oak_steampunk:oak_tree_trunk"}}
|
||||
|
@ -89,6 +89,10 @@ if minetest.get_modpath("real_trees") then
|
||||
dofile(mod_path .. "/real_trees.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("oak_steampunk") then
|
||||
dofile(mod_path .. "/oak_steampunk.lua")
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Minetest engine debug logging
|
||||
|
29
fallen_trees/oak_steampunk.lua
Normal file
29
fallen_trees/oak_steampunk.lua
Normal file
@ -0,0 +1,29 @@
|
||||
--[[
|
||||
Fallen Trees - Adds tree nodes to the falling_node group.
|
||||
Copyright (C) 2018 Hamlet
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--]]
|
||||
|
||||
|
||||
--
|
||||
-- Nodes overriders
|
||||
--
|
||||
|
||||
minetest.override_item("oak_steampunk:oak_tree_trunk", {
|
||||
groups = {
|
||||
tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2,
|
||||
falling_node = 1
|
||||
}
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user