From 99f22d2aaa58e01f7e79e1c67627748df342e53b Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 2 Feb 2013 04:12:00 +0100 Subject: [PATCH] crafting receipe added --- README.md | 15 ++++++++++++++- init.lua | 8 ++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf989b1..239125d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,20 @@ +TODO: A distinct image is still missing. Right now, it looks like a steel axe! + This tool is helpful for creative purposes (i.e. build a wall and "paint" windows into it). +It replaces nodes with a previously selected other type of node (i.e. places said windows +into a brick wall). -There is no craft_receipe yet. Use /giveme replacer:replacer +Crafting: (nothing) stick (nothing) + (nothing) stick (nothing) + (nothing) empty_bucket (nothing) +Or just use /giveme replacer:replacer Usage: Right-click on a node of that type you want to replace other nodes with. Left-click (normal usage) on any nodes you want to replace with the type you previously right-clicked on. + +When in creative mode, the node will just be replaced. Your inventory will not be changed. + +When not in creative mode, digging will be simulated and you will get what was there. In return, the replacement node +will be taken from your inventory. + diff --git a/init.lua b/init.lua index a613d5d..a2cbeaa 100644 --- a/init.lua +++ b/init.lua @@ -143,3 +143,11 @@ minetest.register_tool( "replacer:replacer", end, }) +minetest.register_craft({ + output = 'replacer:replacer', + recipe = { + { 'default:stick' }, + { 'default:stick' }, + { 'bucket:bucket_empty' }, + } +})