FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

RASPBERRY PI PROJECT IDEAS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In the following line of code, what does the last number relate to?mc.setBlock(X+1, y, z, 1)
A
The type of block
B
How big the block is
C
The position of the block
D
The colour of the block
Explanation: 

Detailed explanation-1: -The syntax for the setblock command in Bedrock Edition is “/setblock <position> <tileName> [tileData] [replace¦destroy¦keep].” In this, the tags refer to the following: position refers to the x y z coordinate for each block to replace. tileName pertains to the name of the new block. tileData is optional.

Detailed explanation-2: -Open the chat box and enter “/give [your username] command block” Place the block where you want it.

Detailed explanation-3: -x: East (positive, +x) or West (negative, -x), also known as longitude in the real world. y: up (positive, +y) or down (negative, -y), altitude or elevation.

There is 1 question to complete.