forked from mtcontrib/factions
commit
7a54c2e1db
@ -750,6 +750,10 @@ end
|
||||
)
|
||||
minetest.register_on_joinplayer(
|
||||
function(player)
|
||||
local faction = factions.get_player_faction(player:get_player_name())
|
||||
if faction then
|
||||
faction.last_logon = os.time()
|
||||
end
|
||||
end
|
||||
)
|
||||
minetest.register_on_respawnplayer(
|
||||
|
1
init.lua
1
init.lua
@ -22,6 +22,7 @@ factions_modpath = minetest.get_modpath("factions")
|
||||
|
||||
dofile (factions_modpath .. "/factions.lua")
|
||||
dofile (factions_modpath .. "/chatcommands.lua")
|
||||
dofile (factions_modpath .. "/nodes.lua")
|
||||
|
||||
factions.load()
|
||||
|
||||
|
7
nodes.lua
Normal file
7
nodes.lua
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
minetest.register_node("factions:chest", {
|
||||
tiles = {"factions_chest_top", "factions_chest_top",
|
||||
"factions_chest_side", "factions_chest_side",
|
||||
"factions_chest_side", "factions_chest_front"},
|
||||
})
|
||||
|
BIN
textures/factions_chest_front.png
Normal file
BIN
textures/factions_chest_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 720 B |
BIN
textures/factions_chest_side.png
Normal file
BIN
textures/factions_chest_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 646 B |
BIN
textures/factions_chest_top.png
Normal file
BIN
textures/factions_chest_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 705 B |
Loading…
Reference in New Issue
Block a user