Compare commits

...

2 Commits

Author SHA1 Message Date
74506315b5
remove comment 2023-06-27 23:45:29 -04:00
36ab666e50
add kitty sounds to some events :3
- hurt
- chat (meow)
2023-06-27 23:43:20 -04:00

View File

@ -21,7 +21,7 @@ statemonitor=require("nulllib.statemonitor")
---Set optimal settings for random player sounds
---@param sound Sound
---@return Sound
local function sound_settings(sound)
function sound_settings(sound)
return sound:volume(1):pitch(1):pos(player:getPos())
end
@ -60,7 +60,6 @@ do
end
-- }}}
-- so is this
-- Master configuration -- {{{
-- master state variables and configuration (do not access within pings) --
@ -75,7 +74,8 @@ do
["vanilla_partial"]=false,
["tail_enabled"]=true,
["aquatic_enabled"]=true,
["aquatic_override"]=false
["aquatic_override"]=false,
["is_cat"]=true
}
sharedconfig.load_defaults(defaults)
end
@ -309,6 +309,8 @@ do
end
function hurt()
if sharedconfig.load("is_cat") then
sound_settings(sounds["entity.cat.hurt"]):play() end
lock_color=false
changeExpression("hurt", 10)
lock_color=true
@ -412,6 +414,15 @@ do
end
-- meow
function pings.meow()
sound_settings(sounds["entity.cat.ambient"]):play()
end
events.CHAT_SEND_MESSAGE:register(function(msg)
if sharedconfig.load("is_cat") then pings.meow() end
return msg end,
"chat_meow")
--- Toggle Vanilla ---
function setVanilla(state)
sharedconfig.save("vanilla_enabled", state)