CrashPanel

EXPERIMENTAL

Guide > CrashBlock > Animated Custom Blocks

Complete Guide to Creating Animated Blocks on CrashPanel

Introduction

This guide will walk you through the step-by-step process of creating custom, animated blocks for your Minecraft server using the CrashPanel.


Prerequisites

  • CrashBlock: Make sure you have also installed the CrashBlock plugin, which is essential for creating custom blocks.

Creating a Custom Model

  • Model Editor: Access the CrashPanel Model Editor. Here you will create the custom model of your block. See the dedicated guide.
    • Defining poses: Define the different poses your model can take. Each pose will correspond to a different animation.
    • Saving: Once you have completed the model, save it and remember the assigned UUID. This ID will be crucial for linking the model to your block.

Creating a Custom Block

  1. Access: In the CrashPanel dashboard, go to the Custom Blocks section.
  2. New block: Click CREATE to create a new custom block.
  3. Block properties:
    • Custom Model: Enable this option and enter the ID of the previously created model in the Custom Model UUID field.
    • Saving: Save your changes.

Animating the Block

  1. Script Editor: Access the Script Editor associated with your block.
  2. Writing the script: Use nodes to define the animations.
    • CrashBlock Model node: This node allows you to access the Custom Model.
    • Set Model Pose node: This node allows you to set a specific pose for the model.
  3. Script examples:
    • Periodic pose change
    • Pose change on interaction

Obtaining the Block in-game

  • Command: Use the command /crashblock (or /cb) to obtain your custom block in the game world.

Tips

  • Item Custom: Change the item used to place the block. See the dedicated guide [INCOMPLETE].
  • Custom Model Module [complex]:
    • Use the Custom Model Module of the Custom Block to set a model to the item.
    • Remember to use the ID of the Custom Block in the Model Editor to avoid duplicate files.

via GIPHY