Compatibility
Minecraft: Java Edition
1.21–1.21.4
1.20.4
1.20.1
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed LGPL-2.1-only
Published last year
Updated 2 months ago
FiguraSVC
A unofficial addon for Figura that allows Simple Voice Chat to be detected by Figura Lua scripts.
DOCUMENTATION
Wiki will come soon!
Example Script
-- Example talking animation
local microphoneOffTime = 0
local isMicrophoneOn = false
function pings.talking(state)
-- (safe on servers) (visible to everyone)
animations.model.talk:setPlaying(state)
end
function events.tick()
local previousMicState = isMicrophoneOn
microphoneOffTime = microphoneOffTime + 1
isMicrophoneOn = microphoneOffTime <= 2 -- has svc.microphone been called in the past 2 ticks?
if previousMicState ~= isMicrophoneOn then
pings.talking(isMicrophoneOn)
end
end
if client:isModLoaded("figurasvc") and host:isHost() then
function events.HOST_MICROPHONE(pcm)
microphoneOffTime = 0
end
end