From a7f647fd7e72ae8c587c4ab80866c70d4442b2c3 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 8 Oct 2024 23:25:23 +0200 Subject: [PATCH] ref: add semaphore distant animation --- .../animations/semaphoresignal.json | 44 +++++++++++++++++++ .../modeldefinitions/semaphoresignal.json | 40 ----------------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/src/main/resources/assets/opensignals/animations/semaphoresignal.json b/src/main/resources/assets/opensignals/animations/semaphoresignal.json index 362bf1879..89cd92cd7 100644 --- a/src/main/resources/assets/opensignals/animations/semaphoresignal.json +++ b/src/main/resources/assets/opensignals/animations/semaphoresignal.json @@ -87,6 +87,50 @@ "rotation": 45 } ] + }, + "semaphore_signals/sema_distant_plate_on": { + "translationX": 0, + "translationY": 3.875, + "translationZ": 0.59375, + "pivotX": 0, + "pivotY": 0.125, + "pivotZ": -0.59375, + "animationConfigs": [ + { + "predicate": "with(SEMATYPE.DIST) && !with(SEMAVR.VR1)", + "mode": "ROTATION", + "rotationAxis": "X", + "rotation": 0 + }, + { + "predicate": "with(SEMATYPE.DIST) && with(SEMAVR.VR1)", + "mode": "ROTATION", + "rotationAxis": "X", + "rotation": 90 + } + ] + }, + "semaphore_signals/sema_distant_vr0": { + "translationX": 0.5, + "translationY": 2.5, + "translationZ": 0, + "pivotX": -0.5, + "pivotY": -0.5, + "pivotZ": 0, + "animationConfigs": [ + { + "predicate": "with(SEMATYPE.DIST) && !with(SEMAVR.VR2)", + "mode": "ROTATION", + "rotationAxis": "Z", + "rotation": 0 + }, + { + "predicate": "with(SEMATYPE.DIST) && with(SEMAVR.VR2)", + "mode": "ROTATION", + "rotationAxis": "Z", + "rotation": -45 + } + ] } } } \ No newline at end of file diff --git a/src/main/resources/assets/opensignals/modeldefinitions/semaphoresignal.json b/src/main/resources/assets/opensignals/modeldefinitions/semaphoresignal.json index eb36fb3c7..f4669c1f1 100644 --- a/src/main/resources/assets/opensignals/modeldefinitions/semaphoresignal.json +++ b/src/main/resources/assets/opensignals/modeldefinitions/semaphoresignal.json @@ -344,46 +344,6 @@ ], "y": 3 }, - "semaphore_signals/sema_distant_plate_off": { - "textures": [ - { - "blockstate": "with(SEMATYPE.DIST) && with(SEMAVR.VR1)" - } - ], - "y": 4 - }, - "semaphore_signals/sema_distant_plate_on": { - "textures": [ - { - "blockstate": "with(SEMATYPE.DIST) && !with(SEMAVR.VR1)" - } - ], - "y": 4 - }, - "semaphore_signals/sema_distant_vr0": { - "textures": [ - { - "blockstate": "with(SEMATYPE.DIST) && with(SEMAVR.VR0)" - } - ], - "y": 2 - }, - "semaphore_signals/sema_distant_vr1": { - "textures": [ - { - "blockstate": "with(SEMATYPE.DIST) && with(SEMAVR.VR1)" - } - ], - "y": 2 - }, - "semaphore_signals/sema_distant_vr2": { - "textures": [ - { - "blockstate": "with(SEMATYPE.DIST) && with(SEMAVR.VR2)" - } - ], - "y": 2 - }, "semaphore_signals/sema_distant_ne2_2": { "textures": [ {