Do Minecraft functions have inputs and outputs like conventional functions?

Now I know that technically in theory one could just use blocks to convey values in and out of any body of code. What I’m asking is whether or not a built-in syntax exists for input parameters and return values similar to what pretty much all other programming languages consider to be functions?


A function in Minecraft and a function in programming is completely different.

A function in Minecraft is just a list of commands, which can be executed in game with a single command, running commands in the function from top to bottom. The only other thing you can do with functions right now is leave comments in the code, which start with a #.

So to answer both of your questions; no.

Source : Link , Question Author : user64742 , Answer Author : Meh

Leave a Comment