your current location:首页 > news>Stringing Utilities Minecraft

Stringing Utilities Minecraft

2024-12-15 02:12:02|Myriagame |source:minecraft skins

A module that provides more NBT string operations.

grammar

/string  [target] [source ...] 

"Target" and "Source" are similar to parts behind the "Data Modify" command.

example

/String Isempty Value "/String Indexof Value" ASDFGHJKL "Value" qwerty "/String Escape Storage A: B C Value '' OTE "Slash \ '/String Strip Storage Foo:BAR BAZ VALUE "A 123"/String Concat2 Storage A B FROM Entity @s SelectEdited FROM Entity @s Inventory [0] .id/String Join Storage Test Playeruuid Value "~" From Entity @S UUID 

Available method

Name Enter the nbt label Output nbt tags Return value Explanation IsBlankString-If you enter a blank string, return 1, otherwise return 0ISEMPTYSTRING-If you enter the empty string, return 1, return 0lengthstring-input string length to any NBT element String1 to convert NBT elements to stringESCAPESTRINGSRING1 dual quotes and back slope EscapenbTStringstring1 calls the ESCAP ESCAPEREGEXSTRINGSTRINGSEGSTRINGSINGSTRINGSINGSTRINGSITRINGSTRING UppercaseStringstring1 Turn into a lowercase StripStringstring1The blank characters at the end (Unicode character type) StripleAdingstring1 remove the blank characters (UNICODE character type) StripTrailingstring1 in the string to remove the blank characters (unicode character type) in the string (Unicode character type) Tochararra YSTRINGLIST 1 Turn to a character array tocodepointstringStringlist codeThe number of points is turned to the number of tocodepointsstringinTarray codes composed of the string corresponding to each code point. All elements Concat2string S0 in the list,String S1, [String S2] String1 connection 2 or 3 string trimstring src, [String Trimchars] String1 Remove the blank character (code point <= 32) in the first and tails of the src, or the custom character Trimstring SRC, [string tring tring tring tring tring tring tring tring trim imchars] String1 removes the blank characters in the front src (code point <= 32) or custom character Trimendstring src, [string trimchars] string1 Remove the blank characters in the back of the src (code point <= 32) or custom character Atstring SRC, int:The characters specified in indexString1SRC to specify the character of the indexing position repeatstring src, int countstring1 Repeat string Count MatchesallString Src, String Patternlist All positions that match Pattern in RC (not overlapping each other) MATCHESALLFULLYSTRING SRC, String Patternlist

The number of matching results of the matching result SRC (may overlap each other). JoinString Delimiter, List Elementsstring1 is used in the specified separators Delimiter to connect to each element Substringstring SRC, int BEGIN, [int End] string 1 Return to the specified string srcSubstring2string src, int Begin, [int length] string1 return the specified strings src sub-string limit] List The number of segmented sub -string uses the specified separators section string srcindexofstring src, string substring, [int FROMINDEX] String sub -string in the SRC position, if it does not exist, return to-1lastindexofstring src, string substring, [int FROMINDEX] String sub-string last time appears in the SRC. RC's prefix, return 1Otherwise, return 0ndswithstring src, String Suffix-If the Suffix is ​​the suffix of SRC, return 1, otherwise the 0Containsstring src, string substring- hesstring src, string regex- If SRC matchingRegular expressions regex, return 1, otherwise return 0ReplaceString src, string target, string replacementString1 to replace all the targets in src to replacementRePlaceallString Src, String regex, ST. Ring ReplacementString1 replaces all the recytex in the src.In the replacement of the first match of regex, the replacement note:

Some methods actually receive any NBT elements, but they will be converted into string before processing.

The parameters in the bracket are optional parameters.

Most of the input indexes can use negative numbers, indicating the number one from the back, such as -1 indicates the penultimate.

Minecraft images

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.

Minecraft images