mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Merge 7992b0d81b
into 4b9914fdcb
This commit is contained in:
commit
85f489fd70
4 changed files with 52 additions and 0 deletions
|
@ -396,6 +396,15 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'default:chest_wifi',
|
||||||
|
recipe = {
|
||||||
|
{'group:wood','default:mese','group:wood'},
|
||||||
|
{'group:wood','default:steel_ingot','group:wood'},
|
||||||
|
{'group:wood','group:wood','default:wood'}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'default:furnace',
|
output = 'default:furnace',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -1413,6 +1422,38 @@ minetest.register_node("default:chest_locked", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:chest_wifi", {
|
||||||
|
description = "Wifi Chest",
|
||||||
|
tiles = {"default_chest_wifi_top.png", "default_chest_wifi_top.png", "default_chest_wifi_side.png",
|
||||||
|
"default_chest_wifi_side.png", "default_chest_wifi_side.png",
|
||||||
|
{name="default_chest_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},
|
||||||
|
legacy_facedir_simple = true,
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
on_construct = function(pos)
|
||||||
|
local meta = minetest.env:get_meta(pos)
|
||||||
|
meta:set_string("formspec",
|
||||||
|
"size[8,9]"..
|
||||||
|
"list[current_player;default:chest_wifi;0,0;8,4;]"..
|
||||||
|
"list[current_player;main;0,5;8,4;]")
|
||||||
|
meta:set_string("infotext", "Wifi Chest")
|
||||||
|
end,
|
||||||
|
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
|
minetest.log("action", player:get_player_name()..
|
||||||
|
" moves stuff in wifi chest at "..minetest.pos_to_string(pos))
|
||||||
|
end,
|
||||||
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
|
minetest.log("action", player:get_player_name()..
|
||||||
|
" moves stuff to wifi chest at "..minetest.pos_to_string(pos))
|
||||||
|
end,
|
||||||
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
|
minetest.log("action", player:get_player_name()..
|
||||||
|
" takes stuff from wifi chest at "..minetest.pos_to_string(pos))
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
default.furnace_inactive_formspec =
|
default.furnace_inactive_formspec =
|
||||||
"size[8,9]"..
|
"size[8,9]"..
|
||||||
"image[2,2;1,1;default_furnace_fire_bg.png]"..
|
"image[2,2;1,1;default_furnace_fire_bg.png]"..
|
||||||
|
@ -1761,6 +1802,17 @@ minetest.register_craftitem("default:scorched_stuff", {
|
||||||
inventory_image = "default_scorched_stuff.png",
|
inventory_image = "default_scorched_stuff.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("default:obsidian_shard", {
|
||||||
|
description = "Obsidian Shard",
|
||||||
|
inventory_image = "default_obsidian_shard.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Wifi stuff
|
||||||
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
local inv = player:get_inventory()
|
||||||
|
inv:set_size("default:chest_wifi", 8*4)
|
||||||
|
end)
|
||||||
|
|
||||||
-- Support old code
|
-- Support old code
|
||||||
function default.spawn_falling_node(p, nodename)
|
function default.spawn_falling_node(p, nodename)
|
||||||
spawn_falling_node(p, nodename)
|
spawn_falling_node(p, nodename)
|
||||||
|
|
BIN
mods/default/textures/default_chest_wifi_front_animated.png
Normal file
BIN
mods/default/textures/default_chest_wifi_front_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 462 B |
BIN
mods/default/textures/default_chest_wifi_side.png
Normal file
BIN
mods/default/textures/default_chest_wifi_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 B |
BIN
mods/default/textures/default_chest_wifi_top.png
Normal file
BIN
mods/default/textures/default_chest_wifi_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 239 B |
Loading…
Add table
Reference in a new issue