From dfd072586da10fc4f2854081800de25d3b2514f8 Mon Sep 17 00:00:00 2001 From: rudzik8 Date: Fri, 29 Apr 2022 16:23:05 +0700 Subject: [PATCH] Show Move to stand up notice as title in HUD --- init.lua | 2 ++ locale/mcl_cozy.ru.tr | 1 + locale/template.txt | 1 + mod.conf | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) 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