Version MFF.

This commit is contained in:
sys4-fr
2018-09-08 13:13:11 +02:00
parent a25aa062c6
commit f1f4dffcb1
19 changed files with 51 additions and 121 deletions

8
wifi.lua Normal file → Executable file
View File

@ -5,15 +5,17 @@ minetest.register_node("more_chests:wifi", {
{name="wifi_front_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}
},
paramtype2 = "facedir",
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"size[8,9]"..
"list[current_player;more_chests:wifi;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]")
"list[current_player;main;0,5;8,4;]"..
"listring[current_player;more_chests:wifi]" ..
"listring[current_player;main]")
meta:set_string("infotext", "Wifi Chest")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)