Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local table = {
- {"acacia_wood", "Acacia Wood"},
- {"aspen_wood", "Aspen Wood"},
- {"obsidian", "obsidian_table", "Obsidian"},
- {"sandstone_brick", "Sandstone Brick"},
- {"cobble", "Cobble"},
- {"junglewood", "Jungle Wood"},
- {"steel_block", "Steel Block"},
- {"brick", "Brick"},
- {"stone", "Stone"},
- {"silver_sandstone", "Silver Sandstone"},
- {"copper_block", "Copper Block"},
- {"stone_brick", "Stone Brick"},
- {"bronze_block", "Bronze Block"},
- {"gold_block", "Gold Block"},
- }
- for _, table in pairs(table) do
- --table node registrations
- minetest.register_node("dz:" .. table[1] .. "_table", {
- description = table[2] .. " Table",
- tiles = {
- "default_" .. table[1] .. ".png",
- "default_" .. table[1] .. ".png",
- "default_" .. table[1] .. ".png",
- "default_" .. table[1] .. ".png",
- "default_" .. table[1] .. ".png",
- "default_" .. table[1] .. ".png"
- },
- drawtype = "nodebox",
- paramtype = "light",
- paramtype2 = "facedir",
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5}, -- NodeBox1
- {-0.1875, -0.375, -0.1875, 0.1875, -0.25, 0.1875}, -- NodeBox2
- {-0.125, -0.3125, -0.125, 0.125, -0.125, 0.125}, -- NodeBox3
- {-0.0625, -0.5, -0.0625, 0.0625, 0.25, 0.0625}, -- NodeBox4
- {-0.5, 0.375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox5
- {-0.125, 0.125, -0.125, 0.125, 0.25, 0.125}, -- NodeBox6
- {-0.1875, 0.25, -0.1875, 0.1875, 0.375, 0.1875}, -- NodeBox7
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment