forked from mtcontrib/moretrees
Compare commits
6 Commits
f3108af2e3
...
c8aaaf20ed
Author | SHA1 | Date | |
---|---|---|---|
c8aaaf20ed | |||
93553670d2 | |||
66fd6724c5 | |||
fa83e1b262 | |||
f94f1bea26 | |||
09f08b50bc |
@ -32,13 +32,13 @@ moretrees.enable_stairs = true
|
|||||||
|
|
||||||
-- If this variable is set to true, register fences for moretrees wood
|
-- If this variable is set to true, register fences for moretrees wood
|
||||||
|
|
||||||
moretrees.enable_fences = false
|
moretrees.enable_fences = true
|
||||||
|
|
||||||
-- Set this to true if you want the plantlike drawtype for leaves, which
|
-- Set this to true if you want the plantlike drawtype for leaves, which
|
||||||
-- improves some peoples' framerates without resorting to making leaf nodes opaque.
|
-- improves some peoples' framerates without resorting to making leaf nodes opaque.
|
||||||
-- Affects default leaves and default jungle leaves also.
|
-- Affects default leaves and default jungle leaves also.
|
||||||
|
|
||||||
moretrees.plantlike_leaves = false
|
moretrees.plantlike_leaves = true
|
||||||
|
|
||||||
-- Enable this if you want moretrees to redefine default apples so that they
|
-- Enable this if you want moretrees to redefine default apples so that they
|
||||||
-- fall when leaves decay/are dug.
|
-- fall when leaves decay/are dug.
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,3 +1,3 @@
|
|||||||
name = moretrees
|
name = moretrees
|
||||||
depends = default, biome_lib, vessels
|
depends = default, biome_lib, vessels
|
||||||
optional_depends = doors stairs, moreblocks, intllib, farming
|
optional_depends = doors, stairs, moreblocks, intllib, farming
|
||||||
|
@ -119,6 +119,18 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
},
|
},
|
||||||
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
|
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
|
"moretrees:" ..treename.. "_sapling",
|
||||||
|
-- minp, maxp to be checked, relative to sapling pos
|
||||||
|
-- minp_relative.y = 1 because sapling pos has been checked
|
||||||
|
{x = -3, y = 1, z = -3},
|
||||||
|
{x = 3, y = 6, z = 3},
|
||||||
|
-- maximum interval of interior volume check
|
||||||
|
4)
|
||||||
|
|
||||||
|
return itemstack
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local moretrees_leaves_inventory_image = nil
|
local moretrees_leaves_inventory_image = nil
|
||||||
@ -261,7 +273,19 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
},
|
},
|
||||||
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
|
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
drop = "moretrees:"..treename.."_sapling"
|
drop = "moretrees:"..treename.."_sapling",
|
||||||
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
|
"moretrees:" ..treename.. "_sapling_ongen",
|
||||||
|
-- minp, maxp to be checked, relative to sapling pos
|
||||||
|
-- minp_relative.y = 1 because sapling pos has been checked
|
||||||
|
{x = -3, y = 1, z = -3},
|
||||||
|
{x = 3, y = 6, z = 3},
|
||||||
|
-- maximum interval of interior volume check
|
||||||
|
4)
|
||||||
|
|
||||||
|
return itemstack
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local fruitname = nil
|
local fruitname = nil
|
||||||
|
Reference in New Issue
Block a user