forked from Mineclonia/Mineclonia
Indicate frame ID in clock group
This commit is contained in:
parent
8c81d33213
commit
ea41de41ac
|
@ -158,8 +158,8 @@ These groups are used mostly for informational purposes
|
||||||
These groups put similar items together which should all be treated by the gameplay or the GUI as a single item.
|
These groups put similar items together which should all be treated by the gameplay or the GUI as a single item.
|
||||||
You should not add custom items to these groups for no good reason, this is likely to cause a ton of conflicts.
|
You should not add custom items to these groups for no good reason, this is likely to cause a ton of conflicts.
|
||||||
|
|
||||||
* `clock=1`: Clock
|
* `clock`: Clock (rating indicates the “frame”)
|
||||||
* `compass`: Compass (rating doesn't matter)
|
* `compass`: Compass (rating indicates the “frame”)
|
||||||
|
|
||||||
This has the following implication: If you want to use a compass or clock in a crafting recipe, you *must*
|
This has the following implication: If you want to use a compass or clock in a crafting recipe, you *must*
|
||||||
use `group:compass` or `group:clock`, respectively.
|
use `group:compass` or `group:clock`, respectively.
|
||||||
|
|
|
@ -32,7 +32,7 @@ end
|
||||||
local doc_mod = minetest.get_modpath("doc") ~= nil
|
local doc_mod = minetest.get_modpath("doc") ~= nil
|
||||||
|
|
||||||
-- Register items
|
-- Register items
|
||||||
function watch.register_item(name, image, creative)
|
function watch.register_item(name, image, creative, frame)
|
||||||
local g = 1
|
local g = 1
|
||||||
if creative then
|
if creative then
|
||||||
g = 0
|
g = 0
|
||||||
|
@ -52,7 +52,7 @@ function watch.register_item(name, image, creative)
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
_doc_items_usagehelp = usagehelp,
|
_doc_items_usagehelp = usagehelp,
|
||||||
inventory_image = image,
|
inventory_image = image,
|
||||||
groups = {not_in_creative_inventory=g, tool=1, clock=1},
|
groups = {not_in_creative_inventory=g, tool=1, clock=frame},
|
||||||
wield_image = "",
|
wield_image = "",
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
})
|
})
|
||||||
|
@ -104,7 +104,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Clock tool
|
-- Clock tool
|
||||||
watch.register_item(mcl_clock.stereotype, watch.images[1], true)
|
watch.register_item(mcl_clock.stereotype, watch.images[1], true, 1)
|
||||||
|
|
||||||
-- Faces
|
-- Faces
|
||||||
for a=0,63,1 do
|
for a=0,63,1 do
|
||||||
|
@ -114,6 +114,6 @@ for a=0,63,1 do
|
||||||
else
|
else
|
||||||
b = b + 32
|
b = b + 32
|
||||||
end
|
end
|
||||||
watch.register_item("mcl_clock:clock_"..tostring(a), watch.images[b+1], false)
|
watch.register_item("mcl_clock:clock_"..tostring(a), watch.images[b+1], false, a+1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue