SLASHKIT

0commands
← Site
Edition
Run in
No matchesTry a shorter word — “tp”, “xp”, “score”…

Minecraft command questions

What is SlashKit?

A free Minecraft command generator for Bedrock and Java Edition. Pick from 92 command templates in eight categories, fill in the options, and copy a finished command for chat or a command block.

How do I turn on cheats so commands work?

Bedrock: in your world’s settings, under Cheats, turn on Activate Cheats (this switches off achievements for that world). Java: turn on Allow Commands when you create the world (it was called Allow Cheats in older versions), or open an existing world to LAN with Allow Commands on. On a server you need operator (op) permission.

What is the keep inventory command?

Bedrock: /gamerule keepInventory true. Java 1.21.11 and later: /gamerule keep_inventory true. Older Java versions used keepInventory. Change true to false to turn it off.

How do I get a command block?

With cheats on and in Creative mode, run /give @s command_block. On a Java server, command blocks also need enable-command-block=true in server.properties.

Are Bedrock and Java commands the same?

Many are similar, but the syntax often differs. Giving 10 XP levels is /xp 10L @s on Bedrock but /experience add @s 10 levels on Java, and some commands exist in only one edition. Set SlashKit’s Edition switch and it writes the right version.

See all 16 questionsShow fewer

Common commands

How do I teleport to coordinates?

/tp @s 100 64 -200 moves you to x 100, y 64 (height), z -200. Use ~ for relative positions: /tp @s ~ ~10 ~ lifts you 10 blocks.

How do I find a village?

Bedrock: /locate structure village. Java: /locate structure #minecraft:village. The game replies with coordinates you can teleport to.

How do I change game mode?

/gamemode creative, or survival, adventure or spectator. Add a player name or selector to change someone else’s, for example /gamemode survival @a.

How do I make it day, and keep it day?

/time set day makes it morning. To stop the clock: on Bedrock, /daylock true; on Java 1.21.11 and later, /gamerule advance_time false (older Java versions used doDaylightCycle).

What do @p, @a, @r, @s and @e mean?

They’re target selectors: @p is the nearest player, @a all players, @r a random player, @s whoever runs the command, and @e every entity. SlashKit’s selector builder adds filters such as type, distance and name.

What does ~ mean in a command?

~ means relative to where the command runs, so ~ ~1 ~ is one block above. ^ is relative to the direction you’re facing: ^ ^ ^5 is five blocks straight ahead.

Using SlashKit

Why isn’t my command working?

Check that cheats are on, that you have operator permission on a server, and that SlashKit’s Edition switch matches your game. Commands can change between versions: Java 1.21.11, for example, renamed every game rule (keepInventory became keep_inventory).

Can I use SlashKit on Xbox, PlayStation or Switch?

Yes. SlashKit runs in any web browser, so open it on your phone or tablet and type the command into your game. On a computer or mobile device you can copy and paste it straight in.

Does SlashKit work offline?

Yes, once it has loaded. You can also add it to your home screen like an app. Your saved commands, kits and history stay in your browser on that device.

Is SlashKit free?

Yes. Every feature is free, with nothing to buy and no account. Ads from Google AdSense, set to non-personalised, help keep it free.

Is SlashKit an official Minecraft product?

No. It isn’t approved by or associated with Mojang or Microsoft, and every template is a guide: confirm a command works in your version before relying on it.

Output Chat · Bedrock
Pick a command above to start building…

Recent commands

Nothing copied yet this session.

About

SLASHKIT
Version 1.1.0 · Southam Apps
A command builder for Minecraft: Bedrock Edition and Java Edition. It runs in your browser and keeps your saved commands on your device, with no account, analytics or tracking of our own. Ads from Google AdSense help keep it free.
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
Made in Aotearoa New Zealand

My SlashKit

Builders 🔒 Pro
Unlock Pro to use the rich-text, selector and coordinate builders.
Rich text builder
Bedrock uses § colour/style codes; click & hover aren’t supported in-game, so they’re left out here.
Selector builder
Coordinate tools
Y stays the same across dimensions.
Relative offset (~)
Copied