diff --git a/init.lua b/init.lua index 720f877..74c00ee 100644 --- a/init.lua +++ b/init.lua @@ -32,6 +32,7 @@ minetest.register_chatcommand("sit", { player:set_physics_override(0, 0, 0) mcl_player.player_attached[name] = true mcl_player.player_set_animation(player, "sit", 30) + mcl_title.set(player, "actionbar", {text=S("Move to stand up"), color="white", stay=60}) end end }) @@ -50,6 +51,7 @@ minetest.register_chatcommand("lay", { player:set_physics_override(0, 0, 0) mcl_player.player_attached[name] = true mcl_player.player_set_animation(player, "lay", 0) + mcl_title.set(player, "actionbar", {text=S("Move to stand up"), color="white", stay=60}) end end }) diff --git a/locale/mcl_cozy.ru.tr b/locale/mcl_cozy.ru.tr index c01f20b..ffbfb8e 100644 --- a/locale/mcl_cozy.ru.tr +++ b/locale/mcl_cozy.ru.tr @@ -1,3 +1,4 @@ # textdomain: mcl_cozy Sit down=Сесть Lay down=Лечь +Move to stand up=Двиньтесь чтобы встать diff --git a/locale/template.txt b/locale/template.txt index 268ae8a..15315df 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,3 +1,4 @@ # textdomain: mcl_cozy Sit down= Lay down= +Move to stand up= diff --git a/mod.conf b/mod.conf index 1ecabcd..deba823 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = mcl_cozy description = Sit and lay using chat commands -depends = mcl_player +depends = mcl_player, mcl_title