forked from mtcontrib/plantlife_modpack
Compare commits
6 Commits
nalc-1.1
...
45a8064d3d
Author | SHA1 | Date | |
---|---|---|---|
45a8064d3d | |||
31e0066238 | |||
3d13053d97 | |||
1696d8bd8f | |||
07b6fc48ea | |||
9a3d101c89 |
@ -1,14 +1,5 @@
|
|||||||
-- Code by Mossmanikin, Neuromancer, and others
|
-- Code by Mossmanikin, Neuromancer, and others
|
||||||
|
|
||||||
local function clone_node(name)
|
|
||||||
local node2 = {}
|
|
||||||
local node = minetest.registered_nodes[name]
|
|
||||||
for k,v in pairs(node) do
|
|
||||||
node2[k]=v
|
|
||||||
end
|
|
||||||
return node2
|
|
||||||
end
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- TWiGS
|
-- TWiGS
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -230,7 +221,7 @@ for i in pairs(TRuNKS) do
|
|||||||
if minetest.get_modpath(MoD) ~= nil
|
if minetest.get_modpath(MoD) ~= nil
|
||||||
and NR < 6 -- moretrees trunks allready have facedir
|
and NR < 6 -- moretrees trunks allready have facedir
|
||||||
and minetest.registered_nodes[trunkname] then -- the node being called exists.
|
and minetest.registered_nodes[trunkname] then -- the node being called exists.
|
||||||
temptrunk = clone_node(trunkname)
|
temptrunk = table.copy(minetest.registered_nodes[trunkname])
|
||||||
temptrunk.paramtype2 = "facedir"
|
temptrunk.paramtype2 = "facedir"
|
||||||
minetest.register_node(":"..trunkname, temptrunk)
|
minetest.register_node(":"..trunkname, temptrunk)
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,7 @@ local S = plantlife_i18n.gettext
|
|||||||
minetest.register_craftitem("vines:vines", {
|
minetest.register_craftitem("vines:vines", {
|
||||||
description = S("Vines"),
|
description = S("Vines"),
|
||||||
inventory_image = "vines_item.png",
|
inventory_image = "vines_item.png",
|
||||||
group = {vines = 1, flammable = 2}
|
groups = {vines = 1, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- FUNCTIONS
|
-- FUNCTIONS
|
||||||
|
Reference in New Issue
Block a user