Add my panes mod.

master
Jordach 2012-04-19 17:01:07 +01:00
parent 8efc3636d3
commit 6fce5cbdf6
2 changed files with 31 additions and 0 deletions

1
panes/depends.txt Normal file
View File

@ -0,0 +1 @@
default

30
panes/init.lua Normal file
View File

@ -0,0 +1,30 @@
--Panes by Jordan Snelling 2012
minetest.register_craft({
output = 'panes:glass_pane 16',
recipe = {
{'default:glass', 'default:glass', 'default:glass'},
{'default:glass', 'default:glass', 'default:glass'},
}
})
minetest.register_node("panes:glass_pane", {
description = "Glass Pane",
drawtype = "torchlike",
tile_images = {"default_glass.png"},
inventory_image = "default_glass.png",
wield_image = "default_glass.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = true,
groups = {choppy=2,dig_immediate=3},
legacy_wallmounted = false,
buildable_to = true,
selection_box = {
type = "wallmounted",
wall_side = {-0.5, -0.5, -0.05, 0.5, 0.5, 0.05},
},
})
minetest.add_to_creative_inventory('panes:glass_pane')