diff options
Diffstat (limited to 'blocks.lua')
-rw-r--r-- | blocks.lua | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/blocks.lua b/blocks.lua deleted file mode 100644 index 93fbfe5..0000000 --- a/blocks.lua +++ /dev/null @@ -1,75 +0,0 @@ -local sbox = { - type = "fixed", - fixed = { - {-0.5, -0.5, -0.0625, 0.5, 0.5, 0.0625} - } - } -local cbox = { - type = "fixed", - fixed = { - {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5} - } - } -local blocks = { -{"Floor", "floor", "floor","floor",0,true}, -{"Wall", "wall", "wall","floor",11,true}, -{"Wallc", "wallc", "wallc","floor",11,true}, -{"Walle", "walle", "walle","floor",11,true}, -{"Wall Walkthrough","walk_wall","wall","floor",11,false}, -} -for i in ipairs(blocks) do -local des = blocks[i][1] -local itm = blocks[i][2] -local i1 = blocks[i][3] -local i2 = blocks[i][4] -local lit = blocks[i][5] -local tf = blocks[i][6] - -minetest.register_node("mypacman:"..itm, { - description = des, - tiles = { - "mypacman_"..i1..".png", - "mypacman_"..i2..".png", - "mypacman_walls.png", - "mypacman_walls.png", - "mypacman_walls.png", - "mypacman_walls.png", - }, - drawtype = "normal", - paramtype = "light", - paramtype2 = "facedir", - light_source = lit, - walkable = tf, - groups = {disable_jump = 1, immortal=1, not_in_creative_inventory = 1}, - selection_box = sbox, - collision_box = cbox, - -}) -end ---Glass -minetest.register_node("mypacman:glass", { - description = "glass", - tiles = {"mypacman_glass.png"}, - drawtype = "glasslike", - paramtype = "light", - paramtype2 = "facedir", - groups = {immortal=1,not_in_creative_inventory = 1}, - selection_box = cbox, - collision_box = cbox, - -}) -minetest.register_node("mypacman:glassw", { - description = "glassw", - tiles = {"mypacman_glass.png"}, - drawtype = "glasslike", - paramtype = "light", - paramtype2 = "facedir", - walkable = false, - groups = {immortal=1,not_in_creative_inventory = 1}, - selection_box = cbox, - colision_box = cbox, - -}) - - - |