FigExtra

模组

· 作者 Furrc

为 Figura 设计的插件,大幅扩展了其在与其他模组集成时的功能

0 本站下载 0 关注 更新于 2 年前

需要前置:Figura

最新 0.5.1 · 1.20.6 · Fabric

一键开服(送7天)

RU

该插件提供了一种便捷的接口,用于将角色模型与流行的模组进行集成。

目前支持以下模组:

  • Plasmo Voice
  • Emotecraft

已在 1.20.1 版本中测试可用性,但预计在高版本中也能够正常运行。

示例:

emotecraft

emotes:getEmotes()

local listEmotes = emotes:getEmotes() -- 获取所有表情列表
for _, emote in ipairs(listEmotes) do
  emote:getUUID() -- 获取表情的 UUID
  emote:getName() -- 获取表情名称 
  emote:getDescription() -- 获取表情描述
  emote:getAuthor() -- 获取表情作者
  emote:isNsfw() -- 检查表情是否为 NSFW 内容
end

emotes:playEmote()

emotes:playEmote(stringUUID) -- 通过 UUID 播放表情

emotes:stopEmote()

emotes:stopEmote() -- 停止播放表情
plasmo voice

plasmovoice:getVoiceLevel()

plasmovoice:getVoiceLevel(stringUUID) -- 获取玩家语音音量 
-- 示例
function events.tick()
  local uuid = player:getUUID()
  local voiceLevel = plasmovoice:getVoiceLevel(uuid)
  if voiceLevel > 0 then
    log(voiceLevel)
  end
end
-- 也可以通过事件检测玩家是否在说话
events["FIGEXTRA.PLASMOVOICE_PLAYER_SPEAK"]:register(function(uuid, distance)
    
end, "microphone")

plasmovoice:isMuted()

plasmovoice:isMuted(stringUUID) -- 检查玩家是否被静音

plasmovoice:getVersion()

plasmovoice:getVersion() -- 获取 Plasmo Voice 的版本号

plasmovoice:renderDistanceVisualizer()

-- 我出于娱乐目的添加了此功能,也许有人能发现其有趣的应用场景
plasmovoice:renderDistanceVisualizer(radius, stringHex, x, y, z)

plasmovoice:renderDistanceVisualizer(radius, stringHex, vec(x, y, z))

中文

此插件为将 Figura 与流行模组结合提供了一个便捷的层。

目前支持以下模组:

  • Plasmo Voice
  • Emote Craft

工作性已在 1.20.1 版本上测试,但应在更高版本中也能正常工作。

示例:

Emote Craft

emotes:getEmotes()

local listEmotes = emotes:getEmotes() -- 获取所有表情列表
for _, emote in ipairs(listEmotes) do
  emote:getUUID() -- 获取表情的 UUID
  emote:getName() -- 获取表情名称 
  emote:getDescription() -- 获取表情描述
  emote:getAuthor() -- 获取表情作者
  emote:isNsfw() -- 检查该表情是否为 NSFW 内容
end

emotes:playEmote()

emotes:playEmote(stringUUID) -- 通过 UUID 播放表情

emotes:stopEmote()

emotes:stopEmote() -- 停止播放表情
Plasmo Voice

plasmovoice:getVoiceLevel()

plasmovoice:getVoiceLevel(stringUUID) -- 获取玩家语音音量 
-- 示例
function events.tick()
  local uuid = player:getUUID()
  local voiceLevel = plasmovoice:getVoiceLevel(uuid)
  if voiceLevel > 0 then
    log(voiceLevel)
  end
end
-- 也可以通过事件检测玩家是否正在说话 
events["FIGEXTRA.PLASMOVOICE_PLAYER_SPEAK"]:register(function(uuid, distance)
    
end, "microphone")

plasmovoice:isMuted()

plasmovoice:isMuted(stringUUID) -- 检查玩家是否被静音。

plasmovoice:getVersion()

plasmovoice:getVersion() -- 获取 Plasmo Voice 的版本号

plasmovoice:renderDistanceVisualizer()

-- 我出于娱乐目的添加了此功能,也许有人会发现其有趣的用途。
plasmovoice:renderDistanceVisualizer(radius, stringHex, x, y, z)

plasmovoice:renderDistanceVisualizer(radius, stringHex, vec(x, y, z))

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源