Community
    • Login

    Is it possible to optimize similar x y z coordinate lines into one command?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 309 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Evidence BotE
      Evidence Bot
      last edited by

      I really don’t know how to word this but I have an image that shows what i mean.

      I wanted to create a command list for minecraft to spawn a structure. There exists a program to convert .schematica files into a list of commands that spawn the structures. The outcome is that there are many repetitive commands that could simply be replaced by just a single command that does everything they do but with less lines.

      Is there any function in notepad or plugin i can use to do something like this?

      Optmized.png

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Evidence Bot
        last edited by

        @evidence-bot

        You would want to write a program to do this (don’t know if you are capable of this or not).

        Non-programming techniques are problematic because there is really no way to verify sequential numbers on successive lines.

        It could be done if you didn’t need this verification. In this case one presumes that what comes after the bottom line on the left is something with a different pattern than the four lines shown. Thus the 42 in the first line could be “grabbed” and the 45 in the fourth line could be grabbed, and the single line could be constructed and replace the set of 4 lines.

        Only you know your data, and you’d need a better problem statement for better help.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors