From abb7be522f5ba39a71aa0e1f475f21432076917c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Jan 2017 03:05:03 +0100 Subject: [PATCH] Rename compass mod to mcl_compass --- mods/mcl_clock/mod.conf | 1 + mods/{compass => mcl_compass}/depends.txt | 0 mods/{compass => mcl_compass}/init.lua | 8 ++++---- mods/mcl_compass/mod.conf | 1 + .../textures/mcl_compass_compass.png} | Bin 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 mods/mcl_clock/mod.conf rename mods/{compass => mcl_compass}/depends.txt (100%) rename mods/{compass => mcl_compass}/init.lua (88%) create mode 100644 mods/mcl_compass/mod.conf rename mods/{compass/textures/compass_compass.png => mcl_compass/textures/mcl_compass_compass.png} (100%) diff --git a/mods/mcl_clock/mod.conf b/mods/mcl_clock/mod.conf new file mode 100644 index 0000000000..ba0d83eaa7 --- /dev/null +++ b/mods/mcl_clock/mod.conf @@ -0,0 +1 @@ +name = mcl_clock diff --git a/mods/compass/depends.txt b/mods/mcl_compass/depends.txt similarity index 100% rename from mods/compass/depends.txt rename to mods/mcl_compass/depends.txt diff --git a/mods/compass/init.lua b/mods/mcl_compass/init.lua similarity index 88% rename from mods/compass/init.lua rename to mods/mcl_compass/init.lua index cc08f8cac0..371744dbee 100644 --- a/mods/compass/init.lua +++ b/mods/mcl_compass/init.lua @@ -27,7 +27,7 @@ minetest.register_globalstep(function(dtime) for j,stack in ipairs(player:get_inventory():get_list("main")) do if minetest.get_item_group(stack:get_name(), "compass") ~= 0 and minetest.get_item_group(stack:get_name(), "compass")-1 ~= compass_image then - player:get_inventory():set_stack("main", j, "compass:"..compass_image) + player:get_inventory():set_stack("main", j, "mcl_compass:"..compass_image) end end end @@ -36,7 +36,7 @@ end) local images = {} for frame=0,31 do - table.insert(images, "compass_compass.png^[verticalframe:32:"..frame) + table.insert(images, "mcl_compass_compass.png^[verticalframe:32:"..frame) end local i @@ -45,7 +45,7 @@ for i,img in ipairs(images) do if i == 1 then inv = 0 end - minetest.register_tool("compass:"..(i-1), { + minetest.register_tool("mcl_compass:"..(i-1), { description = "Compass", inventory_image = img, wield_image = img, @@ -55,7 +55,7 @@ for i,img in ipairs(images) do end minetest.register_craft({ - output = 'compass:1', + output = 'mcl_compass:1', recipe = { {'', 'default:steel_ingot', ''}, {'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'}, diff --git a/mods/mcl_compass/mod.conf b/mods/mcl_compass/mod.conf new file mode 100644 index 0000000000..8c9e0a652a --- /dev/null +++ b/mods/mcl_compass/mod.conf @@ -0,0 +1 @@ +name = mcl_compass diff --git a/mods/compass/textures/compass_compass.png b/mods/mcl_compass/textures/mcl_compass_compass.png similarity index 100% rename from mods/compass/textures/compass_compass.png rename to mods/mcl_compass/textures/mcl_compass_compass.png