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?
Minecraft Functions – Do Minecraft Functions Have Inputs and Outputs Like Conventional Functions?
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft redstone – 3 outputs and 2 inputs
- Minecraft – Profiling performance of minecraft functions in datapack
- Minecraft – Custom Advancements and Functions 1.13.2
- Minecraft Java Edition – Troubleshooting Minecraft Datapack Functions Not Being Registered
- Minecraft Commands – Why Minecraft 1.14.2 Functions Not Working?
- Minecraft Java Edition – Losing Lots of Ticks on Command Functions
Best Answer
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.