New answers tagged

0 votes

How to place a red bed on a cyan carpet in Minecraft Java 1.19

Not the solution you asked for, but since you can't place anything directly over a carpet why don't you use cyan wool blocks under the bed? The result should be pretty much the same.
  • 29.2k
1 vote

How to make expanding worldborder every day?

The first issue is detecting when to change the world border. This can be done with either a daylight detector or a scoreboard that counts to 24000 and then resets. Either way, whenever you detect a ...
2 votes

Can I run several commands after /execute, instead of just one?

The other answers here are good, but, if you're using a lot of commands targeting the same entity, or something like that, you may want to use tags. For example, let's say that we have the following ...
1 vote

How do I turn off a command that's on repeat on Switch Bedrock?

You can disable command blocks via the settings menu, fix it up, then re-enable command blocks. Go into your world settings. Scroll down to the cheats section and you should see "Command Blocks ...
1 vote

How to summon an item frame with a custom name item in it? [1.14]

I needed the same, but I also wanted to place the item in an invisible frame. Combining the first two answers above with some other research, I ended up making this .mcfunction file: # summon a frame ...
0 votes
Accepted

Using /execute to detect if player is located at entity

Let's first see why yours doesnt work and work from there. Your command can be separated in basically 4 parts: execute Execute command, followed by 2 subcommands if entity @p If entity @p exists (if ...
  • 1,549
-1 votes

How do I get some other entity to rotate as me?

You can use /execute at @e[tag=entity] run tp @e[tag=entity] ~ ~ ~ ~ 0 Change @p by @e[tag=entity] else, the tp would execute at the player
1 vote

How can I start an illager raid via commands?

There appears to be an unused /raid command which manages raids. Not sure why it was not added to the game. https://tcrf.net/Minecraft:_Java_Edition#raid
1 vote

Using /execute to detect if player is located at entity

Use target selector arguments to select only entities within a 0 block radius / 0 blocks away from the player. [distance=0] will select entities in the same block as the armor_stand. [distance=..5] ...
1 vote
Accepted

Can I run several commands after /execute, instead of just one?

Commands in datapacks and commandblocks are sequential; That means we can use two different commands with the same if statement to reproduce a sequential behaviour. Also, arrows have a NBT that will ...
  • 1,549

Top 50 recent answers are included