FancySprites

模组

· 作者 UserLog

用于在 GUI 和 HUD 中自定义动画精灵的客户端模组。

0 本站下载 0 关注 更新于 6 个月前

需要前置:Fabric API

最新 1.0.0 · 1.21.11 · Fabric

一键开服(送7天)

FancySprites

一个模组,允许你在 HUD 和 GUI(如物品栏)的容器上放置精灵图像——简单来说

An example of a sword sprite stuck in the inventory

fsprites/sword.mcmeta

{
  "enabled": true,
  "description": "Example of a sword-themed sprite - Log :3",
  "id": "sword",
  "gui": ["minecraft:inventory"],
  "anchor": "top_right",
  "z_index": 1,
  "pos": [200, -35],
  "scale": 0.22
}

在 fsprites/sword 目录中,包含图片 0.png Here's an example of a sword

有许多参数:

Property Type Default Description
enabled bool - 必填。 设置为 true 以加载精灵(但可以在菜单中启用或禁用精灵)
id string - 必填。 ID,也用作名称
visible bool true 精灵可见性
gui string or array of strings minecraft:* 目标 GUI;支持精确标识符、通配符和否定,例如 “!minecraft:game”
anchor string top_left 定位锚点
pos [x, y] [0, 0] 相对于锚点的位置偏移
rot int 0 旋转角度(度)
scale float 1.0 缩放因子
opacity float 1.0 透明度 (0.0–1.0)
z_index int 0 层级(正数=上方,负数=下方)
blend string normal 混合模式
fit string stretch 纹理缩放模式
width int/auto auto 精灵宽度
height int/auto auto 精灵高度
origin [x, y] [0, 0] 旋转/缩放的中心点
screen_space bool false 使用屏幕坐标而不是相对于 GUI 的坐标
animation object - 动画配置

关于 anchor

top_left     top     top_right
  left      center     right
bottom_left  bottom  bottom_right

关于 gui

minecraft:inventory              minecraft:chest
minecraft:creative_inventory     minecraft:large_chest
minecraft:furnace                minecraft:crafting_table
minecraft:anvil                  minecraft:enchanting_table
minecraft:beacon                 minecraft:brewing_stand
minecraft:dispenser              minecraft:hopper
minecraft:shulker_box            minecraft:barrel
minecraft:villager               minecraft:horse
minecraft:game                   minecraft:* (所有界面)

关于 blend

  • normal - Minecraft GUI 的标准 alpha 混合
  • 还有 additive, multiply, screen

动画缓动

  • none, linear, ease_in, ease_out, ease_in_out
  • bounce, elastic, step, smooth

在 ESC 菜单中,右下角有一个 FancySprites 按钮,用于打开模组菜单 Mod menu 在这里可以启用和禁用你制作的精灵

将所有精灵移动到 fsprites/ 目录中

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源