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):

panels:
  animationTester:
    perm: default
    rows: 1
    title: '&aTesting Animations'
    empty: BLACK_STAINED_GLASS_PANE
    animatevalue: 6 <-- ADD THIS

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".

item:
  '2':
    material: BARRIER
    name: This is the default item
    animate0:
      material: PURPLE_STAINED_GLASS_PANE
      name: '&5Rainbow Colours!'
    animate1:
      material: RED_STAINED_GLASS_PANE
      name: '&cRainbow Colours!'
    animate2:
      material: ORANGE_STAINED_GLASS_PANE
      name: '&6Rainbow Colours!'
    animate3:
      material: YELLOW_STAINED_GLASS_PANE
      name: '&eRainbow Colours!'
    animate4:
      material: LIME_STAINED_GLASS_PANE
      name: '&aRainbow Colours!'
    animate5:
      material: LIGHT_BLUE_STAINED_GLASS_PANE
      name: '&9Rainbow Colours!'
    animate6:
      material: MAGENTA_STAINED_GLASS_PANE
      name: '&dRainbow Colours!'

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.

Last updated