Page 61 - Touchcode_C7_Flipbook
P. 61
To add two integers using function
You can add two integers using function in minecraft, by using the following block:
Blocks:
set: Use an equals sign to make a variable to store the number.
call Touchcode-7: Use a function by its name somewhere in
a program.
function defination: A function has a name that is
unique. You also give a name to a function which gives
an idea about what the code in the function does. The
name, arguments, and code for a function.
return: Return a result value from a function back to the
program.
Coding in Minecraft 59

