Compare commits
No commits in common. "74506315b5a4d99b3304ef1434fcf179c8f46e13" and "61bd9a30fb33efc3ea569dbbede81d6583db2f44" have entirely different histories.
74506315b5
...
61bd9a30fb
17
script.lua
17
script.lua
@ -21,7 +21,7 @@ statemonitor=require("nulllib.statemonitor")
|
||||
---Set optimal settings for random player sounds
|
||||
---@param sound Sound
|
||||
---@return Sound
|
||||
function sound_settings(sound)
|
||||
local function sound_settings(sound)
|
||||
return sound:volume(1):pitch(1):pos(player:getPos())
|
||||
end
|
||||
|
||||
@ -60,6 +60,7 @@ do
|
||||
end
|
||||
-- }}}
|
||||
|
||||
-- so is this
|
||||
-- Master configuration -- {{{
|
||||
|
||||
-- master state variables and configuration (do not access within pings) --
|
||||
@ -74,8 +75,7 @@ do
|
||||
["vanilla_partial"]=false,
|
||||
["tail_enabled"]=true,
|
||||
["aquatic_enabled"]=true,
|
||||
["aquatic_override"]=false,
|
||||
["is_cat"]=true
|
||||
["aquatic_override"]=false
|
||||
}
|
||||
sharedconfig.load_defaults(defaults)
|
||||
end
|
||||
@ -309,8 +309,6 @@ 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
|
||||
@ -414,15 +412,6 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user