Skip to content

Could i read a tag from entity or an other way of storing other types than int (This case string) #8

@artemking4

Description

@artemking4

Could i read a tag from entity and store it in a var? Or an other way of storing string somewhere?

Activity

simon816

simon816 commented on Jul 23, 2019

@simon816
Owner

Strings are quite limited using the techniques we have for using them. It should be possible to use NBT to store and retrieve strings. However I am unaware of a technique to manipulate them (e.g. append string). Using Command IR this should be possible - https://github.com/simon816/Command-Block-Assembly/wiki/Command-IR-Instruction-Reference#nbt-instructions
In the assembly language / C compiler there isn't explicit support, but you can construct a /data command to store/retrieve strings

artemking4

artemking4 commented on Jul 26, 2019

@artemking4
Author

Thank you much for the info.

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

        Participants

        @simon816@artemking4

        Issue actions