[WIP] AdventureMapHelper

Discussion in 'WIP and Development Status' started by Nitnelave, Jun 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Nitnelave

    Hey everyone!
    I'm making a plugin to help admins create advanced adventure maps, with seamless teleportation, triggers, and scripts.

    Basically, the main feature is a small scripting language, allowing to change blocks, do basic loops, conditions and calculations with variables, connected with in-game triggers (commands, player entering a zone, etc...).

    An example of such a script is :
    Code:
    for (i, 0, 10) {  // For the variable i (declared here if it doesn't exist  already) with the values from 0 to 10 included
      changeBlock (12, 50 + i, -36, #AIR); // Change the block at the coordinates to air
      if (i > 5) {
        changeBlock (12, 50 + i, -37, #WOOD:2); // Change the block to birch wood
      }
      else {
        changeBlock (12, 50 + i, -37, 17:3); // Change the block to jungle wood
      }
    }
    getNearestPlayer ().teleportR (10, 2, 3);
    /* Teleport the player to a position relative to his (i.e. player.getX() + 10, player.getY() + 2, etc...),
    in order to allow for seamless teleport (he won't notice he teleported), keeping the yaw, pitch, and decimal coordinates. */
    

    For now I'd like some suggestions/comments on the syntax and the methods I could implement.
     
Thread Status:
Not open for further replies.

Share This Page