Difference between revisions of "TrainCarts/Signs/Animate"
Bergerkiller (talk | contribs) (Add note about scenes) |
Bergerkiller (talk | contribs) (Marked this version for translation) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[TrainCarts/Signs|« Go back]] | + | <languages/> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | [[Special:MyLanguage/TrainCarts/Signs|« Go back]] | ||
− | |||
− | + | == Introduction == <!--T:2--> | |
− | == Syntax == | + | <!--T:3--> |
+ | The animate sign plays animations stored inside the train's attachments. It can override certain properties of the animation, such as speed and whether to loop it. Animations can be played for all minecarts in the train, for a single minecart, or for a remote train using [[Special:MyLanguage/TrainCarts/Signs#Remote Control|remote control]]. | ||
+ | |||
+ | |||
+ | == Syntax == <!--T:4--> | ||
+ | |||
+ | </translate> | ||
{{sign|[train]|animate|rotate}} | {{sign|[train]|animate|rotate}} | ||
+ | <translate> | ||
+ | </translate> | ||
{{sign|[train]|animate looped|roll|0.5}} | {{sign|[train]|animate looped|roll|0.5}} | ||
+ | <translate> | ||
+ | </translate> | ||
{{sign|[train]|animate lr|rotate|0.5 0.4}} | {{sign|[train]|animate lr|rotate|0.5 0.4}} | ||
+ | <translate> | ||
+ | |||
+ | |||
+ | === First Line === <!--T:5--> | ||
+ | |||
+ | <!--T:6--> | ||
+ | [train] to play the animation in all Minecarts, [cart] to only play it for the Minecart that is above the sign right now. [[Special:MyLanguage/Mods/TrainCarts/Signs#Remote Control|Remote control]] can also be used. | ||
+ | |||
+ | |||
+ | === Second Line === <!--T:7--> | ||
+ | |||
+ | <!--T:8--> | ||
+ | ''animate'', optionally followed up by any of the following option flags: | ||
+ | * reset (or: 'r') - Hard-resets playback of the animation to the beginning | ||
+ | * looped (or: 'l') - Loops the animation forever | ||
+ | * queue (or: 'q') - Queues up the animation to be played after the current animation finished. This can be used to play multiple animations in a timed sequence | ||
+ | * move (or: 'm') - Move animation mode. Makes playback speed depend on how fast the attachment/train is moving | ||
+ | |||
+ | <!--T:9--> | ||
+ | Multiple flags can be specified like so: | ||
+ | </translate> | ||
+ | {{sign|[train]|animate lm|rotate|1}} | ||
+ | <translate> | ||
+ | |||
+ | |||
+ | === Third Line === <!--T:10--> | ||
+ | |||
+ | <!--T:11--> | ||
+ | animation name. By default animations ''rotate'', ''roll'' and ''pitch'' can be used to animate the entire Minecart | ||
+ | |||
+ | |||
+ | === Fourth Line === <!--T:12--> | ||
+ | |||
+ | <!--T:13--> | ||
+ | Can be left empty, otherwise the speed and delay for playing the animation can be specified. The speed is multiplied with the speed(s) of the animations played, and the delay is added. First number is speed, if a second number is specified with a space between it, that is the delay. To play an animation in reverse, use a negative speed. | ||
− | + | == Scenes == <!--T:14--> | |
− | |||
− | |||
− | |||
− | + | <!--T:15--> | |
As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such: | As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such: | ||
+ | </translate> | ||
{{sign|[train]|animate|doors[open]|1.0}} | {{sign|[train]|animate|doors[open]|1.0}} | ||
+ | <translate> | ||
+ | <!--T:16--> | ||
Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using ''animation[scenestart:sceneend]'', or ''animation[:scene]'' to play from the beginning of the animation to this scene, or ''animation[scene:]'' to play from the scene to the end of the animation. | Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using ''animation[scenestart:sceneend]'', or ''animation[:scene]'' to play from the beginning of the animation to this scene, or ''animation[scene:]'' to play from the scene to the end of the animation. | ||
+ | </translate> |
Latest revision as of 15:03, 2 September 2024
Introduction
The animate sign plays animations stored inside the train's attachments. It can override certain properties of the animation, such as speed and whether to loop it. Animations can be played for all minecarts in the train, for a single minecart, or for a remote train using remote control.
Syntax
First Line
[train] to play the animation in all Minecarts, [cart] to only play it for the Minecart that is above the sign right now. Remote control can also be used.
Second Line
animate, optionally followed up by any of the following option flags:
- reset (or: 'r') - Hard-resets playback of the animation to the beginning
- looped (or: 'l') - Loops the animation forever
- queue (or: 'q') - Queues up the animation to be played after the current animation finished. This can be used to play multiple animations in a timed sequence
- move (or: 'm') - Move animation mode. Makes playback speed depend on how fast the attachment/train is moving
Multiple flags can be specified like so:
Third Line
animation name. By default animations rotate, roll and pitch can be used to animate the entire Minecart
Fourth Line
Can be left empty, otherwise the speed and delay for playing the animation can be specified. The speed is multiplied with the speed(s) of the animations played, and the delay is added. First number is speed, if a second number is specified with a space between it, that is the delay. To play an animation in reverse, use a negative speed.
Scenes
As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such:
Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using animation[scenestart:sceneend], or animation[:scene] to play from the beginning of the animation to this scene, or animation[scene:] to play from the scene to the end of the animation.