MINECRAFT FARSI DATABASE

Commands

Browse curated, version-aware Commands with practical details and connected guides.

Command Syntax
Commands • Basics

Command Syntax

Command Syntax: Use a slash, command name, and ordered arguments; read errors from left to right.

1.21.8Java & BedrockIntermediate6 min
Target Selectors
Commands • Basics

Target Selectors

Target Selectors: Use @s, @p, @a, @e, and selector filters to choose command targets.

1.21.8Java & BedrockIntermediate6 min
Command Coordinates
Commands • Coordinates

Command Coordinates

Command Coordinates: Absolute X Y Z coordinates point to one fixed world position.

1.21.8Java & BedrockIntermediate6 min
Relative Coordinates
Commands • Coordinates

Relative Coordinates

Relative Coordinates: Prefix coordinates with ~ to offset them from the execution position.

1.21.8Java & BedrockIntermediate6 min
Local Coordinates
Commands • Coordinates

Local Coordinates

Local Coordinates: Use ^left ^up ^forward for movement relative to execution rotation.

1.21.8Java & BedrockIntermediate6 min
Execute As and At
Commands • Execution

Execute As and At

Execute As and At: execute as changes the executor; execute at changes the execution position.

1.21.8Java & BedrockIntermediate6 min
Execute Positioned
Commands • Execution

Execute Positioned

Execute Positioned: execute positioned moves the command context without teleporting the entity.

1.21.8Java & BedrockIntermediate6 min
Execute If and Unless
Commands • Execution

Execute If and Unless

Execute If and Unless: Gate a command by entity, block, score, biome, data, or another supported condition.

1.21.8Java & BedrockIntermediate6 min
Scoreboard Objectives
Commands • Scoreboard

Scoreboard Objectives

Scoreboard Objectives: Create an objective with /scoreboard objectives add before storing scores.

1.21.8Java & BedrockIntermediate6 min
Scoreboard Players
Commands • Scoreboard

Scoreboard Players

Scoreboard Players: Use set, add, remove, operation, and reset to manage stored scores.

1.21.8Java & BedrockIntermediate6 min
Scoreboard Display
Commands • Scoreboard

Scoreboard Display

Scoreboard Display: Show an objective in the sidebar, player list, or below names.

1.21.8Java & BedrockIntermediate6 min
Entity Tags
Commands • Entity

Entity Tags

Entity Tags: Use /tag to add lightweight labels that selectors can test later.

1.21.8Java & BedrockIntermediate6 min
Teams
Commands • Entity

Teams

Teams: Use teams for grouping, friendly-fire rules, colors, and collision behavior.

1.21.8Java & BedrockIntermediate6 min
Gamerule
Commands • World

Gamerule

Gamerule: Read a gamerule first, then change only the rule required by the world design.

1.21.8Java & BedrockIntermediate6 min
Set Time
Commands • World

Set Time

Set Time: Use /time set or /time add to control the daylight cycle value.

1.21.8Java & BedrockIntermediate6 min
Set Weather
Commands • World

Set Weather

Set Weather: Use /weather clear, rain, or thunder with an optional duration.

1.21.8Java & BedrockIntermediate6 min
Set Difficulty
Commands • World

Set Difficulty

Set Difficulty: Use /difficulty with peaceful, easy, normal, or hard.

1.21.8Java & BedrockIntermediate6 min
Change Gamemode
Commands • World

Change Gamemode

Change Gamemode: Use /gamemode and an explicit target when changing another player.

1.21.8Java & BedrockIntermediate6 min
Teleport Command
Commands • Entity

Teleport Command

Teleport Command: Use /teleport with a target and destination, checking dimension and facing.

1.21.8Java & BedrockIntermediate6 min
Give Command
Commands • Inventory

Give Command

Give Command: Use /give target item count and verify the item identifier for the edition.

1.21.8Java & BedrockIntermediate6 min
Summon Command
Commands • Entity

Summon Command

Summon Command: Use /summon entity coordinates, then add data only after the base summon works.

1.21.8Java & BedrockIntermediate6 min
Effect Command
Commands • Entity

Effect Command

Effect Command: Apply, clear, and time status effects with an explicit target and amplifier.

1.21.8Java & BedrockIntermediate6 min
Enchant Command
Commands • Inventory

Enchant Command

Enchant Command: Hold a compatible item before using /enchant target enchantment level.

1.21.8Java & BedrockIntermediate6 min
Clear Command
Commands • Inventory

Clear Command

Clear Command: Test item filters with a zero count before removing inventory items.

1.21.8Java & BedrockIntermediate6 min
Fill Command
Commands • Building

Fill Command

Fill Command: Use two opposite corners and stay within the command volume limit.

1.21.8Java & BedrockIntermediate6 min
Clone Command
Commands • Building

Clone Command

Clone Command: Define source corners and a destination corner; test masked or filtered mode on a copy.

1.21.8Java & BedrockIntermediate6 min
Setblock Command
Commands • Building

Setblock Command

Setblock Command: Place one block with replace, keep, or destroy behavior as needed.

1.21.8Java & BedrockIntermediate6 min
Locate Command
Commands • Navigation

Locate Command

Locate Command: Locate structures or biomes with the syntax supported by your edition.

1.21.8Java & BedrockIntermediate6 min
Loot Command
Commands • Inventory

Loot Command

Loot Command: Route a loot table result to inventory, a container, the world, or an entity.

1.21.8Java & BedrockIntermediate6 min
Particle Command
Commands • Presentation

Particle Command

Particle Command: Spawn a small particle test first, then tune position, spread, speed, and viewers.

1.21.8Java & BedrockIntermediate6 min
Playsound Command
Commands • Presentation

Playsound Command

Playsound Command: Play a sound for selected players with source, position, volume, and pitch.

1.21.8Java & BedrockIntermediate6 min
Title Command
Commands • Presentation

Title Command

Title Command: Set title timing before showing title, subtitle, or actionbar text.

1.21.8Java & BedrockIntermediate6 min
Tellraw Command
Commands • Presentation

Tellraw Command

Tellraw Command: Build JSON text in small valid components before adding clicks or hover events.

1.21.8Java & BedrockIntermediate6 min
Spawnpoint Command
Commands • World

Spawnpoint Command

Spawnpoint Command: Set a player spawn position and verify that the destination remains safe.

1.21.8Java & BedrockIntermediate6 min
Setworldspawn Command
Commands • World

Setworldspawn Command

Setworldspawn Command: Set the shared world spawn, then test spawn-radius behavior.

1.21.8Java & BedrockIntermediate6 min
Worldborder Command
Commands • World

Worldborder Command

Worldborder Command: Set center first, then change size gradually and configure warning distance.

1.21.8Java & BedrockIntermediate6 min
Advancement Command
Commands • Progression

Advancement Command

Advancement Command: Grant, revoke, or test Java advancements with precise scopes.

1.21.8Java & BedrockIntermediate6 min
Function Command
Commands • Automation

Function Command

Function Command: Put tested commands in a datapack function and call it by namespace.

1.21.8Java & BedrockIntermediate6 min
Schedule Function
Commands • Automation

Schedule Function

Schedule Function: Schedule a function after a delay and choose replace or append intentionally.

1.21.8Java & BedrockIntermediate6 min
Data Command
Commands • Data

Data Command

Data Command: Use data get before data modify, and work on copied test entities or storage.

1.21.8Java & BedrockIntermediate6 min