Skip to content

Molang based animations sometimes try to assign a value to a negative of a variable. #3362

@thePixelmancer

Description

@thePixelmancer

What are you trying to do, and what do you expect to happen?

Image Image Image

im expecting the output in the file itself to match the blockbench input

What happens instead?

As you can see form the screenshots, using this type of multiline molang results in the final animation file attempting to assign a value to a negative (ie -v.foo = 5 ) , which errors in the game.

Model format in which the issue occurs

Entity Geomentry

Blockbench variant

Program

Blockbench version

5.0.7

Operating System

Windows 11

Installed Blockbench plugins

animated platforms, animation sliders, cameras, outline creator, seat position, root motion extractor,

Are there any console errors?

Error: assignment to non-variable not allowed. Expression is trying to assign to a: Negate '-'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue, where the program does not do what it is supposed to

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions