forked from minetest-mods/moreblocks
		
	Allow stair/slab crafting by default, can be disabled in _config.txt
This commit is contained in:
		| @@ -9,3 +9,6 @@ | |||||||
|  |  | ||||||
| -- Whether to direct wood based on player yaw when placing the block | -- Whether to direct wood based on player yaw when placing the block | ||||||
| wood_facedir = true | wood_facedir = true | ||||||
|  |  | ||||||
|  | -- Allow stair/slab crafting without a circular saw or not | ||||||
|  | allow_stair_slab_crafting = true | ||||||
|   | |||||||
| @@ -115,8 +115,10 @@ function register_slab(modname, subname, recipeitem, groups, images, description | |||||||
| 		end | 		end | ||||||
| 	}) | 	}) | ||||||
|  |  | ||||||
| 	-- Unregister default recipes | 	-- Unregister default recipes, optional, see _config.txt | ||||||
|  |  | ||||||
|  | if allow_stair_slab_crafting == false | ||||||
|  | then | ||||||
| 	minetest.register_craft({ | 	minetest.register_craft({ | ||||||
| 		output = "moreblocks:nothing 1", | 		output = "moreblocks:nothing 1", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| @@ -124,4 +126,5 @@ function register_slab(modname, subname, recipeitem, groups, images, description | |||||||
| 		}, | 		}, | ||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  | end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -225,8 +225,10 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio | |||||||
| 		end | 		end | ||||||
| 	}) | 	}) | ||||||
|  |  | ||||||
| 	-- Unregister default recipes | 	-- Unregister default recipes, optional, see _config.txt | ||||||
|  |  | ||||||
|  | if allow_stair_slab_crafting == false | ||||||
|  | then | ||||||
| 	minetest.register_craft({ | 	minetest.register_craft({ | ||||||
| 		output = "moreblocks:nothing 1", | 		output = "moreblocks:nothing 1", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| @@ -245,4 +247,5 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio | |||||||
| 		}, | 		}, | ||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  | end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user