Add 6d facedir to logs. 214/head
author4Evergreen4 <eljohnson@frontier.com>
Thu, 7 Nov 2013 16:48:00 +0000 (11:48 -0500)
committerkwolekr <kwolekr@minetest.net>
Fri, 8 Nov 2013 01:16:54 +0000 (20:16 -0500)
mods/default/functions.lua
mods/default/nodes.lua

index 7f4492cbc58e2f14999a460bc322de1c7282fe67..8a173ef2dae2d206a9916c9c7288e8c9fa81d6f7 100644 (file)
@@ -356,3 +356,4 @@ minetest.register_abm({
                end
        end
 })
+
index 7ec97b73d999c44c1c2518b68970be447d0fa377..03e8f5b6287991d20cfc6041e08523d836556f06 100644 (file)
@@ -227,15 +227,19 @@ minetest.register_node("default:brick", {
 minetest.register_node("default:tree", {
        description = "Tree",
        tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
+       paramtype2 = "facedir",
        groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
        sounds = default.node_sound_wood_defaults(),
+       on_place = minetest.rotate_node
 })
 
 minetest.register_node("default:jungletree", {
        description = "Jungle Tree",
        tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
+       paramtype2 = "facedir",
        groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
        sounds = default.node_sound_wood_defaults(),
+       on_place = minetest.rotate_node
 })
 
 minetest.register_node("default:junglewood", {