Chapter 7

20 0 0
                                    

This chapter will be about the /setblock command. This command can place blocks for you and is more useful in a command block. The syntax for the command is setblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag]. first we shall talk about the <x>,<y>, and <z> parts of the command. These are the axis and you need to put in a number. the number can have a tilda ~ before the numbers and it will place the block relative to your position. The next part we will talk about is the <TileName> part of the command. This chooses the block your placing. You can place things in spots you wouldn't expect or see without commands, such as torches in the air and glass with redstone on it. Now we will talk about the [dataValue] aspect of the command. This represents the damage value of the block, for example what kind of wood plank you are placing as /setblock ~ ~ ~ planks 3 places a jungle plank. Now we would talk about the oldBlockHandling part of the command if only I knew more about it. Ok, now we will say about [dataTag] section of it. This, as expected, is where you would put the data tag if there is one. Only the data tags directed towards blocks can apply to this command and work. But some NBT tags must first have the EntityBlockTag first applied as in {EntityBlockTag:{Command:/say Hi}} this would work for a command block and would already have the command /say hi inside.

Minecraft CommandsWhere stories live. Discover now