The problem isn't to show, but to receive_fields:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
on_punch = function(pos, node, player, pointed_thing)
formspec = "size[8,10]" ..
"field[channel;Channel;${channel}]" .. --set channel
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";paper; 3.5,4;1,1;]" .. --paper stack
"label[1,4;Paper]"..
"list[current_player;main;0,6;8,4;]"
minetest.show_formspec(player:get_player_name(), "formspec", formspec)
end,
so what must i change, that the node receives the data from the field? (that i can save the channel)