mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Random node metadata things
This commit is contained in:
parent
29f03756bd
commit
f3ec1452cd
3 changed files with 6 additions and 7 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue