From aee95bc6f26c7279132256b8e7b994f607975681 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 25 Sep 2015 17:42:46 +0100 Subject: [PATCH] Node Metadata: Add Infotext explaination --- chapters/node_metadata.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chapters/node_metadata.md b/chapters/node_metadata.md index f473988..9da021e 100644 --- a/chapters/node_metadata.md +++ b/chapters/node_metadata.md @@ -13,6 +13,7 @@ In this chapter you will learn how to manipulate a node's metadata. * Reading Metadata * Setting Metadata * Lua Tables +* Infotext * Your Turn ## What is Node Metadata? @@ -107,6 +108,16 @@ tmp.foo = "bar" meta:from_table(tmp) {% endhighlight %} +## Infotext + +The Minetest Engine reads the field `infotext` in order to make text +appear on mouse-over. This is used by furnaces to show progress and signs +to show their text. + +{% highlight lua %} +meta:set_string("infotext", "Here is some text that will appear on mouse over!") +{% endhighlight %} + ## Your Turn * Make a block which disappears after it has been punched 5 times.