1
0
Fork 0

Rename compass mod to mcl_compass

This commit is contained in:
Wuzzy 2017-01-09 03:05:03 +01:00
parent 2e732c9085
commit abb7be522f
5 changed files with 6 additions and 4 deletions

1
mods/mcl_clock/mod.conf Normal file
View File

@ -0,0 +1 @@
name = mcl_clock

View File

@ -27,7 +27,7 @@ minetest.register_globalstep(function(dtime)
for j,stack in ipairs(player:get_inventory():get_list("main")) do for j,stack in ipairs(player:get_inventory():get_list("main")) do
if minetest.get_item_group(stack:get_name(), "compass") ~= 0 and if minetest.get_item_group(stack:get_name(), "compass") ~= 0 and
minetest.get_item_group(stack:get_name(), "compass")-1 ~= compass_image then 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 end
end end
@ -36,7 +36,7 @@ end)
local images = {} local images = {}
for frame=0,31 do 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 end
local i local i
@ -45,7 +45,7 @@ for i,img in ipairs(images) do
if i == 1 then if i == 1 then
inv = 0 inv = 0
end end
minetest.register_tool("compass:"..(i-1), { minetest.register_tool("mcl_compass:"..(i-1), {
description = "Compass", description = "Compass",
inventory_image = img, inventory_image = img,
wield_image = img, wield_image = img,
@ -55,7 +55,7 @@ for i,img in ipairs(images) do
end end
minetest.register_craft({ minetest.register_craft({
output = 'compass:1', output = 'mcl_compass:1',
recipe = { recipe = {
{'', 'default:steel_ingot', ''}, {'', 'default:steel_ingot', ''},
{'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'}, {'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'},

View File

@ -0,0 +1 @@
name = mcl_compass

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB