homchom / recode

a utility-focused fabric mod to make DiamondFire development more fun
GNU Lesser General Public License v3.0
27 stars 28 forks source link

Add /copyval #75

Open ashlikatt opened 8 months ago

ashlikatt commented 8 months ago

Overview:

Adds a command (/copyval) which will convert the held Code Value into a string and copy it, if possible. Configuration exists for the command to change the format of the string copied using Java's format syntax.

Intended Use:

This command is intended to be used by players using external DF programming languages. It provides a relatively convenient method to convert common code values into a custom string format to be pasted into a script.

Available Settings:

image

Note:

It is definitely possible to add some more advanced configuration, like some type of regex replacement rules or something, though that feels very overkill for this.

Files Changed:

Solo Testing:

Invalid Cases:

Number:

Location:

Vector:

String

Text: