summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 02:02:02 +0200
committerWuzzy <almikes@aol.com>2016-08-05 02:02:02 +0200
commit37a7175db35c8c66d80a797d4bb0c93c221fee12 (patch)
treeb38f96f406fe7f5578ebaa05586d3367c09f12c2 /init.lua
parent42788d5a0c81397449ec3f53b62eeb35d9a15258 (diff)
Add template texts
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a93d0c2..377c9b5 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,15 @@
doc.sub.items = {}
+-- Template texts
+doc.sub.items.temp = {}
+doc.sub.items.temp.deco = "This is a decorational block."
+doc.sub.items.temp.build = "This block is a building block for creating various buildings."
+doc.sub.items.temp.craftitem = "This item is primarily used for crafting other items."
+
+doc.sub.items.temp.eat = "Hold it in your hand, then leftclick to eat it."
+doc.sub.items.temp.eat_bad = "Hold it in your hand, then leftclick to eat it. But why would you want to do this?"
+
+-- Local stuff
local groupdefs = {}
local mininggroups = {}
local miscgroups = {}
@@ -11,6 +21,7 @@ local item_name_overrides = {
["air"] = "Air"
}
+-- Helper functions
local groups_to_string = function(grouptable, filter)
local gstring = ""
local groups_count = 0
@@ -123,7 +134,7 @@ local fuel_factoid = function(itemstring, ctype)
end
-
+-- For factoids
local factoid_generators = {}
factoid_generators.nodes = {}
factoid_generators.tools = {}