[Script]Planting Script

  • Hey guys here is a plant script i coded


    its an advanced planting enables you to make forests of any size with any type of plant
    also you can make a hedge with lines


    1 option to do forests or small garden with any type of plant in lines or big areas
    2 script auto turns plants to make them look more real
    3 script auto adjust height to give a more real look height is taken from user so this script is limited to flat areas for best look
    4 script can pick random plants from range you set



    The Code is


    /planting <number of plants 1-1000 or more> <size of radius 0-1000 or more> <type of plant start 1-41> <type of plant end 1-41>
    /plantline <number of plants 1-1000 or more> <width or length x> <width or length z> <type of plant start 1-41> <type of plant end 1-41>


    Note type of plants must start from low to high number if you do 20 20 this will make one kind that is type 20


    Example 1 planting
    /planting 20 30 1 41
    /planting 20 = 20 number of plants, 30 = 30 blocks each side of you, 1 = start of random plant type, 41 = end of random plant type


    Example 2 plantline
    /plantline 20 20 0 40 40
    /plantline 20 = 20 number of plants, 20 = distance x axis, 0 = distance z axis, 1 = start of random plant type, 41 = end of random plant type





    Updated sorry for people who only just installed


    New better script


    1 script now has better random planting less chance of plants been planted 100% in the same spot
    2 also now script is made for admins only, this was so sever owners can now install without the worry users go crazy
    3 also tweaked how deep the plants go a little more for even better look
    4 new help options /plantinghelp and /plantlinehelp









    Files

    • random_plant.7z

      (1.23 kB, downloaded 445 times, last: )

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png

    Edited 20 times, last by yahgiggle ().

  • :thumbsup: This is very nice.


    Thanks!



    Kleine Erklärung auf Deutsch.
    Oben aus dem Ersten Beitrag die Datei aus dem Anhang runterladen, entpacken und wie gehabt in euren Script Ordner des Spiels packen.
    Spiel starten.


    Wir haben nun im Spiel 2 Befehle zur Verfügung.
    Einmal um Pflanzen in einem bestimmten Radius um mich herum zu pflanzen.
    Und einmal um Pflanzen gerade wie an der Schnurr gezogen zu pflanzen.


    Befehl 1: Wild im Radius
    Hierfür gibt es den Befehl /planting <Wert1> <Wert2> <Wert3> <Wert4>


    <Wert1> = Anzahl der Pflanzen die gesetzt werden sollen
    <Wert2> = Im welchen Radius um dich herum gepflanzt werden soll
    <Wert3> = ID der Pflanze mit der angefangen werden soll zu pflanzen
    <Wert4> = ID der Pflanze mit der aufgehört werden soll zu pflanzen


    Beispiel:
    Du gibst /planting 100 100 7 7 in den Chat ein dann werden im Umkreis von 100 Blöcken 100 Pflanzen der ID 7 gesetzt, also die große Tanne.
    Gibst du aber zb /planting 50 10 1 7 in den Chat ein werden im Umkreis von 10 Blöcken 50 Pflanzen der ID 1 - 7 Zufällig gesetzt.


    So kann man sich nen schönen Wald ohne Probleme herstellen, bzw. ne schicke bunte Blumenwiese ins Leben rufen. :thumbup:



    Befehl 2: Gerade wie an einer Schnurr
    Hierfür gibt es den Befehl /plantline <Wert1> <Wert2> <Wert3> <Wert4> <Wert5>


    <Wert1> = Anzahl der Pflanzen die gesetzt werden sollen
    <Wert2> = Auf welcher Länge gepflanzt werden soll, du bist dabei die Mitte
    <Wert3> = In welcher Breite gepflanzt werden soll, 0 steht für 1 Block
    <Wert4> = ID der Pflanze mit der angefangen werden soll zu pflanzen
    <Wert5> = ID der Pflanze mit der aufgehört werden soll zu pflanzen



    Beispiel:
    Du gibst /plantline 10 10 0 7 7 in den Chat ein dann werden in gerader Linie von 10 Blöcken 10 Bäume der ID 7 gesetzt, die große Tanne.
    Läuft die Linie in die falsche Richtung dann einfach den 2 und 3 Wert austauschen, siehe hier:
    /plantline 10 0 10 7 7 und die Linie wird in der anderen Himmelsrichtung gezogen.


    Gibst du aber zb /plantline 50 100 0 1 7 in den Chat ein werden in gerader Linie von 100 Blöcken 50 Pflanzen der ID 1 - 7 Zufällig gesetzt.


    Mit /plantline 20 10 3 7 7 setzen wir 20 Pflanzen auf 10 Blöcken länge in 4 Blöcken breite in gerader Linie. In unserem Fall die ID 7, die große Tanne.


    Jetzt fragst du dich bestimmt gerade wieso ich in 4 Blöcken breite geschrieben habe obwohl wir doch ne 3 in den Befehl gesetzt haben?!
    In diesem Fall müssen wir die 0 auch mit Zählen, die 0 steht für 1 Block breite. Haben wir also eine 3 im Befehl stehen müssen wir von 4 Blöcken Breite ausgehen.



    Hinweis
    Dieses Script läuft Problemlos neben meinem Pflanzen Script.
    Es sind zwei Unterschiedliche Scripte die unterschiedliche Befehle nutzen!



    Nachtrag
    Ich habe mal in einem kleinen Video versucht das Script zu erklären.

  • @yahgiggle
    super script thanks a lot. :thumbup:


    @ TutMeistensNix
    Auch super Script, Translation usw. und danke, dass du Unwissende wissend machst. :thumbsup:


    Ich bin mir nicht ganz sicher, ob ein Script für Dschungel, Gebirge etc. vorgesehen war?

  • English Translation via google


    Little explanation in German.
    Download the top of the first post the file from the attachment, unpack and had to pack in your scripts folder of the game as.
    Start Game.


    We have now in the game 2 commands.
    Once around plants in a certain radius around me to plant.
    And even just moved to plants like the mustaches plant.


    Command 1: Wild in the radius


    ">For this, there is the command / Planting <value1> <value2> <Value 3> <Value 4>


    = Anzahl der Pflanzen die gesetzt werden sollen
    "><Value1> = number of plants to be set
    = Im welchen Radius um dich herum gepflanzt werden soll
    "><Value 2> = In what radius around you to be planted
    = ID der Pflanze mit der angefangen werden soll zu pflanzen
    "><Value 3> = ID of the plant is to be started with the planting
    = ID der Pflanze mit der aufgehört werden soll zu pflanzen


    "><Value 4> = ID of the plant is to be stopped with the plant


    Example:
    You give / Planting 100 100 7 7 in the chat a then 100 plants of ID 7 are placed within 100 blocks, so the big fir.
    But you give example / Planting 50 10 1 7 in the chat a will within 10 blocks of 50 plants from 1 - 7 is set Random.


    So you can be manufactured NEN beautiful forest with no problems, or call ne chic colorful flower meadow in life. : Thumbup:


    Command 2: Just like on a Schnurr


    ">For this, there is the command / planning line <value1> <value2> <Value 3> <Value 4> <Value 5>


    = Anzahl der Pflanzen die gesetzt werden sollen
    "><Value1> = number of plants to be set
    = Auf welcher Länge gepflanzt werden soll, du bist dabei die Mitte
    "><Value 2> = At what length should be planted, you're there in the middle
    = In welcher Breite gepflanzt werden soll, 0 steht für 1 Block
    "><Value 3> = to be planted in what width, 0 stands for 1 block
    = ID der Pflanze mit der angefangen werden soll zu pflanzen
    "><Value 4> = ID of the plant is to be started with the planting
    = ID der Pflanze mit der aufgehört werden soll zu pflanzen



    "><Value 5> = ID of the plant is to be stopped with the plant


    Example:
    You give / line plans 10 10 0 7 7 in the chat, a then 10 trees of ID 7 are placed in a straight line of 10 blocks, the large fir.
    Does the line in the wrong direction then simply replace the value 2 and 3, see here:
    / Plant line 10 0 10 7 7 and the line is drawn in the other direction.


    Will you give but eg / line plans 50 100 0 1 7 in the chat will be a straight line of 100 blocks of 50 plants from 1 - 7 is set Random.


    With / line plans 20 10 3 7 7 we are 20 plants in 10 blocks in length 4 blocks wide in a straight line. In our case, the ID 7, the big pine.


    Now you wonder just how determined I wrote in 4 blocks wide although we have yet ne 3 set in the command ?!
    In this case we have to 0 with counting, which is 0 for 1 block wide. So we have a 3, we have to be in command out of 4 blocks wide.


    Note
    This script runs smoothly next to my plants scripts.
    There are two different scripts use the different commands!

  • Updated Script sorry for people who only just installed
    New better script
    1 script now has better random planting less chance of plants been planted 100% in the same spot
    2 also now script is made for admins only, this was so sever owners can now install without the worry users go crazy
    3 also tweaked how deep the plants go a little more for even better look
    4 new help options /plantinghelp and plantlinehelp

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png
  • Again thanks Giggles, just got this on my server late last night and its been a blast to play with, your script opened up an entirly new level of custom world creation! 8o

  • new plant id list


    1 fern1
    2 flower1_s
    3 flower1_m
    4 flower1_l
    5 flower2_s
    6 flower2_m
    7 flower2_l
    8 flower3_s
    9 flower3_m
    10 flower3_l
    11 flower4_s
    12 flower4_m
    13 flower4_l
    14 flower5_s
    15 flower5_m
    16 flower5_l
    17 flower6_s
    18 flower6_m
    19 flower6_l
    20 empty
    21 empty
    22 empty
    23 empty
    24 empty
    25 empty
    26 empty
    27 empty
    28 empty
    29 empty
    30 spruce1
    31 spruce2
    32 forestspruce1
    33 forestspruce2
    34 empty
    35 birch1
    36 birch2
    37 birch3
    38 willow1
    39 _willow2
    40 _oak1
    41 _oak2
    43 _oakbig
    44 maple1
    45 maple2
    46 appletree
    47 _cherrytree
    48 lemontree1
    49 _lemontree2
    50 _poplar
    51 _acacia1
    52 _acacia2
    53 _palm
    54 empty
    55 empty
    56 _cactus1
    57 _cactus2
    58 _cacao
    59 empty
    60 _rubbertree1
    61 _rubbertree2
    62 empty
    63 empty
    64 empty
    65 empty
    66 empty
    67 empty
    68 empty
    69 empty
    70 _coffeetree
    71 rowan1
    72 rowan2
    73 _blueberry1
    74 _blueberry2
    75 empty
    76 empty
    77 empty
    78 empty
    79 empty
    80 empty
    100 tomato
    101 tomato_sapling
    102 tomato_s0
    103 tomato_s1
    104 tomato_s2
    105 tomato_s3
    106 carrot
    107 carrot_sapling
    108 carrot_s0
    109 empty
    110 salad
    111 salad_sapling
    112 salad_s0
    113 salad_s1
    114 broccoli
    115 broccoli_sapling
    116 broccoli_s0
    117 broccoli_s1
    118 potato
    119 potato_sapling
    120 potato_s0
    121 potato_s1
    122 strawberry
    123 strawberry_sapling
    124 strawberry_s0
    125 strawberry_s1
    126 strawberry_s2
    127 watermelon
    128 watermelon_sapling
    129 watermelon_s0
    130 watermelon_s1
    131 watermelon_s2
    132 pumpkin
    133 pumpkin_sapling
    134 pumpkin_s0
    135 pumpkin_s1
    136 pumpkin_s2
    500 spruce_sapling
    501 spruce_s0
    502 empty
    503 empty
    504 birch_sapling
    505 birch_s0
    506 willow_sapling
    507 willow_s0
    508 empty
    509 empty
    510 maple_sapling
    511 maple_s0
    512 appletree_sapling
    513 appletree_s0
    514 appletree_s1
    515 empty
    516 empty
    517 empty
    518 lemontree_sapling
    519 lemontree_s0
    520 lemontree_s1

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png

Participate now!

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