mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-27 09:20:17 +02:00
Version MFF.
This commit is contained in:
14
homedecor/trash_cans.lua
Normal file → Executable file
14
homedecor/trash_cans.lua
Normal file → Executable file
@ -1,5 +1,4 @@
|
||||
|
||||
local S = homedecor_i18n.gettext
|
||||
local S = homedecor.gettext
|
||||
|
||||
local tg_cbox = {
|
||||
type = "fixed",
|
||||
@ -11,8 +10,8 @@ homedecor.register("trash_can_green", {
|
||||
mesh = "homedecor_trash_can_green.obj",
|
||||
tiles = { "homedecor_pool_table_baize.png" },
|
||||
inventory_image = "homedecor_trash_can_green_inv.png",
|
||||
description = S("Green Trash Can"),
|
||||
groups = {snappy=3},
|
||||
description = "Trash Can (green)",
|
||||
groups = {snappy=3},
|
||||
selection_box = tg_cbox,
|
||||
collision_box = tg_cbox,
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
@ -31,14 +30,13 @@ homedecor.register("trash_can_green_open", {
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2})
|
||||
end,
|
||||
infotext=S("Trash Can"),
|
||||
infotext="Trash Can",
|
||||
inventory= {
|
||||
size = 9,
|
||||
formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots ..
|
||||
"button[2.5,3.8;3,1;empty;Empty Trash]"..
|
||||
"list[context;main;2.5,0.5;3,3;]"..
|
||||
"list[current_player;main;0,5;8,4;]" ..
|
||||
"listring[]",
|
||||
"list[current_player;main;0,5;8,4;]",
|
||||
},
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
if fields.empty then
|
||||
@ -59,7 +57,7 @@ homedecor.register("trash_can", {
|
||||
mesh = "homedecor_trash_can.obj",
|
||||
tiles = { "homedecor_trash_can.png" },
|
||||
inventory_image = "homedecor_trash_can_inv.png",
|
||||
description = S("Small Trash Can"),
|
||||
description = "Trash Can (small)",
|
||||
groups = {snappy=3},
|
||||
selection_box = trash_cbox,
|
||||
collision_box = trash_cbox,
|
||||
|
Reference in New Issue
Block a user