Using it

Screens and animations

Add your own GIF in 3 steps#

  1. Drop intro.gif (or an .apng, a single .png, or a folder of numbered PNGs like 000.png, 001.png) into plugins/mcScreens/animations/. Use only a-z, 0-9, _ and - in names; the name becomes the animation id.
  2. Run /screens reload. The file moves into animations/intro/ and gets an animation.yml. Frames are cropped, scaled and packed for you.
  3. Try it with /screens preview intro, or use intro anywhere an animation is asked for: screens, effects, transitions, cutscenes, the API.

You can also download one: /screens import <url> <name> (largest size in import.max-mb, default 8 MB). The built-in animations are inside the jar; list them with /screens list animations. To replace a built-in one, make a folder with the same name.

animation.yml#

Written the first time an animation is loaded. Change anything and reload.

fps: gif            # 'gif' = the delays stored in the file, or frames per second
mode: once          # once, loop or ping-pong
duration: 0         # loop / ping-pong: default play time in seconds (0 = one cycle)
size: full          # full, fit, natural, corner, small / medium / large, a height like 64, '<w>x<h>' or '40%'
anchor: center      # center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right
offset: [0, 0]      # extra move in GUI pixels (+y = down)
scale: 1.0
channel: title      # title, subtitle, actionbar or bossbar
fade-in: 0.0
fade-out: 0.0
tint: '#FFFFFF'
resolution: 768     # longest side of the texture in pixels
smooth: true        # false = hard pixels (pixel art)
crop: true          # cut away empty transparent borders
sounds:
  start: ''
  end: ''
  frames: {}        # frame number: sound

Screens#

A screen in screens.yml is a list of layers on one timeline. Every layer has at (seconds after the start) and one of animation, text, sound, effect, toast, card or command. Text layers pick a channel (title, subtitle, actionbar, bossbar) and a style (plain, typewriter, wave, rainbow, gradient, pulse, shake). skippable: true lets the player sneak to end it.

welcome:
  skippable: true
  layers:
    - { at: 0.0, animation: fade, reverse: true }
    - { at: 0.0, effect: cinematic-bars, duration: 4.2 }
    - { at: 0.1, sound: ui.whoosh }
    - { at: 0.5, text: "<gradient:#7C5CFF:#3FD0FF><bold>WELCOME BACK", channel: title, duration: 3.1, fade-in: 0.3, fade-out: 0.6, z: 20 }
    - { at: 0.8, text: "<gray>Good to see you again, <white>{player}", channel: subtitle, duration: 2.8, style: typewriter, z: 20 }
    - { at: 3.9, toast: welcome_back }

Built-in screens: welcome, welcome_first, nether_arrival, end_arrival, victory, defeat, level_up, quest_complete, boss_incoming, announcement, jackpot.

Play one with /screens play <id> <target>. Targets: a player name, me, all, world:<name>, radius:<blocks>, permission:<node>, region:<id> (WorldGuard) or group:<name> (Vault). Combine them with commas: world:spawn,permission:vip.

Banners#

Slide-in ribbons across the top, in banners.yml (store, vote, event). Each can have a schedule with every-minutes or times, a target and min-players. Show one with /screens banner <target> <id> or any text: /screens banner all <gold>Double XP is on!.