bunch of documentation

This commit is contained in:
FaceDeer
2019-08-04 21:09:58 -06:00
parent 271a9441f4
commit 40f076ee1c
9 changed files with 81 additions and 14 deletions

View File

@ -73,9 +73,11 @@ local add_to_table = function(dest, source)
end
end
minetest.register_node("df_mapitems:wall_pearls", {
minetest.register_node("df_mapitems:cave_pearls", {
description = S("Cave Pearls"),
tiles = {"dfcaverns_cave_pearl.png"},
_doc_items_longdesc = df_mapitems.doc.cave_pearls_desc,
_doc_items_usagehelp = df_mapitems.doc.cave_pearls_usage,
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -95,7 +97,7 @@ minetest.register_node("df_mapitems:wall_pearls", {
})
local c_air = minetest.get_content_id("air")
local c_pearls = minetest.get_content_id("df_mapitems:wall_pearls")
local c_pearls = minetest.get_content_id("df_mapitems:cave_pearls")
local valid_nodes = {} -- cache values
local is_valid_mounting_node = function(c_node)

View File

@ -41,3 +41,6 @@ df_mapitems.doc.glow_ruby_ore_usage = S("Aside from its aesthetic value this roc
df_mapitems.doc.big_crystal_desc = S("Monolithic crystals of this size form only over extremely long periods deep underground, in large long-lived cavities that allow them room to grow. Water and the life it hosts tend to disrupt the formation process of these crystals so they're only found in dry environments.")
df_mapitems.doc.big_crystal_usage = S("Aside from its aesthetic value this crystal has no particular use.")
df_mapitems.doc.cave_pearls_desc = S("These nodules are actually calcified bacterial colonies.")
df_mapitems.doc.cave_pearls_usage = S("Aside from their soft glow and beauty, cave pearls have no practical use. Except perhaps as handholds for climbing.")