From 9b8d1749ba5fbad093b54904a6200c5b1391f7b8 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sat, 13 Jun 2015 19:08:35 +0200 Subject: [PATCH] Rename workbench to worktable --- crafts.lua | 2 +- init.lua | 2 +- ...rkbench_front.png => xdecor_worktable_front.png} | Bin ...rkbench_sides.png => xdecor_worktable_sides.png} | Bin ...r_workbench_top.png => xdecor_worktable_top.png} | Bin workbench.lua => worktable.lua | 12 ++++++------ 6 files changed, 8 insertions(+), 8 deletions(-) rename textures/{xdecor_workbench_front.png => xdecor_worktable_front.png} (100%) rename textures/{xdecor_workbench_sides.png => xdecor_worktable_sides.png} (100%) rename textures/{xdecor_workbench_top.png => xdecor_worktable_top.png} (100%) rename workbench.lua => worktable.lua (94%) diff --git a/crafts.lua b/crafts.lua index ce9c58c..30ec843 100644 --- a/crafts.lua +++ b/crafts.lua @@ -119,7 +119,7 @@ minetest.register_craft({ output = "xdecor:tv", recipe = { {"default:steel_ingot", "default:glass", "default:steel_ingot"}, {"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"} } }) -minetest.register_craft({ output = "xdecor:workbench", recipe = { +minetest.register_craft({ output = "xdecor:worktable", recipe = { {"group:wood", "group:wood", "group:wood"}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"group:wood", "group:wood", "group:wood"} } }) diff --git a/init.lua b/init.lua index 4c6eb5f..268cfd9 100644 --- a/init.lua +++ b/init.lua @@ -6,4 +6,4 @@ dofile(modpath.."/handlers/registration.lua") dofile(modpath.."/crafts.lua") dofile(modpath.."/itemframes.lua") dofile(modpath.."/nodes.lua") -dofile(modpath.."/workbench.lua") +dofile(modpath.."/worktable.lua") diff --git a/textures/xdecor_workbench_front.png b/textures/xdecor_worktable_front.png similarity index 100% rename from textures/xdecor_workbench_front.png rename to textures/xdecor_worktable_front.png diff --git a/textures/xdecor_workbench_sides.png b/textures/xdecor_worktable_sides.png similarity index 100% rename from textures/xdecor_workbench_sides.png rename to textures/xdecor_worktable_sides.png diff --git a/textures/xdecor_workbench_top.png b/textures/xdecor_worktable_top.png similarity index 100% rename from textures/xdecor_workbench_top.png rename to textures/xdecor_worktable_top.png diff --git a/workbench.lua b/worktable.lua similarity index 94% rename from workbench.lua rename to worktable.lua index f66daa0..d244ef6 100644 --- a/workbench.lua +++ b/worktable.lua @@ -82,12 +82,12 @@ function xdecor.can_dig(pos, player) return true end -xdecor.register("workbench", { - description = "Work Bench", infotext = "Work Bench", +xdecor.register("worktable", { + description = "Work Table", infotext = "Work Table", sounds = default.node_sound_wood_defaults(), groups = {snappy=3}, - tiles = {"xdecor_workbench_top.png", "xdecor_workbench_top.png", - "xdecor_workbench_sides.png", "xdecor_workbench_sides.png", - "xdecor_workbench_front.png", "xdecor_workbench_front.png"}, + tiles = {"xdecor_worktable_top.png", "xdecor_worktable_top.png", + "xdecor_worktable_sides.png", "xdecor_worktable_sides.png", + "xdecor_worktable_front.png", "xdecor_worktable_front.png"}, on_construct = xdecor.on_construct, on_receive_fields = xdecor.on_receive_fields, can_dig = xdecor.can_dig }) @@ -132,7 +132,7 @@ end -- Repair Tool's code by Krock, modified by kilbith minetest.register_abm({ - nodenames = {"xdecor:workbench"}, + nodenames = {"xdecor:worktable"}, interval = 5, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) local meta = minetest.get_meta(pos)