diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-01 19:03:09 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | f3ec1452cdf73d62f38b0222dcbf8bc78293206d (patch) | |
tree | 672590b40a0a0e825468107ee2563ff5e6bf48ba /games/minimal/mods | |
parent | 29f03756bd7494ee6ceffd555c3b93a19295324d (diff) | |
download | minetest-f3ec1452cdf73d62f38b0222dcbf8bc78293206d.tar.gz minetest-f3ec1452cdf73d62f38b0222dcbf8bc78293206d.tar.bz2 minetest-f3ec1452cdf73d62f38b0222dcbf8bc78293206d.zip |
Random node metadata things
Diffstat (limited to 'games/minimal/mods')
-rw-r--r-- | games/minimal/mods/default/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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", { |