Skip to content

Embedded blocks after execute <if|unless> create an extra line break #23

Description

@helmo2019

Also, in the documentation it says

execute <if|unless> function {
    <...>
} run <...>

when it would actually be

execute <if|unless> {
    <...>
} run <...>

since the function part is auto-generated when defining an inline block.


Example code

File: main.mcb

function tick minecraft:tick {
    execute unless {
        return fail
    } run say Hello World!
}

Expected output:

File: data/main/function/tick.mcfunction

execute unless function main:zzz/0 run say Hello World!

Actual output:

File: data/main/function/tick.mcfunction

execute unless function main:zzz/0
run say Hello World!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions