your current location:首页 > news>Minecraft subcommand nesting introduction

Minecraft subcommand nesting introduction

2024-11-30 21:07:58|Myriagame |source:minecraft skins

Minecraft subcommand nesting is something many players want to know. Minecraft has a very high degree of freedom, and various versions are constantly being updated. Many players like this game. Let's take a look at the Minecraft execute subcommand nesting introduction.

Minecraft commonly used execute subcommand nesting introduction

Common execute subcommand nesting combination

Used to trigger when an entity steps on a specific block:

Minecraft subcommand nesting introduction

/execute as @a at @s if block ~ ~-1 ~ <block> run <command>

Used to execute commands at the entity's location:

/execute at @a run <command>

Used to place a block 2 squares away from the player's crosshairs:

/execute as @a at @s run setblock ^ ^ ^2 <block>

Used to detect whether the player has reached a specific location:

/execute if entity @a[x=,y=,z=,distance=..1] run <command>

What are the advantages and disadvantages of execute command after 1.13

The execute command has no subcommands in versions below 1.13, which makes many things difficult to do, because the syntax at that time was not separated, and the executor, execution coordinates and execution direction were mixed together. It was very difficult to control a certain parameter alone, but after 1.13, the execute command was split into multiple structures, allowing players to control individual parameters more easily, which gradually increased the appearance rate of command blocks in later versions. But at the same time, the changes in the execute command also increased the difficulty of using the execute command. Many novice command players find it difficult to distinguish between the executor, execution position, execution angle, etc., and the changes in the execute command also make it impossible to quickly port many maps below 1.13 to the new version. However, we have to admit that the changes in the execute command have indeed played a decisive role in the development of MC commands. Data packets and maps often cannot do without the execute command. The changes to the execute command cut the MC command world in half, making MC maps and data packets more colorful. I also hope that MC's future commands can be improved to a higher level!