mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Rename compass mod to mcl_compass
This commit is contained in:
parent
2e732c9085
commit
abb7be522f
1
mods/mcl_clock/mod.conf
Normal file
1
mods/mcl_clock/mod.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
name = mcl_clock
|
@ -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'},
|
1
mods/mcl_compass/mod.conf
Normal file
1
mods/mcl_compass/mod.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
name = mcl_compass
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue
Block a user