From 371ec2a65eac05b6c25b2473b376de8eacd2a6ec Mon Sep 17 00:00:00 2001 From: kaadmy Date: Fri, 23 Oct 2015 12:19:57 -0700 Subject: [PATCH] added dirt path slabs --- mods/default/crafting.lua | 15 +++++++++++---- mods/default/nodes.lua | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index 5bdd1b8..99218ad 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -279,7 +279,7 @@ minetest.register_craft( minetest.register_craft( { - output = "default:dirt_path 4", + output = "default:dirt_path 8", recipe = { {"default:dirt", "default:dirt", "default:dirt"}, {"default:gravel", "default:gravel", "default:gravel"}, @@ -289,11 +289,18 @@ minetest.register_craft( minetest.register_craft( { - output = "default:heated_dirt_path 8", + output = "default:path_slab 3", recipe = { - {"default:ingot_steel", "default:dirt_path", "default:ingot_steel"}, {"default:dirt_path", "default:dirt_path", "default:dirt_path"}, - {"default:gravel", "default:gravel", "default:gravel"}, + } + }) + +minetest.register_craft( + { + output = "default:heated_dirt_path", + recipe = { + {"default:dirt_path"}, + {"default:ingot_steel"}, } }) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index c69921f..169446d 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -233,6 +233,22 @@ minetest.register_node( sounds = default.node_sound_dirt_defaults(), }) +minetest.register_node( + "default:path_slab", + { + description = "Dirt Path Slab", + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = {-0.5, -0.5 - (2/16), -0.5, 0.5, 2/16, 0.5} + }, + tiles ={"default_dirt.png"}, + groups = {crumbly=3, fall_damage_add_percent=-10}, + is_ground_content = true, + sounds = default.node_sound_dirt_defaults(), + }) + minetest.register_node( "default:heated_dirt_path", {