forked from mtcontrib/moretrees
Compare commits
6 Commits
c8aaaf20ed
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
b2a94399ec | |||
7383549476 | |||
ac9dd5503c | |||
5ee036f0f4 | |||
fab2944277 | |||
e72c539cdc |
@ -32,13 +32,13 @@ moretrees.enable_stairs = true
|
||||
|
||||
-- If this variable is set to true, register fences for moretrees wood
|
||||
|
||||
moretrees.enable_fences = true
|
||||
moretrees.enable_fences = false
|
||||
|
||||
-- Set this to true if you want the plantlike drawtype for leaves, which
|
||||
-- improves some peoples' framerates without resorting to making leaf nodes opaque.
|
||||
-- Affects default leaves and default jungle leaves also.
|
||||
|
||||
moretrees.plantlike_leaves = true
|
||||
moretrees.plantlike_leaves = false
|
||||
|
||||
-- Enable this if you want moretrees to redefine default apples so that they
|
||||
-- fall when leaves decay/are dug.
|
||||
|
1
mod.conf
1
mod.conf
@ -1,3 +1,4 @@
|
||||
name = moretrees
|
||||
depends = default, biome_lib, vessels
|
||||
optional_depends = doors, stairs, moreblocks, intllib, farming
|
||||
min_minetest_version = 5.2.0
|
||||
|
@ -26,6 +26,7 @@ local dirs3 = { 14, 11, 16, 5, 14 }
|
||||
|
||||
local moretrees_new_leaves_drawtype = "allfaces_optional"
|
||||
local moretrees_plantlike_leaves_visual_scale = 1
|
||||
local moretrees_new_leaves_waving = 1
|
||||
|
||||
if moretrees.plantlike_leaves then
|
||||
moretrees_new_leaves_drawtype = "plantlike"
|
||||
@ -134,12 +135,9 @@ for i in ipairs(moretrees.treelist) do
|
||||
})
|
||||
|
||||
local moretrees_leaves_inventory_image = nil
|
||||
local moretrees_new_leaves_waving = nil
|
||||
|
||||
if moretrees.plantlike_leaves then
|
||||
moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_"..treename.."_leaves.png")
|
||||
else
|
||||
moretrees_new_leaves_waving = 1
|
||||
end
|
||||
|
||||
minetest.register_node("moretrees:"..treename.."_leaves", {
|
||||
@ -390,8 +388,6 @@ for color = 1, #jungleleaves do
|
||||
|
||||
if moretrees.plantlike_leaves then
|
||||
moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_jungletree_leaves_"..jungleleaves[color]..".png")
|
||||
else
|
||||
moretrees_new_leaves_waving = 1
|
||||
end
|
||||
|
||||
minetest.register_node(leave_name, {
|
||||
|
10
saplings.lua
10
saplings.lua
@ -6,6 +6,9 @@
|
||||
local dirt_surfaces = {
|
||||
set = true,
|
||||
["default:dirt"] = true,
|
||||
["default:dirt_with_snow"] = true,
|
||||
["default:dry_dirt"] = true,
|
||||
["default:dry_dirt_with_dry_grass"] = true,
|
||||
["default:dirt_with_grass"] = true,
|
||||
["default:dirt_with_dry_grass"] = true,
|
||||
["default:dirt_with_coniferous_litter"] = true,
|
||||
@ -13,7 +16,8 @@ local dirt_surfaces = {
|
||||
["woodsoils:dirt_with_leaves_1"] = true,
|
||||
["woodsoils:dirt_with_leaves_2"] = true,
|
||||
["woodsoils:grass_with_leaves_1"] = true,
|
||||
["woodsoils:grass_with_leaves_2"] = true
|
||||
["woodsoils:grass_with_leaves_2"] = true,
|
||||
["meditteranean_biome:dirt_with_mediterranean_grass"] = true
|
||||
}
|
||||
|
||||
local conifer_surfaces = {
|
||||
@ -27,7 +31,8 @@ local conifer_surfaces = {
|
||||
["woodsoils:dirt_with_leaves_2"] = true,
|
||||
["woodsoils:grass_with_leaves_1"] = true,
|
||||
["woodsoils:grass_with_leaves_2"] = true,
|
||||
["default:dirt_with_snow"] = true
|
||||
["default:dirt_with_snow"] = true,
|
||||
["meditteranean_biome:dirt_with_mediterranean_grass"] = true
|
||||
}
|
||||
|
||||
local sand_surfaces = {
|
||||
@ -35,6 +40,7 @@ local sand_surfaces = {
|
||||
["default:sand"] = true,
|
||||
["default:desert_sand"] = true,
|
||||
["cottages:loam"] = true,
|
||||
["darkage:mud"] = true,
|
||||
-- note, no silver sand here.
|
||||
-- too cold for a palm, too... well... sandy for anything else.
|
||||
}
|
||||
|
Reference in New Issue
Block a user