You can use the replaceitemInfo command. Show
Unfortunately, there are no NBT tags on Minecraft Bedrock, but two of those three are possible to do with commands. While you can't remove a mob's AI, you can keep it in one location by placing an always active repeating command block with the command tp @e[type=<entity_name>] <x> <y> <z>. For example, tp @e[type=zombie] 0 4 0 which on a superflat world would keep the zombie in place at 0, 0. To make an entity invulnerable, you need to use /effect. For the zombie, use effect @e[type=zombie] resistance 1000000 255 true. This will apply Resistance 255 to the zombie for 1000000 seconds without particles. I am unaware of a way to make any entity silent through commands, unfortunately, but at least those two are able to be done. Commands disable Minecraft achievements but can make the game a lot faster. Instead of spending lots of time trying to find or spawn a particular mob, players can summon them in the time it takes to type 30 characters. The summon command can be used to bring any mob to the game in a matter of moments. Summoning each Minecraft mobThe command for summoning is pretty simple. "/summon mob". Players just need to fill in the mob name, though there are a few exceptions. The command remains the same for both Minecraft Java and Bedrock Edition, and is one of the simplest to use. Passive mobsPassive mobs are harmless as they won't attack the player under any circumstances. Here's the list to summon each mob passive in Minecraft:
Neutral mobsSome commands require positional tags, and these are usually coordinates. However, these aren't mandatory by any means. Here's how to summon neutral mobs, which can turn hostile when provoked:
Hostile mobsPassive and neutral mobs are useful, but hostile mobs are usually summoned more often because of the challenge and their loot. Here's how to summon them:
Almost all Minecraft mobs can be summoned by simply inserting their name at the end of the summon command. For more Minecraft content, subscribe to our YouTube channel! For detailed guides, walkthroughs, tips & more, check out SK Minecraft Wiki Edited by Sijo Samuel Paul Given below is a detailed list of all Commands in Minecraft. List of CommandsabilitySets a player's ability. /ability <player: target> [abilities] <true|false>Legal values for abilities are:
This command requires Education Edition features enabled. alwaysdayLocks and unlocks the day-night cycle. /alwaysday <value:bool>Sets /gamerule dodaylightcycle to false, and sets /time to 5000. This is the same as the Always Day slider in the Game Settings. The command can also be given as daylock. clearClears the Player's inventory. /clear <player: target> <itemName:string> <data:int> <maxCount:int>
cloneCopies blocks from one place to another. /clone <begin x y z> <end x y z> <destination: x y z> [maskMode] [cloneMode] [tileName]Clones blocks from the cube defined by begin and end into the destination. The maskMode defines how to handle destination blocks, and cloneMode defines handling of source. If maskMode is filtering, the tileName specifies the block to filter on. Legal values for maskMode are:
Legal values for cloneMode are:
See also /setblock and /fill commands. connectConnects to a server in-game. /connect <serverURi: string>
deopRevokes operator status for one or more players. /deop <player: target>See also /op , for giving this status. difficultyChanges the difficulty mode. /difficulty intValues for int are: '0' for peaceful; '1' for easy; '2' for normal; '3' for hard; effectGives or removes a status effect from a player. /effect <player: target> <effect: string> [seconds: int] [amplifier: int] [hideParticles: bool]enchantEnchant player(s) held item. /enchant <player: target> <enchantmentId: int> [level: int] /enchant <player: target> <enchantmenName: string> [level: int]Enchant the item the targeted player(s) are holding, with the name (or numbered) enchantment at a given level. Maximum level for a given encha ntment can't be bypassed. executeExecutes a command which can be linked to a target or a condition related to another block, as tested in the /testforblock command. /execute <command: string> /execute <origin: target> <position: x y z> <command: string> /execute <origin: target> <position: x y z> <detect: string> <detectPos: x y z> <detectBlock: string> <detectData: int> <command: string>The command in all examples can be any command (including the execute command it self), and are relative to the targeted player(s)/entities. In the latter two examples, the tile notation is used relative to the position of the origin target. The last variant, with the detect string equal to "detect", the command is only executed if the condition, as if it was given to testforblock, is matched. fillFills a region with a given block /fill <from: x y z> <to: x y z> <tileName: string> [tileData:int] [oldBlockHandling]Fills the entire cube defined by from and to with the block named tileName (optionally specifying a tileData value). The oldBlockHandling defines how to handle existing blocks in the region. Legal values for oldBlockHandling are:
See also /setblock and /clone commands. functionRuns commands found in the corresponding function file. /function <name:unknown> /function <name:string>gamemodeChanges gamemode for a player. Using 'c', 'creative', 's', 'survival', 'a', 'adventure', '0', '1', or '2', the gamemode for the targeted player can change. gameruleSets or queries a game rule value. /gamerule <rule: string> <value: bool | int> /gamerule <rule: string>Used to change of game mechanic specified by rule. All rules except keepinventory are set False by default.
giveGive a targeted player(s) item(s). /give <player: target> <itemName: string> [amount: int] [data: int] [components: json]Adds items to the targeted player(s) inventory. Multiple items of the same type can be given by specifying an amount, and some characteristics of the item can be changed by providing the optional data argument. You can also add CanPlaceOn and CanDestroy data tags to items through this command. helpDisplays help related to commands. /help <command: string>Lists help related to a specific command. In 0.16.0 this text is rather short (or missing). /help [page: int]Typing /help optionally followed by a number gives a list of commands. With a number, like 3, it shows the third help page. immutableworldSets the immutable state of a world. /Immutableworld <value: bool>Sets ability to place blocks for every player in a world. This command requires Education Edition features enabled. killKills (or removes) a player or an entity. /kill [target: target]Without argument kills the Player itself. Using a player's name would kill that player, and /kill @e[type=creeper] would remove all creepers in loaded chunks. See /summon to spawn entities. listLists all online players of the current game, and maximum players allowed. /listlocateLocates the nearest selected structure. /locate <feature: string>The command only gives the coordinates of the nearest structure, the Player must teleport/travel to it themselves. meDisplays custom message in chat /me <string>Displays custom chat message starting with player's name, but without the player's name in square brackets. mixerMixer interactivity control /mixer <stop: string> /mixer <scene: string> <sceneName: string> /mixer <start: string> <version: int> <shareCode: string>Used in conjunction with Microsoft's (formerly Beams's) Mixer app for livestreaming Minecraft sessions. mobeventControls what mob events are allowed to run /mobevent <event: string> <value: bool>Legal values for event are:
opGives operator status to one or several players /op <player: target>See /deop , which revokes this status. particleCreates a particle emitter. /particle <effect: string> <position: x y z>
playsoundPlays a built-in sound. /playsound <sound: string> <player: target> <position: x y z> <volume: float> <pitch: float> <minimumVolume: float>
reloadReloads all function files from all behavior packs. replaceitemReplaces inventory items. /replaceitem <block:string> <position: x y z> <slotType: string> <slotId: int> <itemName: string> [amount: int] [data: int] /replaceitem <entity:string> <target: target> <slotType: string> <slotId: int> <itemName: string> [amount: int] [data: int]The only valid slotType for block is slot.container. Valid block containers are chests, furnaces, dispensers, droppers, hoppers, and brewing stands.
The slotId parameter is zero-based. For example, the 36 slots of the player inventory are numbered 0 to 35. saySays something to all players. /say <message: string>See also /tell for addressing specific player(s). scoreboardTracks and display scores for various objectives. /scoreboard objectives add <objective: string> dummy [displayname: string] /scoreboard objectives removed <objective: string> /scoreboard objectives list /scoreboard objectives setdisplay <list|sidebar> [objective: string] [ascending|descending] /scoreboard objectives setdisplay belowname [objective: string] /scoreboard players list [playername: target] /scoreboard players reset <player: target> [objective:string] /scoreboard players test <player: target> <objective:string> <min: wildcard int> [max: wildcard int] /scoreboard players random <player: target> <objective: string> <min: int> < max: int> /scoreboard players <add|remove|set> <player: target> <objective: string> <count: int> /scoreboard players operations <targetName: target> <targetObjective: string> <operation: operation>setmaxplayersSets maximum number of players for current game session. The max amount of players to 30. /setmaxplayers <maxPlayers: int>setblockChanges a single block at a given position. /setblock <position: x y z> <tileName: string> [tileData: int] [oldBlockHandling]Replaces the block according to the following values of oldBlockHandling:
See also /clone and /fill commands. setworldspawnSets the world spawn /setworldspawn [spawnPoint: x y z]Sets the worlds spawn point to given position. If position is not given, it defaults to the given players current position. After succesfully setting the spawn point, the Compass now points to this point. spawnpointSets spawn point for targeted player(s) /spawnpoint [player: target] [spawnPos: x y z]Sets the spawn point of a player to the given position. If neither it is given default to current player and current position. Does not affect the compass. spreadplayersTeleports entities to random locations within a radius /spreadplayers <x:rotation> <z:rotation> <spreadDistance: float> <maxRange: float> <victim: target>stopsoundStops a currently playing sound. /stopsound <player: target> [sound:string]summonCreates an entity at any given position. /summon <entityType: string> <spawnPos: x y z>Spawns the named entity at your given position. I.e. /summon mushroomcow ~ ~ ~. Note that position must be specified. See /kill for removing entities. tagManages tags stored in entities. /tag <entity: target> add|remove <name:string> /tag <entity: target> listChanges attributes of an entity to achieve custom effects. Can be used to add abilities or remove designed limitations from a single mob. tellSends a private message to one or more players. /tell <recipient: target> <message: string>Only targeted player(s) will receive the message. The command can be abbreviated as msg or /w. See also /say if the message is for everyone. tellrawSends a JSON message to players /tellraw <target: target> <raw json message: json>Used to send messages to player with colorful font effects. testforTests for existence of an entity /testfor <victim: target>When used with a target selector specifying coordinates, can be used as motion sensor. testforblockTests whether a block is in a given location /testforblock <position: x y z> <tileName: string> [dataValue: int]Checks whether the given position has the given block. Reports back through texts in the chat window. testforblocks/testforblocks <begin: x y z> <end: x y z> <destination: x y z> [mode]The begin and end arguments specifies the source regions which are matched against a equally sized region starting at destination. Legal values for mode are:
A succesful match will list number of matching blocks. The region to match might overlap, but it must not be too large. tickingareaAdds areas that update without any Players in them. There can be a maximum of 8 in a world. The maximum area that can be made is 8x8 chunks. /tickingarea add <from: x y z> <to: x y z> [name: string] /tickingarea add circle <center: x y z> <radius: int> [name: string] /tickingarea remove <name: string> /tickingarea remove <position: x y z> /tickingarea remove_all /tickingarea list [all-dimensions]timeChanges or queries the world's game time. /time add <amount: int> /time query <time: string> /time set <time: string> /time set <time: int>A full day in Minecraft equals 24000 ticks, approx 20 minutes in real time. A day starts at 1000, and night starts at 13000. When querying day refers to whole days, daytime refers to gameticks of current day, and gametime refers to total amount of gameticks since current game started. titleDisplay a message to the players device above the player. /title <player: target> <title: string> <titleText: string>Does not appear in chat. Special effect similar to a movie title. titlerawDisplays screen titles with JSON messages. /titleraw <player: target> title|subtitle|actionbar <raw json titletext: json>Does not appear in chat. Special effect similar to a movie title with colorful font effects. toggledownfallChanged whether there is downfall or not. /toggledownfallIf it rains or snows, it'll stop doing so, and vice versa. tpTeleports an entity to a given coordinate. /tp <destination: target> /tp <destination: x y z> [y-rot: int] [x-rot: int] /tp <victim: target> <destination: target> /tp <victim: target> <destination: x y z> [y-rot: int] [x-rot: int]Teleports either the Player, or a given victim player to the specified destination. Additionally rotates the Player. This command has the interesting side effect of displaying the target coordinates, so that doing a /tp ~ ~ ~ will actually tell the current coordinates of the Player. The command can also be spelled out as /teleport. videostreamAttempts to connect to the websocket server to send a video stream. /videostream <serverURI: string> <screenshotSendFrequency: value>videostreamactionPerforms a videostream related action. /videostreamaction none|closeweatherSets the current weather for a given duration. /weather <type: string> [duration: int]Sets the weather type to either clear, rain or thunder. Rain becomes snow in a cold biome. Duration, if not set, is random between 6000 and 13000 gameticks. worldbuilderToggle World Builder staus of a caller. /worldbuilderAllows an individual player the option to toggle the player's own ability to place blocks. This command requires Education Edition features enabled. wsserverConnects to an automation server (developer use only). /wsserver <serverUri: string>Unknown usage, reportedly used by developers only. Connects to a websocket server using an unknown protocol. xpAdds experience to the targeted player. /xp <amount: int> <player: target> /xp <amount: int>L <player: target>In the first variants it adds the amount of experience to the targeted player. If the player adds the L after the amount, it adds levels instead of only experience points. |