Rimozione profilo e trofei
parent
9e75f97772
commit
261067cb21
6
api.lua
6
api.lua
|
@ -12,15 +12,15 @@ function hub_manager.set_items(player)
|
|||
nil,
|
||||
nil,
|
||||
nil,
|
||||
"hub_manager:profile",
|
||||
"hub_manager:achievements",
|
||||
nil,
|
||||
nil,
|
||||
"hub_manager:settings"
|
||||
}
|
||||
|
||||
local additional_items = hub_manager.get_additional_items()
|
||||
|
||||
-- eventuali oggetti aggiuntivi
|
||||
for i = 1, 5 do
|
||||
for i = 1, 7 do
|
||||
hotbar_items[i] = additional_items[i]
|
||||
end
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ hub_spawn_point = -3.5, 3.0, -20.5
|
|||
3=
|
||||
4=
|
||||
5=
|
||||
6=
|
||||
7=
|
||||
|
||||
# physics overrides while in the lobby
|
||||
speed=1
|
||||
|
|
1
init.lua
1
init.lua
|
@ -1,6 +1,7 @@
|
|||
local version = "0.1.0-dev"
|
||||
|
||||
dofile(minetest.get_modpath("hub_manager") .. "/api.lua")
|
||||
dofile(minetest.get_modpath("hub_manager") .. "/chatcmdbuilder.lua")
|
||||
dofile(minetest.get_modpath("hub_manager") .. "/commands.lua")
|
||||
dofile(minetest.get_modpath("hub_manager") .. "/items.lua")
|
||||
dofile(minetest.get_modpath("hub_manager") .. "/load_config.lua")
|
||||
|
|
32
items.lua
32
items.lua
|
@ -2,38 +2,6 @@ local S = minetest.get_translator("hub_manager")
|
|||
|
||||
|
||||
|
||||
minetest.register_tool("hub_manager:profile", {
|
||||
|
||||
description = S("Profile"),
|
||||
inventory_image = "hubmanager_profile.png",
|
||||
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
|
||||
on_place = function() end,
|
||||
on_drop = function() end,
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.chat_send_player(user:get_player_name(), "Coming soon")
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_tool("hub_manager:achievements", {
|
||||
|
||||
description = S("Achievements"),
|
||||
inventory_image = "hubmanager_achievements.png",
|
||||
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
|
||||
on_place = function() end,
|
||||
on_drop = function() end,
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.chat_send_player(user:get_player_name(), "Coming soon")
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_tool("hub_manager:settings", {
|
||||
|
||||
description = S("Settings"),
|
||||
|
|
|
@ -9,12 +9,12 @@ local additional_items = {}
|
|||
local physics = {}
|
||||
|
||||
-- oggetti
|
||||
for i = 3, 7 do
|
||||
for i = 3, 9 do
|
||||
additional_items[i-2] = string.match(data[i], "=(.*)")
|
||||
end
|
||||
|
||||
-- fisica
|
||||
for i = 9, 11 do
|
||||
for i = 11, 13 do
|
||||
physics[string.match(data[i], "(.*)=")] = tonumber(string.match(data[i], "=(.*)"))
|
||||
end
|
||||
|
||||
|
|
|
@ -4,6 +4,4 @@
|
|||
# textdomain: hub_manager
|
||||
|
||||
# items.lua
|
||||
Profile=Perfil
|
||||
Achievements=Logros
|
||||
Settings=Configuraciones
|
|
@ -4,8 +4,6 @@
|
|||
# textdomain: hub_manager
|
||||
|
||||
# items.lua
|
||||
Profile=Profilo
|
||||
Achievements=Trofei
|
||||
Settings=Impostazioni
|
||||
|
||||
# commands.lua
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# textdomain: hub_manager
|
||||
|
||||
# items.lua
|
||||
Profile=
|
||||
Achievements=
|
||||
Settings=
|
||||
|
||||
# commands.lua
|
||||
|
|
|
@ -17,9 +17,6 @@ end)
|
|||
|
||||
minetest.register_on_player_hpchange(function(player, hp_change, reason)
|
||||
|
||||
reason = reason.type
|
||||
minetest.chat_send_player("singleplayer", reason)
|
||||
|
||||
-- se non è in arena, disabilito danno da caduta, da affogamento e PvP
|
||||
if not arena_lib.is_player_in_arena(player:get_player_name()) and (reason == "fall" or reason == "punch" or reason == "drown") then
|
||||
return 0
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 201 B |
Binary file not shown.
Before Width: | Height: | Size: 161 B |
Loading…
Reference in New Issue