Skip to content

Command reference ​

JSPrismarine answers 78 commands: the vanilla set it implements, plus a few of its own such as /tps and /version. The table below lists each one with its description, the permission node that gates it in permissions.json and the permission level it needs. It is generated from the commands the server registers, so it lists exactly what a server of this version accepts.

Who can run a command ​

A player needs two things to run a command, and the table shows both.

The permission column is the node in permissions.json. A fresh permissions.json lets every player run /help, /link, /list, /me, /plugins, /tps, /unlink and /version, through the default group every player holds, and grants every operator * through the operator group, which covers every node. To let a player run something else, add the node to their user record or to a group they hold; the permissions section of the running guide explains the file. A node ending in .* grants a whole scope, so minecraft.command.* grants every vanilla command, and a leading - takes a node away. The node of a command is checked for the player who typed the line, and so is the node of every command the line reaches through /execute ... run or a function, so holding minecraft.command.execute does not stand in for the node of the command it runs. A command the server runs for a behavior pack script or a function tag has no typing player, and runs with the level a game director has.

A command an addon's script registers, such as /jsp:tpsbar, is not in the table. Its node is its full name, jsp:tpsbar. When no entry names that node, the level the script asked for decides, as on Bedrock Dedicated Server, so a command registered for game directors needs an operator or a level meta. An entry that grants the node lets a player run the command at any level, and a negation takes the command away, even from an operator. Granting jsp:tpsbar to the default group lets every player run /tpsbar. Each addon's page in the marketplace lists the commands it registers, with each one's node, level and who runs it on a fresh server. A page has no list when the addon's listing records no commands: a version published before listings recorded them, or one whose scripts the build could not run, keeps that listing until its author publishes a new version.

The level column is the command's permission level, which follows Java Edition. A player runs at level 0 unless a level meta in permissions.json raises it, an operator at 4 and the console at 5, so a command at level 1 or above needs an operator or a level even when a permission node allows it. A command at level 5 runs on the console only: no player sees it, and an operator who types it is told it needs a higher level. /update and /restart belong to the console too. They sit at level 0 so that you can let a player run one, but only a permission entry that names the node does that. An operator's * doesn't count, because restarting the server is a decision for whoever runs the machine. Updates explains both. /help follows both columns: it lists only the commands, subcommands and forms the player may run, and answers /help <command> for one they may not run as it answers for a command that doesn't exist. The console's /help lists every command. The granted to column puts the two together for a fresh server: who can run the command before you change anything.

For how the server parses commands, what differs from Bedrock Edition and how to run functions from a datapack, see Commands and functions.

Commands and Xbox achievements ​

A Bedrock client earns Xbox achievements only in a world it was told has cheats off, and in such a world it refuses to send a command the server listed as a cheat. With xbox-achievements on, the default in config.json, JSPrismarine tells every client that cheats are off and lists every command as one that is not a cheat. Operators keep /gamemode, /give and the rest, and earn achievements as well, which a Bedrock Dedicated Server does not allow. The columns above still decide who may run what. Each client checks only its own game mode, so a player in creative mode earns nothing while the players around them keep earning.

A client works out most achievements from what it sees, but a few depend on what only the server knows. As a Bedrock Dedicated Server does, JSPrismarine tells a player's client when a blow from that player killed a mob, when an entity killed that player, and when a command the player sent succeeded. The client passes these events on to Mojang.

Set xbox-achievements to false to tell every client that cheats are on. Nobody earns achievements then, and the server tells clients none of these events.

A command still records whether it is a cheat: Mojang's metadata marks the vanilla ones, an addon's script passes cheatsRequired to customCommandRegistry.registerCommand, and server code passes requiresCheats to CommandRegistry.register. The flag changes nothing a client sees while every command goes out as not a cheat.

Permissions ​

/perms manages the groups and users of permissions.json, which the running guide describes. A target is a selector that names one online player, such as @p, or a name: an online player's, one the file knows, or one a player joined under recently, which the user cache matches in any case. A name that names more than one player is refused with the forms the command takes instead: xbox:Steve, java:Steve or offline:Steve picks a platform, and xbox:2535428842768200, the key itself, picks one of two stored accounts of one kind that share a name. A qualified value is read as a key first, an online player's, a stored user's or a cached one's, and as a name only when it is nobody's key. The refusal lists each candidate by its key. That spelling is command syntax only and never appears in a file. [expires] is an ISO 8601 instant such as 2027-01-01T00:00:00Z, or a duration from now: 90s, 45m, 12h, 30d or 2w.

text
/perms user <target> info
/perms user <target> permission set <node> [expires]
/perms user <target> permission unset <node>
/perms user <target> group add <group> [expires]
/perms user <target> group remove <group>
/perms user <target> meta set <key> <value>
/perms user <target> meta unset <key>
/perms group list
/perms group create <group>
/perms group delete <group>
/perms group <group> info
/perms group <group> permission set <node> [expires]
/perms group <group> permission unset <node>
/perms group <group> parent add <group>
/perms group <group> parent remove <group>
/perms group <group> weight <n>
/perms group <group> meta set <key> <value>
/perms group <group> meta unset <key>
/perms reload

The command is gated by jsprismarine.command.perms, and each subcommand by a node under it named by its words: jsprismarine.command.perms.user.info, jsprismarine.command.perms.user.permission.set, jsprismarine.command.perms.user.permission.unset, jsprismarine.command.perms.user.group.add, jsprismarine.command.perms.user.group.remove, jsprismarine.command.perms.user.meta.set, jsprismarine.command.perms.user.meta.unset, jsprismarine.command.perms.group.list, jsprismarine.command.perms.group.create, jsprismarine.command.perms.group.delete, jsprismarine.command.perms.group.info, jsprismarine.command.perms.group.permission.set, jsprismarine.command.perms.group.permission.unset, jsprismarine.command.perms.group.parent.add, jsprismarine.command.perms.group.parent.remove, jsprismarine.command.perms.group.weight, jsprismarine.command.perms.group.meta.set, jsprismarine.command.perms.group.meta.unset and jsprismarine.command.perms.reload. The bare jsprismarine.command.perms covers every subcommand, and an operator and the console run every one. The check reads the player who typed the command, so /execute as lends nobody another player's authority.

Give the bare node only to people you would make operators. A player who holds user.permission set, user.group add, user.meta set or either group ... set can raise their own permissions with it, so a negation of one subcommand does not keep the others in check. For a moderator who should only look, grant the bare node and negate the writing subcommands, or wait for a role that needs no /perms at all and give them the commands directly.

Addons ​

addon installs, updates, lists and removes addons: the optional behavior packs JSPrismarine and other repositories publish, and the resource packs, .mcaddon archives and worlds people share. It runs on the console only, typed on the terminal or sent through the remote console, so nobody adds code to a server from inside the game.

SubcommandWhat it does
addon listLists each addon, its version, where it came from and its packs.
addon install <addon> [as <name>]Installs the newest version the addon allows and loads it.
addon update [name]Moves each addon, or the one named, to the newest version in range.
addon remove <name>Removes the addon and unloads it.
addon syncInstalls and removes addons until the folder matches the two files.

<addon> takes one of these forms:

  • tps-bar: an addon from JSPrismarine/JSPrismarine, JSPrismarine's own source.
  • owner/repo/name: an addon from another GitHub repository that publishes an index on its addons release.
  • Either of those followed by @ and a range: tps-bar@^1.0.0 takes any 1.x.x from 1.0.0 on, @~1.2.0 takes patches of 1.2, @1.2.3 takes that version only and @* takes any. Without a range, the install records ^ and the version it installed.
  • An https: URL of an archive. No index lists it, so the console says that no hash checked the download, and the lock records the hash of what was downloaded.
  • A path that starts with ./, ../ or /, or ends in .mcpack, .mcaddon, .mcworld, .mctemplate or .mcproject. A folder is linked rather than copied, so an edit to it shows after /reload. An archive installs every behavior and resource pack it holds and imports its worlds as detached levels; an .mcproject is refused. What an archive installs has the details.

Players see what is installed with /plugins, or /pl, as on Spigot and Paper. It prints the count and then the installed addons under an Addons heading, each name in green. Like Spigot and Paper, every player may run it.

An archive you place in the addons/ folder installs at the next start, /reload or addon sync, as if you had installed its path.

The server's folder holds what was asked for and what it resolved to, beside config.json: addons.json keys each addon by its local name with the source and range it came from, and you may edit it by hand. addons.lock.json records the version, URL and SHA-256 each one installed, and only the command writes it. The local name is also the addon's folder under addons/, so two repositories' addons of the same name install side by side when the second takes as <name>.

addon update changes a locked version. So does a sync after you edit addons.json: an entry whose source, name or range no longer allows its lock resolves again and locks the newest version it allows, so changing ^1.0.0 to ^2.0.0 moves the addon to 2.x on the next sync or start. At startup, on /reload and on addon sync, the server installs a locked addon whose folder is missing from its locked URL and refuses a download whose hash is no longer the one locked. It resolves and locks an entry of addons.json with no lock, and removes a locked addon addons.json no longer names. A server copied to another machine without its addons/ folder gets the same addons back, except one installed from a path outside the server's folder: copy that folder too, at the same path, or change its path in addons.json to where the folder is now and run addon sync.

An install or a removal reloads the behavior pack scripts with the new list of packs, so no restart is needed for scripts. A pack that also has blocks, items, entities or other data loads that part at the next restart, and the console says so.

Every command ​

Aliases are listed after the command they run; /tp parses the same arguments as /teleport and does the same thing.

CommandDescriptionPermissionLevelGranted to
/addonInstalls, updates, lists and removes addons. Only the console runs it.jsprismarine.command.addon5The console
/allowlist, /whitelistManages the server allowlist.minecraft.command.allowlist4Operators
/banBan a player.minecraft.command.ban2Operators
/camerashakeApplies shaking to the players' camera.minecraft.command.camerashake1Operators
/clearRemoves items from inventories.minecraft.command.clear1Operators
/cloneCopies a region of blocks.minecraft.command.clone1Operators
/damageApplies damage to entities.minecraft.command.damage1Operators
/dataReads and writes NBT.minecraft.command.data1Operators
/daylockLocks and unlocks the day-night cycle.minecraft.command.daylock1Operators
/debugDebug output.jsprismarine.command.debug4Operators
/deopRevokes operator status.minecraft.command.deop4Operators
/difficultyChanges the difficulty.minecraft.command.difficulty1Operators
/effectAdds or removes status effects.minecraft.command.effect1Operators
/enchantEnchants a held item.minecraft.command.enchant1Operators
/eventTriggers an event for the specified object(s)minecraft.command.event1Operators
/executeRuns a command with a changed source, position, rotation or dimension.minecraft.command.execute1Operators
/fillFills a region with a block.minecraft.command.fill1Operators
/fogAdds or removes fog settings.minecraft.command.fog1Operators
/functionRuns an mcfunction or a function tag.minecraft.command.function1Operators
/gamemodeChanges a player's game mode.minecraft.command.gamemode1Operators
/gameruleReads and writes gamerules.minecraft.command.gamerule1Operators
/gametestInteracts with gametest.minecraft.command.gametest2Operators
/giveGives an item to players.minecraft.command.give1Operators
/help, /?Shows paged command listings and command syntax.minecraft.command.help0Everyone
/itemChanges items in a slot.minecraft.command.item1Operators
/kickRemoves a player from the server.minecraft.command.kick2Operators
/killKills entities.minecraft.command.kill1Operators
/linkLinks your Java Edition and Bedrock Edition accounts into one player.jsprismarine.command.link0Everyone
/listLists the players online.minecraft.command.list0Everyone
/locateFinds the nearest structure, biome or point of interest.minecraft.command.locate1Operators
/lootRuns a loot table.minecraft.command.loot1Operators
/meSends an action message.minecraft.command.me0Everyone
/opGrants operator status.minecraft.command.op4Operators
/pardonPardon a player.minecraft.command.pardon2Operators
/particleSpawns particles.minecraft.command.particle1Operators
/permsManages the groups and users of permissions.json.jsprismarine.command.perms0Operators
/playanimationMakes one or more entities play a one-off animation.minecraft.command.playanimation1Operators
/playsoundPlays a sound.minecraft.command.playsound1Operators
/plugins, /plLists the plugins and addons running on the server.jsprismarine.command.plugins0Everyone
/randomDraws from a reproducible random sequence.minecraft.command.random0Operators
/recipeUnlocks or locks recipes.minecraft.command.recipe1Operators
/reloadReloads the server data.minecraft.command.reload2Operators
/replaceitemReplaces items in inventories.minecraft.command.replaceitem1Operators
/restartStops the server and starts it again in a new process. Only the console runs it by default.jsprismarine.command.restart0The console
/returnEnds the running function and sets what it returns.minecraft.command.return1Operators
/rideMounts and dismounts entities.minecraft.command.ride1Operators
/saySends a message to everyone.minecraft.command.say1Operators
/scheduleQueues a function for later.minecraft.command.schedule1Operators
/scoreboardTracks and displays scores.minecraft.command.scoreboard1Operators
/scriptScript debugger commands.minecraft.command.script2Operators
/scripteventSends an event with an id and a message to the scripts of behavior packs.minecraft.command.scriptevent1Operators
/setblockPlaces one block.minecraft.command.setblock1Operators
/setworldspawnMoves the world spawn.minecraft.command.setworldspawn1Operators
/spawnpointMoves a player spawn point.minecraft.command.spawnpoint1Operators
/spreadplayersSpreads players around a point.minecraft.command.spreadplayers1Operators
/stopStops the server.minecraft.command.stop4Operators
/stopsoundStops a sound.minecraft.command.stopsound1Operators
/summonSummons an entity.minecraft.command.summon1Operators
/tagAdds, removes and lists entity tags.minecraft.command.tag1Operators
/teleport, /tpTeleports entities.minecraft.command.teleport1Operators
/tell, /msg, /wSends a private message.minecraft.command.tell0Operators
/tellrawSends a rawtext message.minecraft.command.tellraw1Operators
/testforCounts entities matching specified conditions.minecraft.command.testfor1Operators
/testforblockTests whether a certain block is in a specific location.minecraft.command.testforblock1Operators
/testforblocksTests whether the blocks in two regions match.minecraft.command.testforblocks1Operators
/tickQueries or changes the tick rate, freezes the world, steps it or sprints.minecraft.command.tick2Operators
/tickingareaAdd, remove, or list ticking areas.minecraft.command.tickingarea1Operators
/timeChanges or queries the world time.minecraft.command.time1Operators
/titleShows a title, subtitle or action bar.minecraft.command.title1Operators
/titlerawControls screen titles with JSON messages.minecraft.command.titleraw1Operators
/tpsThis command will show TPS (ticks per second) averages of your server from the last 1, 5, and 15 minutes.jsprismarine.command.tps0Everyone
/transferSends players to another server.minecraft.command.transfer2Operators
/unlinkUndoes the link between your Java Edition and Bedrock Edition accounts.jsprismarine.command.unlink0Everyone
/updateChecks for a newer JSPrismarine now. Only the console runs it by default.jsprismarine.command.update0The console
/version, /aboutDisplays general server information.jsprismarine.command.version0Everyone
/weatherChanges the weather.minecraft.command.weather1Operators
/worldLists, creates, attaches and detaches the server's levels, and moves players between them.jsprismarine.command.world0Operators
/xp, /experienceAdds, sets or queries experience.minecraft.command.xp1Operators