Stevertus / mcscript

A programming language for Minecraft Vanilla
https://mcscript.stevertus.com
MIT License
233 stars 16 forks source link

Feature request: Strings in variables #7

Open Heath123 opened 5 years ago

Heath123 commented 5 years ago

This isn’t an issue but on this site feature requests are usually put in Issues. I haven’t used this yet but it looks really good. Maybe you could add strings in variables for snapshots by using the new NBT manipulation tags to store them? Also your website seems to be down. It’s reporting a 502 error.

Edit: Actually I don't think this is easily possible

theTisch21 commented 3 years ago

Theoretically, the generator could cast it to an integer (using some kind of mapping like ASCII), but have the scoreboard objective have a special prefix like !str!varname which would tell later code to grab it and parse it as a string. No idea how to use the code in minecraft, but that would at least let you use the variable in code.