From 3161668d26eb42d991ba0b859a466ab81b9d4aa3 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 22 Dec 2020 10:42:22 +0100 Subject: [PATCH] Color tweaks --- mods/HUD/mcl_experience/init.lua | 4 +++- mods/ITEMS/mcl_enchanting/init.lua | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/HUD/mcl_experience/init.lua b/mods/HUD/mcl_experience/init.lua index 1186ad45e..0043c05ca 100644 --- a/mods/HUD/mcl_experience/init.lua +++ b/mods/HUD/mcl_experience/init.lua @@ -180,7 +180,7 @@ minetest.register_on_joinplayer(function(player) { hud_elem_type = "text", position = {x=0.5, y=1}, name = "xp_level", text = tostring(temp_pool.level), - number = 0xFFFFFF, + number = 0x80FF20, offset = {x = 0, y = -(48 + 24 + 24)}, z_index = 12, }) @@ -401,6 +401,8 @@ local function xp_step(self, dtime) end if xp > 0 then mcl_experience.add_experience(collector, xp) + else + minetest.sound_play("experience",{gain=0.1,to_player = name,pitch=math.random(75,99)/100}) end self.object:remove() end diff --git a/mods/ITEMS/mcl_enchanting/init.lua b/mods/ITEMS/mcl_enchanting/init.lua index f5b5b8644..2d4d33dae 100644 --- a/mods/ITEMS/mcl_enchanting/init.lua +++ b/mods/ITEMS/mcl_enchanting/init.lua @@ -8,7 +8,8 @@ mcl_enchanting = { book_animation_speed = 40, roman_numerals = dofile(modpath .. "/roman_numerals.lua"), -- https://exercism.io/tracks/lua/exercises/roman-numerals/solutions/73c2fb7521e347209312d115f872fa49 enchantments = {}, - overlay = "^[colorize:white:50^[colorize:purple:50", + overlay = "^[colorize:purple:50", + --overlay = "^[invert:rgb^[multiply:#4df44d:50^[invert:rgb", enchanting_lists = {"enchanting", "enchanting_item", "enchanting_lapis"}, bookshelf_positions = { {x = -2, y = 0, z = -2}, {x = -2, y = 1, z = -2},