Skip to content

Instantly share code, notes, and snippets.

@yanickrochon
Created September 11, 2015 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanickrochon/b59c03ac9c6ce2fdcbba to your computer and use it in GitHub Desktop.
Save yanickrochon/b59c03ac9c6ce2fdcbba to your computer and use it in GitHub Desktop.
World Edit plant command draft
Draft of the new command syntax
@yanickrochon
Copy link
Author

  • plant <areatype> <plants> : plant vegetations (trees, flowers, etc.).

    • <areatype> may be one of the following :
      • single plant a single plant right in front of the character.
      • line <distance> <count> plant in a straight line to the nearest axis, up to distance blocks. The value count may be an absolute value or a percentage of the total distance.
      • free <distance> <count> plant in the direction the character is facing, where distance and count are the same as for the above.
      • rect <ns> <ew> <count> [-e] plant in a rectangle around the character (character at the very center of the area). Both ns and ew are mandatory and determine the total width of each side. The amount of vegetation planted is determined by count and may be an absolute value or a percentage of the rectangle area. Use the optional -e flag to plant at the edge of the area only, and count will be the perimeter instead of the area.
      • circle <diameter> <count> [-e] plant in a circle with the specified diameter around the character (character at the very center of the area). The amount of vegetation planted is determined by count and may be an absolute value or a percentage of the circle area. Use the -e flag to plant at the edge of the area only, and count will be based on the circonference instead of the area.
    • <plants> is a space delimited list of plants ids to plant. To specify a range of plants, use .. between two numbers (no space). For example 1 2 3 4 7 9 10 11 12 is the same as 1..4 7 9..12.

    Ex: /we plant single 13..27 plant a single random flower

    Ex: /we plant line 10 10 29 plant 10 trees at random on a single straight line of 10 blocks long, on the nearest axis, in front of the character

    Ex: /we plant free 10 50% 6 plant 5 pine trees (50% of 10) at random on a single straight line, 10 blocks long, facing and in front of the character.

    Ex: /we plant rect 30 10 100 2..4 6 7 -p plant 100 trees at random around a perimeter of a rectangle of 30 blocks (north-south) by 10 blocks (east-west)

    Ex: /we plant circle 20 30% 2 3 4 plant maple trees in a circle area with a diameter of 20 blocks filling it at 30%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment