stage¶
What the people in the song see around the fight. The stage never changes the real world: the players standing around see the world as always, and the song's end puts everything back.
How to use it
Fights only - both fighters see it (each game runs the song's scripts), and so does whoever watches the fight from inside. Practice and replays aren't changed.
Mobs around the fight are mob[n], blocks build[n]. Stage particles come from the particle shortcut, lightning from lightning. A player can switch the sky, the weather and everything else a song does to Minecraft off in Options › Song effects › "Minecraft effects".
Example code¶
-- The world goes away for the bridge, a picture takes its place.
function onSection(n)
if n == 8 then
image[0].file = "void.png"
image[0].layer = "stage"
stage.world = "off"
elseif n == 12 then
stage.world = "on"
image[0].file = ""
end
end
Properties¶
| Property | Kind | Default | |
|---|---|---|---|
| stage.world | choice | "on" |
The Minecraft world in a fight: "on" = as it is, "fighters" = no world, only the two … |
| stage.dayTime | number | -1 |
The time of day the people in the song see, in Minecraft's numbers: 1000 morning, 6000 … |
| stage.weather | choice | "world" |
"world" (the world's own), "clear", "rain", "snow" or "thunder". A change fades … |
| stage.fog | number | 0 |
0 = the world's own fog, 1 = so thick that only a few blocks show. |
| stage.fogColor | colour | none |
The fog's colour, and the far sky's. Its alpha is how much: #8090A0 = all of it, … |
| stage.tint | colour | #FFFFFF |
The whole world - the fighters too - washed in this colour, as strong as … |
| stage.tintAlpha | number | 0 |
How strong stage.tint is: 0 = not at all, 1 = only the colour. |
stage.world¶
choice stage.world = "on"
The Minecraft world in a fight: "on" = as it is, "fighters" = no world, only the two fighters, "off" = none
at all. With "fighters" the fighters stand over MineFunkin's own background and the "stage" layer (drawn on the
screen then) - the fight camera, the beat bump and the hit nudge still move them; terrain, sky, mobs and other
players are gone. Off, the fight looks like practice: the song's pictures, the notes and the HUD over MineFunkin's own
background - no world, no fighters.
One of: "on", "fighters", "off".
stage.dayTime¶
number stage.dayTime = -1
The time of day the people in the song see, in Minecraft's numbers: 1000 morning, 6000 noon, 12000 sunset, 13000 night, 18000 midnight, 23000 sunrise. -1 = the world's own. Tween it for a sunset in a few beats - the sky, the sun, the stars and the light all follow.
stage.weather¶
choice stage.weather = "world"
"world" (the world's own), "clear", "rain", "snow" or "thunder". A change fades in about a second.
Rain and snow fall wherever the fight is, even in a desert.
One of: "world", "clear", "rain", "snow", "thunder".
stage.fog¶
number stage.fog = 0
0 = the world's own fog, 1 = so thick that only a few blocks show.
stage.fogColor¶
colour stage.fogColor = none
The fog's colour, and the far sky's. Its alpha is how much: #8090A0 = all of it, #808090A0 = half. The
default (alpha 0) keeps the world's.
stage.tint¶
colour stage.tint = #FFFFFF
The whole world - the fighters too - washed in this colour, as strong as stage.tintAlpha says.
stage.tintAlpha¶
number stage.tintAlpha = 0
How strong stage.tint is: 0 = not at all, 1 = only the colour.