aboutsummaryrefslogtreecommitdiff
path: root/description.txt
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2020-12-27 15:24:52 +0100
committerywang <yw05@forksworld.de>2020-12-27 15:24:52 +0100
commit846e688200dd9367df29b5407a783ec39ecc5669 (patch)
treeda3cb608dcfa8b4f2ba658e21af7423bb831ea7e /description.txt
parentb74fc92f81f8b80625fc0678d04dc14a24b51ab2 (diff)
Add demo
Diffstat (limited to 'description.txt')
0 files changed, 0 insertions, 0 deletions
ss="hl opt">, on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", "size[8,9]".. "list[current_name;main;0,0;8,4;]".. "list[current_player;main;0,5;8,4;]" .. "listring[]") meta:set_string("infotext", "Chest") local inv = meta:get_inventory() inv:set_size("main", 8*4) end, can_dig = function(pos,player) local meta = minetest.get_meta(pos); local inv = meta:get_inventory() return inv:is_empty("main") end, allow_metadata_inventory_put = function(pos, listname, index, stack, player) minetest.chat_send_player(player:get_player_name(), "Allow put: " .. stack:to_string()) return stack:get_count() end, allow_metadata_inventory_take = function(pos, listname, index, stack, player) minetest.chat_send_player(player:get_player_name(), "Allow take: " .. stack:to_string()) return stack:get_count() end, on_metadata_inventory_put = function(pos, listname, index, stack, player) minetest.chat_send_player(player:get_player_name(), "On put: " .. stack:to_string()) end, on_metadata_inventory_take = function(pos, listname, index, stack, player) minetest.chat_send_player(player:get_player_name(), "On take: " .. stack:to_string()) end, })