RockyHawk Wiki
Search…
Animations+
Animations for CommandPanels

How to animate an item

To animate an item, you will need to add the following to the top of your panel like so (on the bottom line):
1
panels:
2
animationTester:
3
perm: default
4
rows: 1
5
title: '&aTesting Animations'
6
empty: BLACK_STAINED_GLASS_PANE
7
animatevalue: 6 <-- ADD THIS
Copied!
If the number is 6 for example, it will loop from 0 to 6, so animations will be split into 6 stages for this example. To change the speed that it loops through 0 to 6, that will be found in the main config.yml as "refresh-delay".
1
item:
2
'2':
3
material: BARRIER
4
name: This is the default item
5
animate0:
6
material: PURPLE_STAINED_GLASS_PANE
7
name: '&5Rainbow Colours!'
8
animate1:
9
material: RED_STAINED_GLASS_PANE
10
name: '&cRainbow Colours!'
11
animate2:
12
material: ORANGE_STAINED_GLASS_PANE
13
name: '&6Rainbow Colours!'
14
animate3:
15
material: YELLOW_STAINED_GLASS_PANE
16
name: '&eRainbow Colours!'
17
animate4:
18
material: LIME_STAINED_GLASS_PANE
19
name: '&aRainbow Colours!'
20
animate5:
21
material: LIGHT_BLUE_STAINED_GLASS_PANE
22
name: '&9Rainbow Colours!'
23
animate6:
24
material: MAGENTA_STAINED_GLASS_PANE
25
name: '&dRainbow Colours!'
Copied!
The example above, will loop through the seven (0 to 6) animate values. If you are for example missing the number 3, it will simply display the default item when it reaches 3 in the loop (a BARRIER in the script above is the default item).
These animate tags can be added into any item, except for hotbar items. You can also include animations inside of any Has Section.
Copy link