Merge branch 'master' into pandorabox
@ -5,4 +5,5 @@ moreores?
|
||||
pipeworks?
|
||||
intllib?
|
||||
protector?
|
||||
areas?
|
||||
areas?
|
||||
tubelib?
|
||||
|
41
technic_chests/locale/pl.txt
Normal file
@ -0,0 +1,41 @@
|
||||
# Polish Translation for technic_chests
|
||||
# Polskie tłumaczenie technic_chests
|
||||
# by mat9117
|
||||
|
||||
%s Chest = %s Skrzynia
|
||||
%s Locked Chest = %s Zamknięta skrzynia
|
||||
%s Locked Chest (owned by %s) = %s Zamknięta skrzynia (należy do %s)
|
||||
Color Filter: %s = Filtr kolorów: %s
|
||||
Edit chest description: = Edytuj opis skrzyni
|
||||
|
||||
# Colors
|
||||
Black = Czarny
|
||||
Blue = Niebieski
|
||||
Brown = Brązowy
|
||||
Cyan = Cyan
|
||||
Dark Green = Ciemnozielony
|
||||
Dark Grey = Ciemnoszary
|
||||
Green = Zielony
|
||||
Grey = Szary
|
||||
Magenta = Magenta
|
||||
Orange = Pomarańczowy
|
||||
Pink = Różowy
|
||||
Red = Czerwony
|
||||
Violet = Fioletowy
|
||||
White = Biały
|
||||
Yellow = Żółty
|
||||
None = Żaden
|
||||
|
||||
# Materials
|
||||
Copper = Miedziana
|
||||
Gold = Złota
|
||||
Iron = Żelazna
|
||||
Mithril = Mithrilowa
|
||||
Silver = Srebrna
|
||||
Wooden = Drewniana
|
||||
|
||||
# Sorting
|
||||
Sort = Sortuj
|
||||
Auto-sort is %s = Autosortowanie jest %s
|
||||
Off = Wyłaczone
|
||||
On = Włączone
|
3
technic_chests/mod.conf
Normal file
@ -0,0 +1,3 @@
|
||||
name=technic_chests
|
||||
depends=default,basic_materials
|
||||
optional_depends=moreblocks,moreores,pipeworks,intllib,tubelib
|
@ -2,6 +2,7 @@ local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
|
||||
local pipeworks = rawget(_G, "pipeworks")
|
||||
local fs_helpers = rawget(_G, "fs_helpers")
|
||||
local tubelib_exists = minetest.global_exists("tubelib")
|
||||
|
||||
local has_protector_mod = minetest.get_modpath("protector")
|
||||
|
||||
@ -363,6 +364,36 @@ function technic.chests:definition(name, data)
|
||||
return def
|
||||
end
|
||||
|
||||
local _TUBELIB_CALLBACKS = {
|
||||
on_pull_item = function(pos, side, player_name)
|
||||
if not minetest.is_protected(pos, player_name) then
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
for _, stack in pairs(inv:get_list("main")) do
|
||||
if not stack:is_empty() then
|
||||
return inv:remove_item("main", stack:get_name())
|
||||
end
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
on_push_item = function(pos, side, item, player_name)
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
if inv:room_for_item("main", item) then
|
||||
inv:add_item("main", item)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end,
|
||||
on_unpull_item = function(pos, side, item, player_name)
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
if inv:room_for_item("main", item) then
|
||||
inv:add_item("main", item)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end,
|
||||
}
|
||||
|
||||
function technic.chests:register(name, data)
|
||||
local def = technic.chests:definition(name, data)
|
||||
|
||||
@ -383,6 +414,10 @@ function technic.chests:register(name, data)
|
||||
|
||||
minetest.register_node(":"..nn, def)
|
||||
|
||||
if tubelib_exists then
|
||||
tubelib.register_node(nn, {}, _TUBELIB_CALLBACKS)
|
||||
end
|
||||
|
||||
if data.color then
|
||||
local mk_front
|
||||
if string.find(def.tiles[6], "%^") then
|
||||
@ -400,7 +435,9 @@ function technic.chests:register(name, data)
|
||||
colordef.groups = self.groups_noinv
|
||||
colordef.tiles = { def.tiles[1], def.tiles[2], def.tiles[3], def.tiles[4], def.tiles[5], mk_front("technic_chest_overlay"..postfix..".png") }
|
||||
minetest.register_node(":"..nn..postfix, colordef)
|
||||
if tubelib_exists then
|
||||
tubelib.register_node(nn..postfix, {}, _TUBELIB_CALLBACKS)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 605 B |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.3 KiB |