Jump to content

A new command for map preparation


totemo
 Share

Recommended Posts

I envisage that for the most part only admins will be interested in this command, but anyone with ModMode privilege or above can run it.

/visit-chunks <period> <step> <max> [<command>]
  • Teleport to a grid of locations <step> blocks apart between X/Z -<max> and +<max>, waiting <period> seconds between steps.  The player's Y coordinate remains unchanged.
  • At each step, run the optional <command> if specified.
  • Without a <command>, just teleporting to a location and waiting a while will give water and lava a chance to flow, reducing lag when the map is opened to players.
  • The <command> can be used to do things like clean up drops (a few revisions ago on P we had terrible lag due to dropped grass seeds etc as a result of WorldPainting).  If we had had this command on P when we were seeding the map with horses during the 1.6 changeover we could have used it to run /omg-ponies.
  • /visit-chunks runs indefinitely; until a restart or until you run '/visit-chunks stop'.  The command remembers the last step index that it executed and picks up from the same index next time it runs.  If the step size and maximum coordinate value are the same, then that will resume in the same location as before.  If you leave it running for long enough it will eventually "wrap around" and start revisiting locations that it has visited before.
  • The total number of steps on a single axis is 2 * (max / step) + 1 and the total number of steps for the whole map is that number squared.  The total time taken to visit the whole map is therefore:
    • (2 * (max / step) + 1) ^ 2 * period seconds
  • There's also a /visit-chunks next <index> variant that allows you to explicitly set the next step index to visit.  For a single player it's not much help, but multiple accounts can cooperate to visit different sections of the map using this.

 

Example:

/visit-chunks 180 100 2000 /remove items 200
  • Upvote 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...