Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- utility3D v0.1
- -- free to modify/reuse
- ----------------------------
- -- Keriz --
- ----------------------------
- -- Crafts recipes
- --Bench
- minetest.register_craft( {
- output = 'utility3D:bench',
- recipe = {
- { 'default:wood','default:wood', 'default:wood'},
- { 'default:wood', '', 'default:wood'},
- }
- })
- --Fridge
- minetest.register_craft( {
- output = 'utility3D:fridge',
- recipe = {
- --{ 'default:steel_ingot','default:steel_ingot', 'default:wood'},
- --{ 'default:steel_ingot', 'default:stick',},
- --{ 'default:steel_ingot', 'default:steel_ingot',},
- { 'default:wood', 'default:wood'},
- }
- })
- -- Block
- --Bench
- minetest.register_node("utility3D:bench", {
- description = 'Bench',
- tiles = {
- "bench.png",
- },
- drawtype = "nodebox",
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = "facedir",
- node_box = {
- type = "fixed",
- fixed = {
- {-0.4,0,-0.5, 0.4,0.2,0.5},
- {-0.1,-0.5,0.2, 0.1,0,0.4},
- {-0.1,-0.5,-0.4, 0.1,0,-0.2},
- },
- },
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
- })
- --Fridge
- minetest.register_node( "utility3D:fridge_top", {
- Description = 'Top fridge',
- tiles = {
- "fridge_top.png",
- },
- drawtype = "nodebox",
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = "facedir",
- node_box = {
- type = "fixed",
- fixed = {
- {-0.4,0,-0.5, 0.4,0.2,0.5},
- {-0.1,-0.5,0.2, 0.1,0,0.4},
- {-0.1,-0.5,-0.4, 0.1,0,-0.2},
- },
- },
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
- })
- minetest.register_node("utility3D:fridge_bottom", {
- Description = "Bottom fridge",
- tiles = {
- "fridge_bot.png",
- },
- drawtype = "nodebox",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "facedir",
- node_box = {
- type = "fixed",
- fixed = {
- {-0.4,0,-0.5, 0.4,0.2,0.5},
- {-0.1,-0.5,0.2, 0.1,0,0.4},
- {-0.1,-0.5,-0.4, 0.1,0,-0.2},
- },
- },
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
- })
Add Comment
Please, Sign In to add comment