mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-06-30 14:20:31 +02:00
Version MFF.
This commit is contained in:
8
wifi.lua
Normal file → Executable file
8
wifi.lua
Normal file → Executable 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)
|
||||
|
Reference in New Issue
Block a user