mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Rename compass mod to mcl_compass
This commit is contained in:
parent
2e732c9085
commit
abb7be522f
5 changed files with 6 additions and 4 deletions
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
|
||||
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'},
|
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 a new issue