New answers tagged

0

The command you need is: /execute at [player] run summon [mob] ~ ~ ~ Of course, you can tweak it too, with NBT data, such as a Skeleton Horse trap: /execute at [player] run summon minecraft:skeleton_horse ~ ~ ~ {SkeletonTrap:1} Or, a rainbow Jeb sheep: /execute at [player] run summon minecraft:sheep ~ ~ ~ {Color:15,CustomNameVisible:1b,CustomName:"{\&...


2

You can do this with the minecraft:become_charged spawn event: /summon creeper ~ ~ ~ minecraft:become_charged If you want to also give it a custom name, put the name after the spawn event: /summon creeper ~ ~ ~ minecraft:become_charged "Charged Creeper" Note: Only one spawn event can be used when summoning a mob, so you cannot use other spawn ...


1

The BE equivalents of these tags are can_place_on and can_destroy respectively. You can use these in the /give and /replaceitem commands using the final [components: json] argument. For example, the syntax of /give is: give <player: target> <itemName: Item> [amount: int] [data: int] [components: json] The BE equivalents of the JE commands in the ...


2

Bedrock Edition uses data values to store the potion effect used by a potion or Tipped Arrow. To give a potion of tipped arrow with the specified effect, you use the command: /give <player> potion <data value> where the data value is looked up from this table: Tipped arrows use a similar syntax: /give <player> arrow <data value> (...


0

In fact, there is no need for an NBT here to give a potion. You just need the data value for the item: /give @a potion 1 7 Here is a table of data values for the potions.


3

On a computer, you can do this with the “pick block” control, which defaults to the middle mouse button. Put your crosshair over the block you want to get and then press Ctrl + pick block, which will put that block with its data into your inventory. Of course, this will only work in creative mode. Unfortunately, this cannot be done on touch devices without “...


3

A space for a name is now included in the /summon command. Let's look at the documentation for the command, specifically the syntax. summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] [nameTag: string] summon <entityType: EntityType> <nameTag: string> [spawnPos: x y z] So looks like we can type an entity name right into ...


0

In the console, type /execute at [playername] run and paste the summon command after (all one command, don't hit enter after typing the first part in).


1

Structure blocks are how you can save a certain region of blocks to a file or load from files into your world. A GUI is a graphical user interface, sort of like the thing that opens when you open a chest. When the wiki says: When placed, use the structure block to open the structure block GUI. The GUI opens only if the player is in Creative mode, and has ...


0

First of all, are you sure you're getting the target selector right? Using scores is now different in the newest version of Minecraft Bedrock Edition. Instead of: @a[score_DEATHS_min=20] Try: @a[scores={DEATHS=20..}] And to solve your original problem, I directly targeted players to teleport in the /tp command. /tp @a[scores={DEATHS=20..}] 10 20 30 ...


-1

Depending on if the creator wants it private or not, No. According to Creative Commons which is what these commands are apart of, You can take/Edit any thing made by the creator but must credit the original creator.


1

Unfortunately, in Bedrock Edition, this is not possible, as complex NBT tags don't exist. Even if it would be possible, then you would need command blocks for every player in the server. But in Java Edition, this is possible: Repeat command block, always active /execute at @a[nbt={SelectedItem:{id:"minecraft:nether_star"}}] run tp @s 0 64 0 ...


1

1.13+ Update Data values have been abolished in favour of separate item IDs. So now instead of dye with the data value for a colour, they now go by the item name. Lapis Lazuli's item name is minecraft:lapis_lazuli /give @s minecraft:lapis_lazuli


0

Minecraft 1.13 and newer versions no longer rely on cryptic numbers to encode things like facing, meaning that you can just do /setblock x y z repeater[facing=east]


0

Have you yet tried this command? /tellraw @a {"selector":"@a[team=teamA]"} This command will list all the players on team teamA.


1

I ended up using /testfor @a[rm=10] to check if there were any players outside the range, then inverting the comparator output from that. The other answers here were a bit complicated, but they got me pointed in the right direction - I had completely forgotten that rm was a thing.


2

On bedrock, you can still achieve a slightly sloppier version: execute @a[tag=!assassin] ^^^1 detect ~~~ air 0 execute @a[tag=assassin,r=2] ~~~ tp @s @s Unfortunately, you'll have to copy and paste this command into chain conditional always active blocks attached to the original repeat always active command block, changing ^^^1 to ^^^2, ^^^3 etc. for each ...


1

It is impossible to specify data values in can_place_on or can_destroy. Cracked stone bricks are just the stonebrick block ID with the data value 2. You can try using the infested stone bricks, they are actually different blocks under the ID monster_egg. These use the same data values, but they're able to be differentiated with block ID. Just remember, don't ...


4

You are not using the target selector incorrectly. It's because the sound from /playsound is being played cannot be heard from locations outside the 14-block dome you have found. Using a target selector allows the selected players to hear the sound only if they're within range. The range is 16 blocks, but because your command blocks are slightly farther out, ...


2

I tested this by placing a command block with the /effect command with a pressure plate on top. I would look up, place a sand block next to a fixed block, and exit fly mode so that I would land on the pressure plate while it is falling. Result in Bedrock Edition: Falling Block cannot have effects Block of TNT cannot have effects Result in Java Edition ...


3

What is the problem with your trials? The only reason your old command works is because the chest shares slot numbers with your inventory's hotbar and top two rows. So, with your command, the item in inventory slot 0 (first hotbar) goes to chest slot 0, inventory slot 1 to chest slot 1, and so on. A single chest uses slot numbers from 0–26, numbered in ...


2

The 1.13 equivalent of /entitydata for modifying the data of a entity is /data merge, not /data modify.


0

Although there is not a solution to this, a solution would be using a lodestone at 0, 0, assuming you are in 1.16. Though tedious, you could take ALL your compasses, and use them on the lodestone. Now, all of your compasses will point at the origin. However, every compass that you make must be used on the lodestone. I hope that this helps.


0

It is not possible to do this. However, you can use NBT and passive bedrock-breaking commands in command blocks. First, have a command block set to repeat, with command: /execute @a nbt={SelectedItem:{id:"minecraft:wooden_pickaxe",tag:{display:{Name:"Bedrock Breaker"}}}} This will check if a player is holding a wooden pickaxe with name &...


2

This is a confirmed, unresolved bug. There's not much you can do to fix it for now.


0

I just had a look at https://minecraft.gamepedia.com/Bedrock_Edition_data_value using find in page for "cracked" and the only results were 'cracked_nether_bricks' and 'cracked_polished_blackstone_bricks'. Try /give @p stone_pickaxe{CanDestroy:["minecraft:cracked_stone_bricks"]} 1 , which is the java command. If that doesn't work, I don't ...


-1

I found this on another page - I don't remember exactly but it is a tag called [hanging:1]. If I find which page I originally found it on I will leave a link /setblock ~ ~ ~ soul_lantern[hanging=1] This bit of code should work, I will edit it as need be.


0

Run Once: /team add VIP /team modify prefix {"text":"[VIP]: ","color":"green"} /scoreboard objectives add Sidebar dummy {"text":"Side Bar","color":"blue"} Loop: /team join VIP @p[tag=VIP] Chain: /scoreboard players set @a[tag=VIP] Sidebar 0


1

There are two different problems with the command: The second at @s repositions the command to the armor stand, negating the previous positioned ~ 45.518 ~. Target selectors by default have no range limit, so even if the command were positioned correctly, it would still find the armor stand wherever on the map it is. The corrected command would be: ...


2

While I'm not aware of a command-based system that would achieve your objective the way you describe, it would certainly be possible to do this using entities and execute commands. The method I would use for this is below. I hope you find that it works for you and if you have any questions, please post a comment. Method First, put armour stands on top of ...


0

What you can do, and what is working in minecraft 1.15.2 (should also work in 1.14.4 and 1.16.x), is to append the player-inventory-data to the Item-data in the chest/hopper/etc. this can be done like this: /data modify block <posX> <posY> <posZ> <container> append from entity <entity_selector> <container> an example: if ...


1

Using the simple method; Attributes? No. In the JAVA version, this would normally be done using NBT tags and attributes. The attribute that changes this behaviour is called Name:generic.followRange, and would be modified for a summoned monster using /summon <m> <x> <y> <z> { Attributes: [{Name.generic.followRange,Base:<r>}] }...


0

You have to make Lobby A far enough away from Lobby B and C so that the command block doesn't affect it. I am also pretty sure you need to add @a


2

I am Leon Nikolai Engelsvold, the creator of the Durability Hud Datapack. If you have installed the datapack from any site other than Planetminecraft, curseforge or Github it's likely you have an outdated version, as I do not administer listings on other sites. I did at the time not consider servers using the datapack. Earlier versions of the Datapack ...


-1

/execute as PLAYER/TARGET run execute at @s run tp @s ~ ~ ~ this teleports a target to its current location. I tested it on a bunch of chickens so I should work. The server console should be able to see the feedback from this command, thus showing the coordinates of a player/mob. Change PLAYER/TARGET to your desired target. @a will select all players be ...


0

The correct path is: Item.tag.AttributeModifiers[] to remove all attribute modifiers from a dropped item. If you've already tried this, then maybe your setup is wrong. The command you'll need is: /data remove entity @e[type=item,limit=1,sort=nearest] Item.tag.AttributeModifiers[]


1

First of all, the command you found is a Bedrock edition command. You can use the CanPlaceOn and CanDestroy tags for MCJE. /give @s minecraft:wooden_pickaxe{CanDestroy:["minecraft:bedrock"]} but there's still a problem, because bedrock can't be broken, because that's the whole point, it's a barrier to stop you falling into the void! So even with a ...


0

The Minecraft Wiki is definitely the first place you should look for command help. If you haven't heard of it, trust me, it is a lifesaver in commands. The command you'll want to use is the /tag commmand. This lets you tag your mob with a recognizable text string and reference it again afterwards using the same string. Like this: /tag @e[name="...


3

The operators <, <=, =, >=, and > are used to compare your score with another player's score. execute if score Alice Kills > Bob Kills run tellraw @a {"text":"Alice is winning!"} In your command, 200 is actually a player name: execute if score XX mana < 200 mana # If XX's `mana` score is less than `200`'s `...


0

Keep running these two commands in repeating command blocks: /execute @a ~ ~ ~ effect @e[type=zombie,rm=16] slowness 1 255 true /execute @a ~ ~ ~ effect @e[type=zombie,r=16] slowness This solution works for one player only. Need a solution for multiplayer? Comment below.


5

Here is an answer that works no matter how many players there are. Place down an always active repeating command chain of 2 blocks. Commands inside: Tell everyone with a red_mushroom under them to give themselves an item. /execute @a ~ ~ ~ detect ~ ~-1 ~ red_mushroom 0 give @s mushroom Tell everyone with with a red_mushroom under them to set the block ...


1

Use /summon to summon the entity normally. But immediately after, run the following /spreadplayers command: /spreadplayers <centerX> <centerZ> 0.0 <maxRange> false @e[name="THE_MOB_TO_ACT_UPON"] Replace the following things: centerX and centerZ: The centre of your arena. maxRange: How far from the centre can your entity be? The ...


4

There is a simple fix to this: Have a Repeat command block set to Always Active, with this command: /execute @a ~~~ detect ~~~ red_mushroom 0 fill ~~~ ~~~ air There is a house/pentagon-shaped object with dots on it, and it should be on top, and pointing to a chain command block. The chain command block should have your command that gives the player a ...


0

Instead of using /data modify, use /data remove. /data remove @e[type=villager,name="TheVillagerToActUpon",limit=1] Offers.Recipes[{buy:{id:"minecraft:stone"},sell:{id:"minecraft:stone"},Uses:5}] Replace the 5 in Uses:5 to say how many times the trade can be used. Put the command in a repeating command block.


0

try making it so the entity sets your player a dummy score of 2 when within a certain radius and having the game subtract the dummy by 1 every tick. if the score reaches 0, summon a new entity


2

First of all, in 1.16, the attribute modifiers have been renamed. Therefore, generic.attackDamage is now generic.attack_damage. Then, you must get the UUID correct. The UUID is now stored as an TAG_Int_Array instead of two TAG_Longs. So instead of: UUIDLeast:1234,UUIDMost:5678 --> UUID:[I;12,34,56,78] Therefore, here is the replacement for your UUID: ...


2

The command /effect give @e[name="name of your dog here"] health_boost 1000000 255 would give your wolf an exorbitant amount of health. You can add other effects, such as resistance to make it unkillable, strength to make it kill nearly everything, etc., etc.


0

On Java Edition, the command /tp @e[type=Wolf] @p should work, however, be aware that this will only work if your dog is in a loaded chunk, which is usually 8 chunks around you


1

On Bedrock Edition you could do a teleport command to teleport all wolves in loaded chunks to you. If I can recall correctly, the command is /tp @e [type=wolf] @s. I can't confirm if this command is the same for Java Edition, but it could be possible that they're the same. I'd recommend doing the command in a safe, medium/large enclosed room, as in my ...


1

First, you can stop a specific item from despawning unless it is picked up and then dropped again by setting it's Age to -32768 with a command block. Second, you can add arbitrary custom NBT data to an item, which will be preserved across drop-and-pickup cycles. You can combine these two techniques to make specific items never despawn by running the command: ...


Top 50 recent answers are included