Skip to content

Title/subtitle/actionbar colors do not work for non-literals (should be a simple fix). #26

Description

@fjordimm

Let's say I have a cbscript variable called 'var'.
If I write, for example, actionbar @a "{gVar equals (var)"
... it will transpile into:
/title @a actionbar ["",{"text":"Var equals","color":"dark_green"},{"score":{"name":"Global","objective":"var","color":"dark_green"}}]

This will display the 'Var equals' as dark green, but the value of 'var' will be displayed as white. It is easy to fix manually; you just move the color tag outside of the inner curly braces.

This is what it should transpile into:
/title @a actionbar ["",{"text":"Var equals","color":"dark_green"},{"score":{"name":"Global","objective":"var"},"color":"dark_green"}]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions