[Question:] Is this possible with Lua scripting?

  • I don't know anything about LUA (yet), but I'd like to attempt a script that would use the teleport function to move an admin player sequentially across the map, as a way to discover/uncover/draw the map details.
    Details:
    For ease of use I'm starting with a brand new world, as soon as I enter I'll turn on flying and TP to location 0, 200, 0 (the 200 value can be anything as long as its above the surface). Next I give myself a blank map and from there I want to be able to run a script that will teleport, pause for the world to load, then repeat, until I have a finished map of the terrain for a predetermined number of chunks. An example of how it would uncover one full map page and what it would execute is below, also included are pictures of the first 3 locations being uncovered on the map.



    Can this be automated into a lua script?


    It would be ideal to be able to start the script and walk away from the computer for a bit while it completes, because one full map page is 240 teleports. If you were to try to sprint to uncover the map it would take you approximately 37.5 minutes on a flat and relatively obstacle free terrain. If you're anything like me I want to have at least 4 full maps worth uncovered, but 16 full maps is really my goal, which ends up being either 3840 teleports, or more than 10 hours of sprinting across flat obstacle free terrain. :'(


    I would really, really like this to work. Is it possible?

  • Yes, that's possible with Lua ;) You could create a timer which changes the position of the player every few seconds. Although I highly recommend to use the new Plugin API instead (which is more powerful and faster in terms of performance), since the Lua API will be discarded very soon (so it will be no longer supported).

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!