resourcepack.ai
DOCS

Official addons

Paintball

An addon for RP Engine: a plugin that installs into the engine and adds one thing, rather than a pack you author yourself. Drop it in beside the engine and it brings its own content with it.

A paintball match: a paint grenade, the marker and splats on the walls

This one is paintball. Hold right-click to fire a paint marker, left-click to aim down its sights, throw a paint grenade round a corner and leave a mine in a doorway. One hit splats you and you are back a few seconds later. Play it as team deathmatch, free for all or capture the flag. One command builds a whole field to play on.

Installing#

It needs Spigot or Paper 1.21.11 or newer (the marker uses item components 1.21.11 added) and RP Engine 0.2.3 or newer. On an older engine Paintball says so in the console and turns itself off.

  1. 1

    Drop it in

    Put RPE-paintball.jar in plugins/ beside RPEngine.jar and start the server. Paintball copies its models, sounds, HUD and scoreboard into plugins/RPEngine/content/paintball/ (RP Engine's content folder, which the engine builds its resource pack from) and reloads the engine once. That folder is yours to edit: an update replaces only the files you have not changed.

  2. 2

    Build a field

    As an op, stand somewhere flat and run /pb arena generate main confirm. It builds a field around you and sets the arena up on it. See Building an arena before you do this anywhere you have built.

  3. 3

    Play

    /pb join, then /pb start. Alone is fine: you play against nobody, which is a good way to try the marker.

If you run Multiverse-Core, Paintball loads after it, so an arena in one of its worlds is found.

Playing#

The lobby#

/pb join (or /pb on its own) puts you in the lobby: on the field you generate, a glass box over the middle that looks down on it. Your inventory and where you were are put away and given back when you leave. The hotbar holds:

ItemWhat it does
Color (the marker)Right-click for the next color, and round again to Any. Your paint in a free for all; in a team match, your marker
Practise (the target)Down onto the field to practice until the match starts. See Practicing
Play for Red / Play for BluePick a side for the next match. Click the same one again to leave it to chance
ScoreboardThe scoreboard of the last match
LeaveBack to where you were, with your things

/pb team red|blue|auto does the same as the team items. Sides are kept within one player of each other, so if too many pick one side, the last to pick is moved and told. Late joiners go onto the smaller team.

/pb colour <colour|auto> does the same as the marker. In a free for all your color is your paint (marker, mask, suit and splats). In a team match your paint stays your team's and only the marker changes. colour-pick: false in the config turns choosing off.

More players than spawns is fine: they share them.

Practicing#

While the lobby waits for a match, the target in the hotbar (or /pb practice) takes you down onto the field to try the marker and learn the map. You get the marker and the grenade, in the color you chose or your side's, and everybody down there plays against everybody. A hit sends whoever it hit straight back to a spawn, the HUD keeps a practice score, and nothing counts towards anything. The feather in your last slot, or /pb practice again, takes you back up to the lobby.

When the match starts, everybody practicing is put at their spawn like everybody else and the paint comes off the walls. practice: false in the config, or for one arena with /pb arena set, turns practicing off.

In a match#

Every match opens with a three-second countdown, frozen in place, then a whistle. You carry a marker, a paint grenade, a paint mine, a mask and a suit in your team's color.

KeyWhat it does
Right-click (hold)Fire. About seven balls a second, forty to a hopper
Left-clickUp to the sights, or back down. Zoomed in, slower on your feet, and no spread at all
QReload. The marker also reloads by itself when the hopper runs dry
Right-click the grenadeThrow it
Right-click the ground with the mineSet it
FThe scoreboard
TabThe scoreboard in the player list: the score and the clock on top, and a tile for every player with their kills and deaths

Every ball lands on the crosshair. Balls drop and slow as they fly, but are aimed so they arrive where you are looking. From the hip they stray a little (the crosshair's ticks show how much): more on the move, in the air or sprinting, half as much crouched. Down the sights there is no spread. Changing slot, sprinting or reloading takes you off the sights.

The grenade goes off a second and a half after it lands and splats every enemy within three and a half blocks that it can see, so a wall is cover. It recharges for fifteen seconds after a throw (grenade.reset-on-respawn: true makes a respawn bring it straight back).

The mine is one per match. It arms a second and a half after you set it, and the first enemy to step on it splats every enemy within three blocks that it can see. Your own team can walk over it.

One hit splats you. For three seconds the camera circles whoever got you, then you come back at one of your team's spawns, safe from hits for a second and a half. A server can also give each spawn a safe zone (spawn-protection-radius): you stay safe until you leave it or fire, and the other side cannot set a mine in it. There is no friendly fire, and enemy name tags are hidden.

A pling sounds at one minute and thirty seconds left, and the last seconds count down in the middle of the screen. The match ends when the clock runs out (three minutes) or when a team reaches the kill limit, if one is set. Then the result, the scoreboard, and back to the lobby. Splats are displays, not blocks, so the arena is never changed and is clean for the next match.

What you see#

There is not a title or a boss bar in the game. The whole screen is one HUD:

  • Top center, the score strip: both teams' kills and the clock.
  • Top left, the kill feed: the last three splats, who by, and with what.
  • Bottom right, your weapon: the grenade's card, filling as it recharges, and the ammo panel with its bar.
  • The crosshair, with its spread ticks from the hip and a hit marker when you land one.
  • The middle, which carries every moment of a match: the countdown ring, GO!, the paint on your screen when you are splatted and the ring counting you back in, SPLATTED and who when you get somebody, the time left as the clock runs down, and the result on its band with the final score.

The scoreboard (F, /pb scoreboard, or the lobby's item) is a dialog with both teams' tables, the top five of each, best first: each player's face, kills, deaths and accuracy.

The player list (Tab) is a scoreboard too. Under the name, the mode, the map, the score and the clock, every player has a tile in their color with their name and their kills and deaths: a column a team, red on the left, or in a free for all everybody best first with their place. Your own tile is lit, and the name of somebody who is out is grayed. In the lobby it shows who is waiting, in the color of the side they picked. On Paper the players in the match are taken off the list under the tiles, which already show them; Spigot has no way to, so there they stay. tab.scoreboard: false keeps the game's own list instead.

While you are playing#

In the lobby and in a match alike, you take no damage and get no hungrier, and you cannot build, break, open doors or chests, pick anything up, or move or drop what you carry. Commands are limited to /pb, /msg, /tell, /w, /r, /reply, /me and /list, unless you have paintball.bypass.commands. Walking out of the arena's bounds during a match puts you back where you last stood.

/pb leave always works. Disconnecting or being teleported to another world counts as leaving. If the server goes down mid-match, everybody gets their things back the next time they join.

Game modes#

Every arena plays one of three modes, teams unless it says otherwise.

ModeHow it plays
Team deathmatch (teams)Red against blue. Most splats when the clock runs out wins, or the first team to the kill limit if there is one
Free for all (ffa)Everybody against everybody, each in a paint color of their own. First to 15 splats, or the most when the clock runs out, wins
Capture the flag (ctf)Red against blue, for each other's flag. First team to 3 captures, or the most when the clock runs out, wins

Choose an arena's mode with /pb arena set <arena> mode ffa, or play another one for a single match with /pb start <arena> ctf. The lobby says which mode is next.

max-players caps how many people an arena takes, its lobby and its match together, so one arena can be a four-player free for all and another a 5v5 (/pb arena set <arena> max-players 4). Anybody past it is told the arena is full. Bots are not counted, and 0 is no limit.

Free for all#

Every player gets one of eight paint colors (red, blue, green, orange, yellow, purple, pink and cyan), unless they chose one. More players than colors share them. Everybody else is an enemy, and nobody's name tag shows. You respawn at whichever spawn is furthest from everybody still in.

The HUD shows your kills and the leader's either side of the clock, with your place under them. A tie on kills goes to whoever was splatted less; a tie on both is a draw. The scoreboard is one table of everybody.

Capture the flag#

Each team has a flag at its base. Walk into the other team's flag to take it. While you carry it you glow, walk a little slower, and cannot aim down the sights, throw your grenade or set your mine. Bring it to your own flag while yours is at home and your team scores a capture.

If the carrier is splatted, the flag drops where they fell. An enemy can pick it up again. A teammate of the flag's who touches it sends it home, and otherwise it goes home on its own after twenty seconds. The HUD shows each flag's state beside its team's captures: at home, taken or dropped. The middle of the screen and chat say when a flag is taken, dropped, returned or captured.

A generated field has both flags in place. On an arena you set up by hand, stand where each one goes and run /pb arena setflag <arena> red and blue.

Running matches#

Matches do not start on their own: somebody with paintball.start runs /pb start.

  • /pb start starts a match now on the arena you are in, joining you first if you are not in (so it works alone). /pb start <arena> names one, and /pb start <arena> <teams|ffa|ctf> plays that mode this once.
  • /pb stop ends a match the ordinary way (result, scoreboard, lobby). In the lobby it sends everybody home.

/pb as <player> <subcommand> runs a subcommand as somebody else, for NPCs and command blocks: an NPC that runs /pb as <player> join for whoever clicks it is a join button. It is checked against the player's permissions, not the sender's.

Bots#

Computer players can fill a match up. They are off until you turn them on in config.yml, or for one arena with /pb arena set:

  • bots.fill: fill each side up to this many in a team match, or everybody up to this many in a free for all.
  • bots.even-teams: in a team match, add a bot for every extra person the other side has, so three against one becomes three against three.

Bots are in the kill feed, the scoreboard and the score like anybody else. They shoot the nearest enemy they can see after a short reaction time (bots.reaction-ticks), with some spread (bots.spread-degrees). In capture the flag half of them attack and half guard. They do not throw grenades or set mines, and never count towards stats.

A person who joins takes a bot's place, and when the last person leaves the match ends. Bots are mannequins, so they need Minecraft 1.21.9 or newer.

Building an arena#

An arena is a waiting spot, at least one spawn for each team, and bounds: the box a player cannot walk out of during a match. Arenas are kept in plugins/RPEPaintball/arenas.yml. An arena id is lower-case letters, digits, - and _, up to 32 of them; its display name can be anything.

Generate a field#

/pb arena generate <id> confirm [name]

Builds a speedball field centered on you and sets the arena up on it, ready to play: a floor, a netted fence, a base and flag at each end, mirrored bunkers, and a glass box over the middle to wait in. Without confirm it only says what it is about to do.

It replaces every block in a large box

The field is 31 blocks across and 57 long. Inside that it clears everything from your feet to eleven blocks up, lays the floor and a foundation in the two layers below, and builds the waiting box above the middle, up to seventeen blocks above your feet. Run it in an empty world, or somewhere you do not mind losing. A flat world is best.

Running it again with the same id rebuilds the field where you now stand. From the console, name the place outright:

/pb arena generate <id> at <world> <x> <y> <z> [name]

Set one up by hand#

To play on a map you built yourself, stand in the right places and run:

  1. 1

    Create it

    /pb arena create <id> [name], in the world the arena is in.

  2. 2

    Where players wait

    /pb arena setwaiting <id> where you stand, facing the way you face.

  3. 3

    Spawns

    /pb arena addspawn <id> red, and again for blue, up to five a team (past five the oldest goes). With no color, /pb arena addspawn <id> adds a spawn for anybody (up to ten), used by free for all and by any team with no spawns of its own, so a free-for-all arena needs no team spawns. /pb arena clearspawns <id> [red|blue] clears them.

  4. 4

    Bounds

    /pb arena wand hands you the bounds wand. Left-click a block for one corner, right-click another for the opposite corner, then /pb arena setbounds <id>.

  5. 5

    Open it

    /pb arena enable <id>. If anything is missing it says what.

/pb arena list shows every arena, its world, and whether it is open, ready, or what it still needs.

Managing arenas#

/pb join with no arena named goes to the first open one. /pb arena disable <id> closes an arena for maintenance: nobody can join or start it, its lobby is sent home, and a match on it ends as /pb stop would. Staff can still tp there and change it. /pb arena delete <id> does the same and forgets the arena, leaving the blocks where they are. Spawns and bounds cannot be changed during a match: /pb stop <id> first.

Settings per arena#

Every number in the configuration, and each team's marker, is the server's default. An arena can set any of them for itself:

/pb arena set <id> <option> <value>
/pb arena set main match-seconds 300
/pb arena set main kill-limit 25
/pb arena set main marker.hopper 60
/pb arena set main teams.red.marker gold
/pb arena set main hud.time-warnings 60,30,10

An option is its path in config.yml (tab-completion lists them; ui, messages and update-check are server-wide only). default puts one back to config.yml's value, and /pb arena set <id> lists what the arena overrides. They are saved under settings: in arenas.yml. Changes apply at once, so change the clock and limits between matches.

Commands#

/paintball, or /pb for short. /pb help and tab-completion only offer what you may run.

CommandWhat it does
/pb join [arena]Into the lobby. /pb on its own does the same
/pb team <red|blue|auto>The side you would like, from the next match
/pb colour <colour|auto>Your color from the next match: your paint in a free for all, your marker in a team match
/pb practiceDown onto the field to practice while the lobby waits, or back up
/pb leaveOut, with your inventory and position back
/pb scoreboardThe match scoreboard (F in a match or its lobby)
/pb start [arena] [teams|ffa|ctf]Start a match now, in the arena's mode or another, joining you first if you are not in
/pb stop [arena]End the match, or in the lobby, send everybody home
/pb as <player> <subcommand>Run a subcommand as somebody else
/pb reloadReread config.yml and arenas.yml
/pb arena listEvery arena and what it still needs
/pb arena generate <id> confirm [name]Build a field where you stand
/pb arena generate <id> at <world> <x> <y> <z> [name]The same, from the console
/pb arena create <id> [name]A new, empty arena in your world
/pb arena setwaiting <id>Its waiting spot, where you stand
/pb arena addspawn <id> [red|blue]A team spawn where you stand, or with no color a spawn for anybody
/pb arena clearspawns <id> [red|blue]Remove a team's spawns, or with no color the spawns for anybody
/pb arena setflag <id> <red|blue>Where that team's flag stands in capture the flag, where you stand
/pb arena wandThe bounds wand
/pb arena setbounds <id>Its bounds, from the two corners you marked
/pb arena enable <id> / disable <id>Open or close it
/pb arena tp <id>Go to its waiting spot
/pb arena name <id> <name>Rename it
/pb arena set <id> [<option> <value|default>]Its own value for one of config.yml's options, or with no option, list them
/pb arena delete <id>Remove it

Permissions#

One node per command, so a referee can start and stop matches without touching arenas. paintball.play and paintball.admin are shorthand that grant the nodes under them. /pb leave needs no permission.

NodeWhat it allowsDefault
paintball.playEverything a player does: join, pick a team and a color, the scoreboard, practicing. Grants the five belowEveryone
paintball.join/pb join: into an arena's lobbyEveryone
paintball.team/pb team, and the red and blue items in the lobby's hotbarEveryone
paintball.colour/pb colour, and the marker in the lobby's hotbar, which picks your colorEveryone
paintball.scoreboard/pb scoreboard, F in a match or its lobby, and the lobby's scoreboard itemEveryone
paintball.practice/pb practice, and the target in the lobby's hotbar, which takes you down onto the field to practiceEveryone
paintball.adminEvery staff node: start, stop, reload, /pb as, arenas, the command bypass. Grants the eight belowOperators
paintball.start/pb start: start a match now, in any mode (it joins you first if you are not in)Operators
paintball.stop/pb stop: end a match, or empty a lobbyOperators
paintball.reload/pb reload: reread config.yml and arenas.ymlOperators
paintball.as/pb as <player> ...: run a subcommand as somebody else (for NPCs and console). Checked against their permissionsOperators
paintball.arenaArena setup: list, create, setwaiting, addspawn, clearspawns, setflag, wand and setbounds, enable, disable, tp, name, setOperators
paintball.arena.generate/pb arena generate: build a whole field, replacing every block in a large boxOperators
paintball.arena.delete/pb arena delete: remove an arena, ending its matchOperators
paintball.bypass.commandsRun any command during a match, not only the few a player mayOperators
paintball.updateBe told when a newer Paintball is on SpigotMC. Not part of paintball.adminOperators

Configuration#

plugins/RPEPaintball/config.yml. The numbers, which are the server's defaults: an arena can set any of them for itself.

match-seconds: 180
# End early when a team reaches this many kills. 0 plays the whole clock.
kill-limit: 0
freeze-seconds: 3
respawn-seconds: 3
# While you're out, the camera circles whoever splatted you. false leaves you a
# free spectator where you fell.
killer-camera: true
# A player just back at a spawn can't be splatted for this long.
spawn-protection-seconds: 1.5
# And, with a radius, for as long as they stay inside this many blocks of the
# spawn they came in at, however long that is: a circle round it, or a square.
# Firing, throwing a grenade or setting a mine ends it, so nobody shoots out of
# a safe zone, and nobody can set a mine in the other side's. The border is
# drawn for whoever is inside. 0 for none.
spawn-protection-radius: 0
spawn-protection-shape: circle
# How long the final scoreboard stays up before everybody is back in the lobby.
end-seconds: 12
# While they wait for a match, players can go down onto the field to practise
# (the target in the lobby's hotbar, or /pb practice): the marker and the
# grenade, everybody down there against everybody, a hit sends you back to a
# spawn, and nothing counts. The match starting puts everybody at their spawn.
practice: true
 
marker:
  # Ticks between shots while the trigger is held (3 = about seven a second).
  fire-interval-ticks: 3
  hopper: 40
  reload-seconds: 1.6
  # Blocks per tick as the ball leaves the barrel, and what pulls it down.
  speed: 2.4
  gravity: 0.022
  drag: 0.992
  spread-degrees: 0.7
  moving-spread-degrees: 2.4
  # Left click aims down the sights: no spread at all, and slower on your feet.
  aim-spread-degrees: 0.0
  aim-slowdown: 0.55
  # How far out the crosshair finds what you are aiming at.
  range: 96
  lifetime-ticks: 60
 
grenade:
  # Greyed out for this long after a throw. 0 for no wait at all.
  cooldown-seconds: 15
  # true: being splatted brings it straight back.
  reset-on-respawn: false
  fuse-ticks: 30
  throw-speed: 1.1
  radius: 3.5
 
mine:
  # How many mines each player can set in a match. 0 for none.
  per-match: 1
  # How long after it is set before it can go off.
  arm-seconds: 1.5
  # How far it splats enemies it can see when it goes off.
  radius: 3.0
 
paint:
  # The most splats one match keeps on the walls; the oldest go first.
  max-decals: 1500
 
# Which marker each team carries: ember, tide, toxic, sunset or gold.
teams:
  red:
    marker: ember
  blue:
    marker: tide
 
hud:
  kill-feed-seconds: 8
  kill-banner-seconds: 2.5
  hit-marker-ticks: 6
  # Seconds left at which a pling sounds and the time left is shown.
  time-warnings: [60, 30, 10, 5, 4, 3, 2, 1]
 
tab:
  # The player list (Tab) as the match's scoreboard: a tile for every player
  # with their name, kills and deaths. false leaves the game's own list.
  scoreboard: true
  # On Paper, the match's players are taken off the list under the tiles.
  hide-players: true
 
nametags:
  # The names over players' heads. The game's own show through walls; with this
  # on they are text that blocks in front of it hide, like anything else, and
  # the game's own are hidden for the match even when a tab or name tag plugin
  # draws them.
  hide-behind-blocks: false
  # Whether you see the other team's names too, not only your own team's. With
  # hide-behind-blocks off, that means through walls as well.
  enemies: false
  # How a name reads, in MiniMessage, with hide-behind-blocks on. {player} is
  # the name and {team_colour} its paint colour (#FF4655 or #2E9BFF in a team
  # match), which colours what follows it whether or not it is in <>.
  format: "<{team_colour}>{player}"
 
# What an arena plays unless it sets its own: teams, ffa or ctf.
mode: teams
 
# The most people one arena takes, its lobby and its match together; anybody
# after that is told it is full. Bots are not counted. 0 for no limit.
max-players: 0
 
ffa:
  # The paint colours handed out, in this order, one to a player.
  colours: [red, blue, green, orange, yellow, purple, pink, cyan]
  # The marker each colour carries.
  markers:
    red: ember
    blue: tide
    green: toxic
    orange: sunset
    yellow: gold
    purple: violet
    pink: bubblegum
    cyan: frost
 
# Whether players choose their colour (/pb colour, or the lobby's marker) out
# of ffa.colours: their paint in a free for all, their marker in a team match.
colour-pick: true
 
bots:
  # Each side filled up to this many in a team match, everybody up to this
  # many in a free for all. 0 for none.
  fill: 0
  # A bot for every person the other side has more.
  even-teams: false
  # How far a shot strays, in degrees, and how long before they fire at
  # somebody who comes into view, in ticks.
  spread-degrees: 4.0
  reaction-ticks: 12
  names: [Splotch, Drip, Smudge, Blot, Streak, Dab, Speckle, Spritz, Gloop, Swatch]
 
ctf:
  # Captures to win. The team with more when the clock runs out wins.
  captures: 3
  # A dropped flag goes home on its own after this long.
  flag-return-seconds: 20
  # Whether your own flag has to be at home for you to score with theirs.
  need-own-flag: true
  # How fast the carrier walks, as a share of their normal speed.
  carrier-speed: 0.85
  # Whether the carrier glows, seen through walls by everybody.
  carrier-glows: true
  # Whether the carrier can throw their grenade and set their mine.
  carrier-can-throw: false
  # How close you have to come to a flag to take it, return it or score.
  flag-reach: 1.3
 
# Any option above, changed for one mode's matches only.
modes:
  teams: {}
  ffa:
    match-seconds: 240
    kill-limit: 15
    respawn-seconds: 2
  ctf:
    match-seconds: 480
    respawn-seconds: 5
 
update-check: true

modes.<mode> values apply to that mode's matches only, and an arena's own settings apply on top of both (/pb arena set <arena> modes.ctf.respawn-seconds 6).

Every word a player reads is under messages: in the same file, in MiniMessage: the HUD's, the scoreboard's (its headings and its Close button), the player list's, and the names of the teams, the paint colors and the markers (team-red, colour-purple, marker-ember...). The big words in the middle of the HUD (GO!, SPLATTED BY, VICTORY...) can use only A to Z, digits, !, -, ' and spaces.

To replace the HUD or a scoreboard with your own RP Engine HUD or Dialog, point ui.hud, ui.hud-ffa, ui.scoreboard, ui.scoreboard-ffa or ui.scoreboard-ctf at its id. It has to show the same values.

/pb reload rereads the file, and arenas.yml too unless somebody is playing. An update adds new options to your file with their defaults and leaves yours alone.

Placeholders#

With PlaceholderAPI on the server, Paintball registers %paintball_...% placeholders for scoreboards, holograms and anything else that reads them. Every match that ends, by the clock, the kill limit or /pb stop, is added to each player's totals, which are kept in plugins/RPEPaintball/stats.json. A player who leaves before the end keeps their kills and deaths but gets no win, loss or match; a draw is neither a win nor a loss.

PlaceholderWhat it is
%paintball_arena_status_<arena>%Maintenance (closed), Not Configured, Ready, Starting, In Game or Ending
%paintball_arena_players_<arena>%How many are in its lobby or match
%paintball_arena_max_<arena>%How many it takes (max-players), 0 for no limit
%paintball_arena_plays_<arena>%How many matches it has had
%paintball_arena_name_<arena>%Its display name
%paintball_arena_red_<arena>%, %paintball_arena_blue_<arena>%Each team's score in its current or last match: kills, or in capture the flag captures
%paintball_arena_time_<arena>%Its match clock
%paintball_arena_mode_<arena>%The mode being played, or the one it plays next
%paintball_arena_leader_<arena>%Who is ahead: a team, or in a free for all a player
%paintball_player_<stat>%The player's own total
%paintball_player_arena%, %paintball_player_team%Where the player is playing, and for whom
%paintball_leaderboard_<stat>_<n>%Who is n-th for that stat
%paintball_leaderboard_<stat>_<n>_value%Their number

A <stat> is kills, deaths, wins (or won), losses (or lost), matches (or played), shots, hits, captures, accuracy or kd. A win in a free for all is coming first.

The status words are under messages: (status-maintenance ... status-ending).

Update check#

With update-check: true, Paintball checks SpigotMC once at startup and, if you are behind, tells the console and every player with paintball.update (operators) with a link. Set it to false to turn that off.