Skip to content

build[n]

Eight stage builds: blocks around the fight that only the people in the song see. Build them in Minecraft and save them with the structure block as a .nbt file in the song folder, or put single blocks with setBlock. Move, turn and fade them by song time - the real world never changes.

How to use it

build[0] to build[7]. A build stands with its bottom middle at x, y, z, counted like the stage mobs: from the middle between the two fighters, x = to your right, z = toward the opponent. At most 48 blocks on each side, and at most 20 000 blocks on the whole stage.

The structure block saves to <world>/generated/minecraft/structures/<name>.nbt - copy that file into the song folder (or its events/ folder). Blocks with a block entity (chests, signs, banners) and liquids aren't drawn.

Fights only, and in the fight's replays (around the replayed fighters). With stage.world "fighters" or "off" they're gone with the world. A player can switch them off in Options › Song effects › "Minecraft effects".

Example code

-- A gate behind the opponent that turns once and fades away at the end.
function onStart()
    build[0].file = "gate.nbt"
    build[0].z = 8
end

function onSection(n)
    if n == 4 then tween(build[0].turn, 360, beats(8)) end
    if n == 12 then tween(build[0].alpha, 0, beats(4)) end
end

Properties

Property Kind Default
build[n].file text "" A structure file (.nbt, saved with Minecraft's structure block) from the song folder. …
build[n].x number 0 Blocks to your right of the middle between the fighters (negative = to your left).
build[n].y number 0 Blocks up from the ground the fighters stand on.
build[n].z number 0 Blocks toward the opponent from the middle (negative = toward you).
build[n].turn number 0 Turned around its middle, in degrees, clockwise seen from above.
build[n].alpha number 1 How solid it is: 1 = solid, 0 = gone. In between it's see-through.
build[n].visible switch true false = hidden.

build[n].file

text build[n].file = ""

A structure file (.nbt, saved with Minecraft's structure block) from the song folder. "" = only the blocks setBlock put into this build.

build[n].x

number build[n].x = 0

-24 – 24blocks

Blocks to your right of the middle between the fighters (negative = to your left).

build[n].y

number build[n].y = 0

-24 – 24blocks

Blocks up from the ground the fighters stand on.

build[n].z

number build[n].z = 0

-24 – 24blocks

Blocks toward the opponent from the middle (negative = toward you).

build[n].turn

number build[n].turn = 0

degrees

Turned around its middle, in degrees, clockwise seen from above.

build[n].alpha

number build[n].alpha = 1

0 – 1share of the screen

How solid it is: 1 = solid, 0 = gone. In between it's see-through.

build[n].visible

switch build[n].visible = true

false = hidden.