Difference between revisions of "TrainCarts/Signs/Animate/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以Special:MyLanguage/TrainCarts...")
Line 5: Line 5:
 
== 介绍 ==
 
== 介绍 ==
  
动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以[[Special:MyLanguage/TrainCarts/Signs#Remote Control|远程]]设置列车中所有车厢、单辆矿车和远程矿车播放的动画。
+
动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以[[Special:MyLanguage/TrainCarts/Signs#Remote Control|远程]]设置列车中所有车厢、单辆矿车和远程矿车播放动画。
  
  

Revision as of 01:21, 6 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以远程设置列车中所有车厢、单辆矿车和远程矿车播放动画。


Syntax

Signtemplate.png
[train]
animate
rotate


Signtemplate.png
[train]
animate looped
roll
0.5


Signtemplate.png
[train]
animate lr
rotate
0.5 0.4


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:

Signtemplate.png
[train]
animate lm
rotate
1


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:

Signtemplate.png
[train]
animate
doors[open]
1.0

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.