此模组允许你使用基础脚本创建一些酷炫的动画。它同样适用于多人游戏!(其他玩家要看到你的动画,需要在服务器上安装此模组)
所有可加载的脚本必须在 .minecraft/animations/ 文件夹中声明。
当前扩展名为 .fa,因此所有文件应命名为 <readable name>.fa。
在文件头部声明此动画的名称,该名称将显示在游戏内 GUI(默认菜单快捷键为 G)中。
name=my awesome animation
接下来,你可以声明动画在行走时是否应该被中断,只需添加 interruptible 即可。
无论在哪里声明,这都会影响整个动画。
还有一个 resetarms 选项,可以在你的帧处理过程中移除待机动画,其声明规则与上述相同。
name=my awesome animation
interruptible
resetarms
现在来实际做一些操作,概念非常简单:
存在一个以 frame <持续时长(以刻为单位)> 声明的帧,随后是描述该帧内实际发生内容的命令。
当帧运行时,它会在每次渲染玩家时执行你在其中设置的指令。
以下是你可以设置的变量列表:
HEAD_X
HEAD_Y
HEAD_Z
HAT_X
HAT_Y
HAT_Z
BODY_X
BODY_Y
BODY_Z
RIGHTARM_X
RIGHTARM_Y
RIGHTARM_Z
LEFTARM_X
LEFTARM_Y
LEFTARM_Z
RIGHTLEG_X
RIGHTLEG_Y
RIGHTLEG_Z
LEFTLEG_X
LEFTLEG_Y
LEFTLEG_Z
CAPE_X
CAPE_Y
CAPE_Z
大写字母不是必须的,下划线也可以替换为点号。 你可以将这些值设置为任意你希望的浮点数值。
以下是一个简单的举手动画示例,持续时间为 5 秒:
name=my awesome animation
interruptible
frame 100
rightarm_x=-2.8
leftarm_x=-2.8
建议在所有帧的指令前添加空格,这样可以提高可读性。
编写完脚本后,你可以返回游戏并点击编辑按钮进入编辑模式,然后选择要设置动画的槽位,并从列表中选择该动画。
This mod allows you to create some cool animations using basic scripts. This also works in mp! (mod needs to be installed on server for others to see your animations)
All loadable scripts must be declared in .minecraft/animations/ folder.
Current extension is .fa, so all files should be named <readable name>.fa.
In the head of file you declare the name of this animation, this is what will be displayed in the ingame GUI (menu defaults to G).
name=my awesome animation
Next you can declare if animation should be interrupted while walking, for that simply just add interruptible.
That will affect the whole animation no matter where it was declared.
There is also resetarms that removes idle animation while your frames are in process, declaration rules are the same.
name=my awesome animation
interruptible
resetarms
Now to actually do stuff the concept if very simple:
There is a frame that is declared with frame <duration in ticks> and then comes the actual commands that describe what happens during the frame.
When frame runs it executes the instructions you've set in it every time it renders player.
Here is the list of what you can set:
HEAD_X
HEAD_Y
HEAD_Z
HAT_X
HAT_Y
HAT_Z
BODY_X
BODY_Y
BODY_Z
RIGHTARM_X
RIGHTARM_Y
RIGHTARM_Z
LEFTARM_X
LEFTARM_Y
LEFTARM_Z
RIGHTLEG_X
RIGHTLEG_Y
RIGHTLEG_Z
LEFTLEG_X
LEFTLEG_Y
LEFTLEG_Z
CAPE_X
CAPE_Y
CAPE_Z
Caps is not required, underscore can also be replaced with a dot. You can set those values to any float values you want.
So here is an example for a simple hands up animation that will last 5 seconds:
name=my awesome animation
interruptible
frame 100
rightarm_x=-2.8
leftarm_x=-2.8
I recommend to add a space before instructions in all frames because that imporves readability.
After you wrote the script you can come back to your game and click edit button to enter edit mode, then select slot you want to set animation in and select the animation from list.
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
下载 Frame Animation
- 在文件选择菜单中添加了重新加载按钮。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧