Use new doc_items format
parent
55b5cafd49
commit
f21b7ca6cc
7
init.lua
7
init.lua
|
@ -85,6 +85,7 @@ end)
|
|||
do
|
||||
local nodedef = {
|
||||
description = S("Surprise block"),
|
||||
x_doc_items_longdesc = S("If this block is mined, a few surprise items may drop out of it."),
|
||||
tiles = { { name = "tsm_surprise_question_anim.png", animation = {
|
||||
type = "vertical_frames", aspect_w=16, aspect_h=16, length=3.0 } } },
|
||||
drop = "",
|
||||
|
@ -133,10 +134,4 @@ do
|
|||
end,
|
||||
}
|
||||
minetest.register_node("tsm_surprise:question",nodedef)
|
||||
|
||||
if minetest.get_modpath("doc_items") then
|
||||
doc.sub.items.set_items_longdesc({
|
||||
["tsm_surprise:question"] = S("If this block is mined, a few surprise items may drop out of it."),
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue