From 37a7175db35c8c66d80a797d4bb0c93c221fee12 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 02:02:02 +0200 Subject: Add template texts --- init.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'init.lua') 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 = {} -- cgit v1.2.3