forked from mtcontrib/homedecor_modpack
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
20
inbox/.luacheckrc
Normal file
20
inbox/.luacheckrc
Normal file
@ -0,0 +1,20 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_comment_line_length = 999
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"unpack",
|
||||
"dump",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"default",
|
||||
"screwdriver",
|
||||
}
|
||||
|
||||
globals = {
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
default
|
||||
homedecor_common
|
||||
screwdriver?
|
@ -1,8 +1,6 @@
|
||||
|
||||
local S = homedecor.gettext
|
||||
local S = minetest.get_translator("inbox")
|
||||
|
||||
local inbox = {}
|
||||
local screwdriver = rawget(_G, "screwdriver") or {}
|
||||
|
||||
minetest.register_craft({
|
||||
output ="inbox:empty",
|
||||
@ -34,7 +32,7 @@ minetest.register_node("inbox:empty", {
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2,oddly_breakable_by_hand=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rotate = screwdriver.rotate_simple,
|
||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local owner = placer:get_player_name()
|
||||
@ -97,7 +95,7 @@ minetest.register_node("inbox:empty", {
|
||||
local owner = meta:get_string("owner")
|
||||
if player:get_player_name() == owner or
|
||||
minetest.check_player_privs(player, "protection_bypass") and
|
||||
clicker:get_player_control().aux1 then
|
||||
player:get_player_control().aux1 then
|
||||
return stack:get_count()
|
||||
end
|
||||
return 0
|
||||
|
7
inbox/locale/inbox.de.tr
Normal file
7
inbox/locale/inbox.de.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Briefkasten von @1
|
||||
Mailbox=Briefkasten
|
7
inbox/locale/inbox.es.tr
Normal file
7
inbox/locale/inbox.es.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Buzón de @1
|
||||
Mailbox=Buzón
|
7
inbox/locale/inbox.fr.tr
Normal file
7
inbox/locale/inbox.fr.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Boîte aux lettres de @1
|
||||
Mailbox=Boîte aux lettres
|
7
inbox/locale/inbox.ms.tr
Normal file
7
inbox/locale/inbox.ms.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Peti Surat @1
|
||||
Mailbox=Peti Surat
|
7
inbox/locale/inbox.pt.tr
Normal file
7
inbox/locale/inbox.pt.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Correio de @1
|
||||
Mailbox=Correio
|
7
inbox/locale/inbox.pt_BR.tr
Normal file
7
inbox/locale/inbox.pt_BR.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Correio de @1
|
||||
Mailbox=Correio
|
7
inbox/locale/inbox.ru.tr
Normal file
7
inbox/locale/inbox.ru.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=Почтовый ящик @1
|
||||
Mailbox=Почтовый ящик
|
7
inbox/locale/inbox.zh_CN.tr
Normal file
7
inbox/locale/inbox.zh_CN.tr
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=@1的邮箱
|
||||
Mailbox=邮箱
|
7
inbox/locale/template.txt
Normal file
7
inbox/locale/template.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# textdomain: inbox
|
||||
|
||||
|
||||
### init.lua ###
|
||||
|
||||
@1's Mailbox=
|
||||
Mailbox=
|
3
inbox/mod.conf
Normal file
3
inbox/mod.conf
Normal file
@ -0,0 +1,3 @@
|
||||
name = inbox
|
||||
depends = default, homedecor_common
|
||||
optional_depends = screwdriver
|
Reference in New Issue
Block a user