From f3ec1452cdf73d62f38b0222dcbf8bc78293206d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 1 Jun 2012 19:03:09 +0300 Subject: Random node metadata things --- games/minimal/mods/default/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'games/minimal/mods/default') diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 516968f38..ed16e6a37 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -1112,6 +1112,12 @@ minetest.register_node("default:sign_wall", { groups = {choppy=2,dig_immediate=2}, legacy_wallmounted = true, sounds = default.node_sound_defaults(), + on_construct = function(pos) + --local n = minetest.env:get_node(pos) + local meta = minetest.env:get_meta(pos) + meta:set_string("formspec", "hack:sign_text_input") + meta:set_string("infotext", "\"${text}\"") + end, }) minetest.register_node("default:chest", { -- cgit v1.2.3