Arqade Asked on December 22, 2020
I am making a map where two players are given halves of a message, and then have to travel through their own separate courses to meet at a central point, where the message must be put together and submitted as a whole within a certain time limit to win the game.
In order to make this function, the string with the message must be split in half before being sent to the players. I need to find a way to split a string at a certain index.
How can one split an NBT string at an arbitrary index using commands?
Given a string and an index…
{String:"Life is a bowl of cherries",Index:10b}
can you split the string at that index into two strings?
{ResultStringA:"Life is a ",ResultStringB:"bowl of cherries"}
Rules:
The answers to this problem will also be useful if you are trying to do these tasks:
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP