-- register block minetest.register_node("mcl_bone_block:bone_block", { on_punch = function(pos, node, puncher, pointed_thing) if puncher:is_player() then minetest.chat_send_player(puncher:get_player_name(), "test") end end, description = "Bone_block", tiles = {"bone_block.png"}, node_box = { type = "fixed", fixed = { {-0.5, -0.5, -0,5}, {0.5, 0.5, 0.5}, } } }) --register recipe for block minetest.register_craft({ output = "mcl_bone_block:bone_block 1", recipe = { {"mcl_core:bone", "mcl_core:bone", "mcl_core:bone"}, } }) --register as decoration (adds to world gen) minetest.register_decoration({ deco_type = "simple", place_on = {"mcl_core:dirt_with_grass"}, --what other blocks can it spawn on? sidelen = 32, -- Size of the square (X / Z) divisions of the mapchunk being generated. -- Determines the resolution of noise variation if used. -- If the chunk size is not evenly divisible by sidelen, sidelen is made -- equal to the chunk size. fill_ratio = 0.002, decoration = "mcl_bone_block:bone_block", })