591a592,609 > mat..".png", mat..".png", mat..".png", > mat..".png^mychisel_stint.png", > }, > paramtype = "light", > paramtype2 = "facedir", > drop = item, > groups = gro, > node_box = squar4, > selection_box = squar4 > > }) > > minetest.register_node("mychisel:square_"..mat.."4", { > description = "cross"..desc.."4", > drawtype = "nodebox", > tiles = { > mat..".png", > mat..".png", 603a622,656 > }) > > minetest.register_node("mychisel:chisel_deco", { > drawtype = "nodebox", > paramtype = "light", > paramtype2 = "facedir", > tiles = { > "default_steel_block.png", > "default_wood.png", > "mychisel_chisel.png", > "mychisel_chisel.png", > "mychisel_chisel.png", > "mychisel_chisel.png" > }, > groups = { > snappy=3, > flammable=2, > not_in_creative_inventory=1 > }, > node_box = { > type = "fixed", > fixed = { > {-0.125, -0.5, -0.125, 0.125, 0.25, 0.125}, -- NodeBox1 > {-0.1875, 0.25, -0.1875, 0.1875, 0.5, 0.1875}, -- NodeBox2 > } > }, > sounds = default.node_sound_wood_defaults(), > on_dig = function(pos, node, digger) > if digger:is_player() and digger:get_inventory() then > local meta = minetest.env:get_meta(pos) > local wear_out = meta:get_int("wear") > digger:get_inventory():add_item("main", {name="mychisel:chisel", count=1, wear=wear_out, metadata=""}) > end > minetest.remove_node(pos) > end,