Inactive [MECH] Fastgrow v1.4 - Instantly grows trees out of saplings[1000,1060,1185,1337]

Discussion in 'Inactive/Unsupported Plugins' started by Kostronor, May 21, 2011.

  1. Offline

    Kostronor

    Fastgrow v1.4 - Instantly grows trees out of saplings
    [1.4]
    craftbukkit [1060,1185]

    Placing a sapling will automatically grow a tree at this spot.

    Features:
    • Placing saplings grows a tree
    • Using saplings of different types gives different trees
    • Between 10 and 20 seconds after placing, the tree will grow
    • If your sapling cannot grow, it will drop to the ground
    • on first restart, a config-file will be created
    Config:

    Code:
    #The time is calculated in:
    #basetime + (randomtime * (0-1[random]))
    #it's a range of (basetime to (basetime + ranndomtime)
    basetime=10
    randomtime=10
    #This is the chance of getting the alternate version of the two trees.
    #its like (100 - chance = chanceforNORMALTREE)
    chanceofBIGTREE=50
    chanceofTALLREDWOOD=50
    ToDo:
    • Work this out a bit to wait about ten seconds until growing (added)
    http://dev.bukkit.org/server-mods/fastgrow/

    Source Code (should be in jar)

    Changelog: (open)
    Changelog:

    Version 1.4
    • Added a config-file
    Version 1.3
    • Reworked the timer to now work fine (10-20 seconds)
    • Saplings will drop when not growing
    Version 1.2
    • Removed the timer because of laggs
    • Added Treetype-support, so its just like instant bonemeal!
    Version 1.1
    • added a ten seconds long waiting-time
    Version 1.0
    • initial release

    If you like my work:

    [​IMG]
    [​IMG]
     
    someguy817 and Spycoclown like this.
  2. Offline

    Icely

    I placed now a sapling, but it wasnt the regular one it was the winter brown tree. Then the sapling dissappeared and in few seconds it grew a normal tree instead of the color i wanted :S.

    And if the trees have less than 3x3 space around them, they just dissappear and wont grow. But im sure this works fantastic with normal saplings :)
    But in my server you can make 6:1 , 6:2 saplings. The white/dark brown. So I would be really happy if you could make those work ^.^.
     
  3. Offline

    Kostronor

    if you know, which data_value is which tree, then i can add that for sure. (added)
     
  4. Offline

    Icely

    Idk anything about plugins, but ask from someone who might know? o.o
     
  5. Offline

    Juze

  6. Offline

    Kostronor

  7. Offline

    blindsarcasm

    Works really good! Thanks. I think it fixes the leaf-replace-blocks bug as well.
     
  8. Offline

    Icely

    Hey man its really good, works as it should, but the dark brown trees grow only as long ones. Could you change them to grow like normal.
    They are now 9blocks high and have just 5 leaves on top of them, and I wanna make a thick forest :) with many leaves.

    Edit: It makes some trees as small and nice, but the chance of it is too small :confused: I think
     
  9. Offline

    Kostronor

    i have made it with a fifty-fifty chance to produce high or low trees. And i sadly cannot use anything other than the minecraft-tree-algorythm. so it actually works like placing the sapplings.
     
  10. Offline

    Icely

    Ye my bad, it goes high only when it has low space and it cant blend in with other leaves, so if its near wall or something it wont grow. Cany you make it possible to grow as a small tree near other trees which have leaves already around it?
     
  11. Offline

    Kostronor

    like already said, i sadly cannot change the way the tree is created. i just say plant a tree! and then it starts building a tree, or not :D
     
  12. Offline

    Icely

    then i gotta use my brains again :)
     
  13. Offline

    Kostronor

    Version 1.3 is done, will release it tomorrow thought.
    added the timer again, now without lagg or problems.
    will also add update-check and configuration
     
    Icely likes this.
  14. Offline

    Icely

    Omg with normal tree saplings it works very nicely!! So instead of 1 tree type i planted some of these too :p and noticed that they work alot better than the dark brown :) Thx again.
     
  15. Offline

    Icely

    Make the title [798,803] not 802 before someone whines about it xDD.
     
  16. Offline

    Icely

    For next version you could add in config how many % chance it is to get big/small tree :p. if its 100% its always big.
    and with 0% its always small :)
    If you wanna xD
     
  17. Offline

    Kostronor

    @Icely
    Added a config :)
     
    Icely likes this.
  18. Offline

    Icely

    Very nice man, and fast work :D. I will give it a try tomorrow! Now I have made forest for my biiig island and for my big evil house which is over 107blocks high and 120x118 wide. The island area is 200x230 :D
    [ 130k blocks placed ]
    I simply love you and your plugins :). If I had a credit card I would give u sum money :D, but I hope someone else will give you some money for ur hard and good work ^^
     
  19. Offline

    Sotamakkara

    Does not work or generate any config files for me, after update :(. Before 1.4 it worked just fine. I see no .class files in the jar, shouldn't there be any of them? The file size is only suspicious 368 bytes :confused:
     
  20. Offline

    Kostronor

    WTH???
    but your right...
    I'll reuploaded it, now it should work!
    sorry for that
     
    Sotamakkara likes this.
  21. Offline

    Sotamakkara

    Thank you for really fast fix, I love your plugins :)
     
  22. Offline

    Kostronor

    i really appreciate this, thanks :)
    Telling a plugin author, that you use and like his/her work helps putting effort in the plugin :D
     
  23. Offline

    Mircast

    Awesome

    Btw, If I change the % of 'chanceofBIGTREE' to 0
    Will that disable big trees from growing?
     
  24. Offline

    Kostronor

    that will, by setting it to 0, normal trees got 100-0 chance so they have a chance of 100%
    in effect, only normal trees grow
     
  25. Offline

    SuicideHotline

    I think this script some how caused my grass to grow? When I first added this plugin and started my server I was getting some console errors. so I stopped the server, tried it again and more errors. rinse and repeat and now no errors but when I go into my server, well... take a look.

    [​IMG]

    My entire server is covered in grass. luckily I backed up my server before I tried this plugin so I am going to have to restore my world..

    I also changed the grow time to 5 seconds if this helps.

    Here is the server errors I get when I restored my world.

    Code:
    2011-06-06 10:27:08 [INFO] Starting minecraft server version Beta 1.6.6
    2011-06-06 10:27:08 [INFO] Loading properties
    2011-06-06 10:27:08 [INFO] Starting Minecraft server on *:25565
    2011-06-06 10:27:08 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-766-g3fc0460-b818jnks (MC: 1.6.6)
    2011-06-06 10:27:08 [INFO] Preparing level "world"
    2011-06-06 10:27:08 [SEVERE] java.io.IOException: Not in GZIP format
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldLoader.b(SourceFile:54)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldLoaderServer.isConvertable(SourceFile:84)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:158)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:08 [SEVERE] java.io.IOException: Not in GZIP format
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldLoader.b(SourceFile:65)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldLoaderServer.isConvertable(SourceFile:84)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:158)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:08 [SEVERE] java.io.IOException: Not in GZIP format
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.PlayerNBTManager.c(SourceFile:95)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.<init>(World.java:79)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldServer.<init>(WorldServer.java:23)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:169)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:08 [SEVERE] java.io.IOException: Not in GZIP format
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.PlayerNBTManager.c(SourceFile:107)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.<init>(World.java:79)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldServer.<init>(WorldServer.java:23)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:169)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:08 [SEVERE] java.lang.NullPointerException
    2011-06-06 10:27:08 [SEVERE]    at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:228)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.a(World.java:1905)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.Chunk.addEntities(Chunk.java:470)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ChunkProviderServer.getOrCreateChunk(ChunkProviderServer.java:115)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.getChunkAt(World.java:218)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.getTypeId(World.java:161)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.isEmpty(World.java:165)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.a(World.java:132)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldProvider.a(SourceFile:51)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.c(World.java:121)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.World.<init>(World.java:101)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.WorldServer.<init>(WorldServer.java:23)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:169)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-06 10:27:08 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:08 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:228)
        at net.minecraft.server.World.a(World.java:1905)
        at net.minecraft.server.Chunk.addEntities(Chunk.java:470)
        at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
        at net.minecraft.server.ChunkProviderServer.getOrCreateChunk(ChunkProviderServer.java:115)
        at net.minecraft.server.World.getChunkAt(World.java:218)
        at net.minecraft.server.World.getTypeId(World.java:161)
        at net.minecraft.server.World.isEmpty(World.java:165)
        at net.minecraft.server.World.a(World.java:132)
        at net.minecraft.server.WorldProvider.a(SourceFile:51)
        at net.minecraft.server.World.c(World.java:121)
        at net.minecraft.server.World.<init>(World.java:101)
        at net.minecraft.server.WorldServer.<init>(WorldServer.java:23)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:169)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-06 10:27:26 [INFO] Stopping the server..
    2011-06-06 10:27:26 [INFO] Stopping server
    2011-06-06 10:27:26 [INFO] Stopping server
    
     
  26. Offline

    Kostronor

    well, since i'm not using gzip or crafting in my plugin, this is definitely a error caused by something other
    This plugin only checks if a sappling is planted and grows a tree after some time, nothing more.
    it is not possible to modify grass with my plugin :D
    the last error is minecraft failing to add an entity to the game, the rest something with "i think chunk loading"
    this is definitely something other
     
  27. Offline

    Spycoclown

    Is it posible to make the Trees grow slower? like 2 Days or even 3 Days?
     
  28. Offline

    Kostronor

    i don't use days, i use seconds, but you can edit the auto generated configuration-file
    to change them to values you like
     
    Spycoclown likes this.
  29. Offline

    Spycoclown

    thats Great thx
     
  30. Offline

    jackkiej

    confirmed working on craftbukkit version #928
    nice plugin
     

Share This Page