Rename workbench to worktable

master
kilbith 2015-06-13 19:08:35 +02:00
parent bc4eb1530e
commit 9b8d1749ba
6 changed files with 8 additions and 8 deletions

View File

@ -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"} } })

View File

@ -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")

View File

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

View File

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

View File

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

View File

@ -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)