Initial commit

master
Wuzzy 2016-11-29 22:36:42 +01:00
commit daa07f938f
8 changed files with 39 additions and 0 deletions

2
depends.txt Normal file
View File

@ -0,0 +1,2 @@
doc
intllib?

1
description.txt Normal file
View File

@ -0,0 +1 @@
Adds an encyclopedia item which allows you to access the documentation system.

29
init.lua Normal file
View File

@ -0,0 +1,29 @@
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
minetest.register_craftitem("doc_encyclopedia:encyclopedia", {
description = S("Encyclopedia"),
_doc_items_longdesc = S("Allows you to access the documentation system."),
_doc_items_usagehelp = S("Wield it, then leftclick to access the documentation system."),
stack_max = 1,
inventory_image = "doc_encyclopedia_encyclopedia.png",
wield_image = "doc_encyclopedia_encyclopedia.png",
wield_scale = { x=1, y=1, z=2.25 },
on_use = function(itemstack, user)
doc.show_doc(user:get_player_name())
end,
groups = { book=1 },
})
minetest.register_craft({
output = "doc_encyclopedia:encyclopedia",
recipe = {
{"group:stick", "group:stick", ""},
{"group:stick", "", "group:stick"},
{"group:stick", "group:stick", ""},
}
})

3
locale/de.txt Normal file
View File

@ -0,0 +1,3 @@
Encyclopedia = Enzyklopädie
Allows you to access the documentation system. = Damit kann man auf das Dokumentationssystem zuzugreifen.
Wield it, then leftclick to access the documentation system. = Halten Sie sie in der Hand und linksklicken Sie, um auf das Dokumentationssystem zuzugreifen.

3
locale/template.txt Normal file
View File

@ -0,0 +1,3 @@
Encyclopedia =
Allows you to access the documentation system. =
Wield it, then leftclick to access the documentation system. =

1
mod.conf Normal file
View File

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

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B