Color tweaks

This commit is contained in:
Elias Fleckenstein 2020-12-22 10:42:22 +01:00
parent e152e346ea
commit 3161668d26
2 changed files with 5 additions and 2 deletions

View File

@ -180,7 +180,7 @@ minetest.register_on_joinplayer(function(player)
{ {
hud_elem_type = "text", position = {x=0.5, y=1}, hud_elem_type = "text", position = {x=0.5, y=1},
name = "xp_level", text = tostring(temp_pool.level), name = "xp_level", text = tostring(temp_pool.level),
number = 0xFFFFFF, number = 0x80FF20,
offset = {x = 0, y = -(48 + 24 + 24)}, offset = {x = 0, y = -(48 + 24 + 24)},
z_index = 12, z_index = 12,
}) })
@ -401,6 +401,8 @@ local function xp_step(self, dtime)
end end
if xp > 0 then if xp > 0 then
mcl_experience.add_experience(collector, xp) mcl_experience.add_experience(collector, xp)
else
minetest.sound_play("experience",{gain=0.1,to_player = name,pitch=math.random(75,99)/100})
end end
self.object:remove() self.object:remove()
end end

View File

@ -8,7 +8,8 @@ mcl_enchanting = {
book_animation_speed = 40, book_animation_speed = 40,
roman_numerals = dofile(modpath .. "/roman_numerals.lua"), -- https://exercism.io/tracks/lua/exercises/roman-numerals/solutions/73c2fb7521e347209312d115f872fa49 roman_numerals = dofile(modpath .. "/roman_numerals.lua"), -- https://exercism.io/tracks/lua/exercises/roman-numerals/solutions/73c2fb7521e347209312d115f872fa49
enchantments = {}, 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"}, enchanting_lists = {"enchanting", "enchanting_item", "enchanting_lapis"},
bookshelf_positions = { bookshelf_positions = {
{x = -2, y = 0, z = -2}, {x = -2, y = 1, z = -2}, {x = -2, y = 0, z = -2}, {x = -2, y = 1, z = -2},