TeamOpenIndustry / ImmersiveRailroading

GNU Lesser General Public License v2.1
223 stars 71 forks source link

A javascript based animation system or add process control for readouts #1489

Open Goldenfield192 opened 1 month ago

Goldenfield192 commented 1 month ago

Describe the suggestion
Currently readout and animatrix can provide very complex animations, but they can't make any process control, which means resource pack creators can only use at most one control group to control their animation. By adding a js-based system, creators can determine when their animations should be played by coding, like CG A is on and CG B is off. Furthermore, it can also provide a image API so that dynamic screens can be made.

Applications of the suggestion
Creators will be able to make their animations more complex, and add new features like controlling the car numbers.

cam72cam commented 1 month ago

If anything, I'd likely do lua as it incredibly easy to embed and already used in many minecraft mods.

Goldenfield192 commented 1 month ago

If anything, I'd likely do lua as it incredibly easy to embed and already used in many minecraft mods.

Javascript has been used by other Minecraft railway mods like RTM/MTR, but lua is also a great idea