FigExtra - Extended Integration for Figura
This addon serves as a universal bridge between the Figura mod and other popular modifications, significantly expanding their combined functionality.
Supported Mods
Currently implemented compatibility with the following modifications:
- Plasmo Voice
- EmoteCraft
Testing was conducted on Minecraft version 1.20.1, but the addon should work correctly on newer game versions as well.
Usage Examples
EmoteCraft
emotes:getEmotes()
local listEmotes = emotes:getEmotes() -- get a list of all available emotions
for _, emote in ipairs(listEmotes) do
emote:getUUID() -- get the unique identifier of the emotion
emote:getName() -- get the name of the emotion
emote:getDescription() -- get the description of the emotion
emote:getAuthor() -- get the author of the emotion
emote:isNsfw() -- check if the emotion belongs to the NSFW category
end
emotes:playEmote()
emotes:playEmote(stringUUID) -- play an emotion by unique identifier
emotes:stopEmote()
emotes:stopEmote() -- stop playing the current emotion
Plasmo Voice
plasmovoice:getVoiceLevel()
plasmovoice:getVoiceLevel(stringUUID) -- determine the player's voice volume
-- practical example
function events.tick()
local uuid = player:getUUID()
local voiceLevel = plasmovoice:getVoiceLevel(uuid)
if voiceLevel > 0 then
log(voiceLevel)
end
end
-- alternative way to check player activity through events
events["FIGEXTRA.PLASMOVOICE_PLAYER_SPEAK"]:register(function(uuid, distance)
end, "microphone")
plasmovoice:isMuted()
plasmovoice:isMuted(stringUUID) -- check if the player's microphone is muted
plasmovoice:getVersion()
plasmovoice:getVersion() -- get information about the Plasmo Voice version
plasmovoice:renderDistanceVisualizer()
-- experimental function for distance visualization
plasmovoice:renderDistanceVisualizer(radius, stringHex, x, y, z)
plasmovoice:renderDistanceVisualizer(radius, stringHex, vec(x, y, z))