diff options
author | Wuzzy <almikes@aol.com> | 2016-11-29 22:36:42 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-11-29 22:36:42 +0100 |
commit | daa07f938f5a91ccd8d2d3c71fc110d8945566bc (patch) | |
tree | c284a93e9dc7dcc08c458ab22a452aa548f0ab05 |
Initial commit
-rw-r--r-- | depends.txt | 2 | ||||
-rw-r--r-- | description.txt | 1 | ||||
-rw-r--r-- | init.lua | 29 | ||||
-rw-r--r-- | locale/de.txt | 3 | ||||
-rw-r--r-- | locale/template.txt | 3 | ||||
-rw-r--r-- | mod.conf | 1 | ||||
-rw-r--r-- | screenshot.png | bin | 0 -> 14662 bytes | |||
-rw-r--r-- | textures/doc_encyclopedia_encyclopedia.png | bin | 0 -> 452 bytes |
8 files changed, 39 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..31aa390 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +doc +intllib? diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..3ca4425 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Adds an encyclopedia item which allows you to access the documentation system. diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..69a1250 --- /dev/null +++ b/init.lua @@ -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", ""}, + } +}) diff --git a/locale/de.txt b/locale/de.txt new file mode 100644 index 0000000..3b77b24 --- /dev/null +++ b/locale/de.txt @@ -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. diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..3866d22 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,3 @@ +Encyclopedia = +Allows you to access the documentation system. = +Wield it, then leftclick to access the documentation system. = diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..318d238 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = doc_encyclopedia diff --git a/screenshot.png b/screenshot.png Binary files differnew file mode 100644 index 0000000..f01defe --- /dev/null +++ b/screenshot.png diff --git a/textures/doc_encyclopedia_encyclopedia.png b/textures/doc_encyclopedia_encyclopedia.png Binary files differnew file mode 100644 index 0000000..2d5014b --- /dev/null +++ b/textures/doc_encyclopedia_encyclopedia.png |