mojira.dev
MC-118077

/function only executes the first command in the file

Included is the .mcfunction file that I tried to execute. I managed to call it using the /function command just fine, but when it executes only the first command executes. I tried it both with a double space separating the individual commands and without any extra spaces separating the commands, as well as using the /reload command several times.

Attachments

Comments 9

Weird. Cannot reproduce using your function file: Executed 639 command(s) from function 'bla:addobjectives'

That is strange. I tried various different methods and not one of them worked.

Just uploaded a screenshot showing the command block output

Can't see from your screenshot if you're running Minecraft under Linux/BSD, etc, or Windows. According to the line breaks in your function file, you're using Linux or so. Maybe it's having issues with the line break format on operating systems that only uses the linefeed character [\n]. No idea.

What's the value of the maxCommandChainLength gamerule?

I reset it to a lower number. That fixed it, and probably also fixed my issue with chain command blocks. There needs to be something to prevent us from setting values higher than the maximum.

I originally set it to 9999999999. I tried removing five of the 9's and that solved my issue.

That's outside the integer range making it overflow and thus not allow chains.

Jason Kristol

(Unassigned)

Unconfirmed

Minecraft 1.12 Pre-Release 6

Retrieved