123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- minetest.register_node('furniture:fence_1_a', {
- _doc_items_crafting = 'This is crafted in the Woodworking Station.',
- description = 'Fence',
- drawtype = 'mesh',
- mesh = 'furniture_fence_1_a.obj',
- tiles = {'furniture_fence.png'},
- paramtype = 'light',
- paramtype2 = 'colorfacedir',
- palette = 'furniture_stain_palette.png',
- selection_box = {
- type = 'fixed',
- fixed = {-.5, -.5, -.0625, .5, .5, .0625},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.5, -.5, -.0625, .5, .5, .0625},
- },
- groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
- on_rightclick = function(pos, node)
- minetest.set_node(pos, {name='furniture:fence_1_d', param2 = node.param2})
- end,
- })
- minetest.register_node('furniture:fence_1_b', {
- _doc_items_crafting = 'This is crafted in the Woodworking Station.',
- description = 'Fence',
- drawtype = 'mesh',
- mesh = 'furniture_fence_1_b.obj',
- tiles = {'furniture_fence.png'},
- paramtype = 'light',
- paramtype2 = 'colorfacedir',
- palette = 'furniture_stain_palette.png',
- selection_box = {
- type = 'fixed',
- fixed = {
- {0.0625, -0.5, -0.0625, 0.5, 0.5, 0.0625},
- {-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.0625}
- }
- },
- collision_box = {
- type = 'fixed',
- fixed = {
- {0.0625, -0.5, -0.0625, 0.5, 0.5, 0.0625},
- {-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.0625}
- }
- },
- groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
- })
- minetest.register_node('furniture:fence_1_c', {
- _doc_items_crafting = 'This is crafted in the Woodworking Station.',
- description = 'Fence',
- drawtype = 'mesh',
- mesh = 'furniture_fence_1_c.obj',
- tiles = {'furniture_fence.png'},
- paramtype = 'light',
- paramtype2 = 'colorfacedir',
- palette = 'furniture_stain_palette.png',
- selection_box = {
- type = 'fixed',
- fixed = {
- {-0.5, -0.5, -0.0625, -0.0625, 0.5, 0.0625},
- {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.5}
- },
- },
- collision_box = {
- type = 'fixed',
- fixed = {
- {-0.5, -0.5, -0.0625, -0.0625, 0.5, 0.0625},
- {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.5}
- }
- },
- groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
- })
- minetest.register_node('furniture:fence_1_d', {
- description = 'Gate',
- drawtype = 'mesh',
- mesh = 'furniture_fence_1_d.obj',
- tiles = {'furniture_fence.png'},
- paramtype = 'light',
- paramtype2 = 'colorfacedir',
- palette = 'furniture_stain_palette.png',
- selection_box = {
- type = 'fixed',
- fixed = {
- {0.375, -0.5, -0.0625, 0.5, 0.5, 0.0625},
- {-0.5, -0.5, -0.0625, -0.375, 0.5, 0.0625},
- {-0.375, -0.5, -0.0625, -0.25, 0.375, 0.75}
- }
- },
- collision_box = {
- type = 'fixed',
- fixed = {
- {0.375, -0.5, -0.0625, 0.5, 0.5, 0.0625},
- {-0.5, -0.5, -0.0625, -0.375, 0.5, 0.0625},
- {-0.375, -0.5, -0.0625, -0.25, 0.375, 0.75}
- }
- },
- groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1, not_in_creative_inventory=1},
- on_rightclick = function(pos, node)
- minetest.set_node(pos, {name='furniture:fence_1_a', param2 = node.param2})
- end,
- })
|