Wiki 9Minecraft Wiki 9Minecraft

How to Add Custom Animations and Actions with Lua Scripting

Beyond basic walking and idle movements, No Figura Mod includes Lua scripting support. This optional feature lets you control when custom animations play and allows you to build unique character actions that react to what you do in the game.

Setting Up a Scripted Avatar

You do not need to write a script if you only want a static 3D model or basic Blockbench animations. However, if you want to trigger specific poses or unique visual effects on command, you can attach a Lua script to your avatar package.

1. Open the directory containing your custom Blockbench model files.

2. Create or add a Lua script file alongside your model and animation assets.

3. Use the script controls to link your Blockbench animations to specific player states or custom triggers.

Testing Scripted Actions in Game

After saving changes to your Lua script, reload your avatar through the in-game mod menu. Trigger the actions you defined to confirm the animations play smoothly. Because scripts run alongside the avatar system, any other player who can see your custom model will also see your scripted animations and actions happen in real time.

Join 9Minecraft News & Guides