Wiki 9Minecraft Wiki 9Minecraft

How to Add Output Slot Animations Using a Data Pack

You can add output slot animations to any custom screen or modded container by creating a simple data pack using the screen class name and slot indexes found with the debug window.

Setting Up the Data Pack Folders

1. Navigate to your world's datapacks folder.

2. Create a new root folder for your pack (alongside a standard pack.mcmeta file) and set up the following directory path inside it:

"Any Name"/data/"mod id"/window_slots/

3. Inside the window_slots folder, create a new JSON file named "name".json (giving it any descriptive filename you prefer).

Writing the JSON Configuration

Open your new JSON file in a text editor and define the target screen and its output slots:

1. Set the name key to the exact screen class name you recorded from the debug overlay.

2. Create an output_slots array and enter the slot index numbers that act as output slots for that screen.

`json

{

"name": "your.screen.ClassName",

"output_slots": [0]

}

`

Applying Your Changes

Save the JSON file, then either run /reload in your active world or relaunch the world from the main menu. Open the target container to verify that the custom slot motion effects now trigger properly.

Join 9Minecraft News & Guides