1. Important information on Next Recommended Build

    Hi Guest,

    We're cleaning up our code to help us better prepare for the release of Minecraft 1.2. As a result, a lot of old, inefficient and buggy code is being removed and plugins will need to be updated.

    Please check your plugins, find out if the plugin developers have been keeping everything up to date and kindly let them know that they need to update their plugins to make sure they will be ready for R5.

[FUN/MISC] Giant Trees v0.3.3 - Make Massive Trees in Minecraft [1317]

Discussion in 'Plugin Releases' started by Connor Mahaffey, Jun 14, 2011.

     
  1. Offline

    Connor Mahaffey

    Giant Trees: Connor Mahaffey
    Version: 0.3.3

    Downloads:
    Jar Standalone
    Zip Folder with Config
    Note: If you download just the .jar, the config will be created on startup
    Source (GitHub)


    Description:
    Giant Trees was created because of a request by @chubbz (and a few others). It lets you spawn custom trees far larger than anything you'll find in Minecraft. Permissions 3.x, PermissionsBukkit, and Multiverse supported.

    Click Here to visit this project's BukkitDev page!

    Screen shots:
    1, 2, 3
    Want your screenshot here? Post them below and I'll add them!

    Commands:
    USE: /gt, /gtree, or /gianttree
    Help: /gt or /gt help
    Reload Settings: /gt reload
    Undo: /gt undo
    (Stand next to the tree you wish to undo and type the command)
    Spawn Tree: /gt <height> <width> <logtype> <leaftype> <density>
    (The location where you are standing is where the center of the tree will be)
    Note: You do not need all these parameters, only <height> and <width> are required, the rest are optional

    Permissions:
    gianttrees.build - player is allowed to spawn a Giant Tree on command
    gianttrees.undoall - allows a player to undo any giant tree (normally they can only remove their own)
    gianttrees.reload - player can reload settings in config.txt
    gianttrees.nolimit - player is not bound to the limits in config.txt
    gianttrees.custom - player can create trees with custom blocks (ex. diamond and gold tree)
    gianttrees.customdangerous - player can create custom block trees made of blocks considered "dangerous" - ex. lava, water, ice, etc.
    Note: These permissions apply for both Permissions 3.x and PermissionsBukkit. The permission gianttrees.* can be used in both. By default ops get all commands if Permissions 3.x is not installed. If you have PermissionsBukkit set up and do not want ops to get all commands, you must specifically set commands to false. Ex. gianttrees.undoall: false

    Config:
    Opening this .txt file will give you options for setting a max height and max width a player can make a tree. Height is also limited by the height of the world (obviously). It is VERY important you set a proper width, so that a user cannot make a width of 99999 and kill the server. Default values are 128 height (height of the minecraft world) and 16 width.

    Undo Saves Folder:
    As a general rule, don't mess around in here. Deleting any of the tree save files could ruin all the tree saves for a given world (no more undo's). If you generate a new map under the same name, you'll need to delete the old saves, by deleting the folder with that world's name. For example, if your map is called "world" then delete the "world" folder in plugins/Giant Trees/Undo Saves/world. This folder will grow in size overtime. About 75 medium sized giant trees (ex. /gt 60 8) will take about 40-50mb.

    Known Issues:
    - Shadows of spawned trees sometimes remain after the tree is gone (fixed by placing a block)
    - Undo-ing a tree while one is being built could bring the server down
    - Undo-ing a tree that hasn't been fully built could corrupt the file
    - Tree files take up considerable space (/gt 70 10 takes up about 2mb)
    - Tree base is one block bigger on one side

    Future Improvements:
    - Improve tree look even more (I'm still not completely satisfied)
    - Allow players to grow giant trees (ex. plant a sapling on a gold block)
    - Random % chance of Giant Trees spawning in the wild
    - Complete re-code
    - Store data in a .zip file to reduce hard disk usage

    Change Log:
    0.3.3
    - Added support for PermissionsBukkit
    0.3.2
    - Fixed some leaf decay issues
    0.3.1
    - Added the permission gianttrees.customdangerous
    - Banned some blocks from being spawned in trees (ex. torches, air) and added some others (ex. lava) to the dangerous list
    0.3
    - Added log/leaf types (birch, spruce, oak) and block types (gold, iron, etc.)
    - Added customizable tree density
    - Changed the tree algorithm, should be less square and better covered (at default density)
    - Added source to GitHub
    0.2.1
    - Multiverse now fully supported
    0.2
    - Tree building completely revamped - now takes about 6 seconds (5 of those are wasted time the server gives you to run away) - Special thanks to: @nisovin
    - New tree building code fixes crashes - @nisovin
    - Added an undo command, which will work even after a server restart
    - Added a cache of trees to be built
    (Though as fast as they build now its really un-needed)
    - Added configurable tree size restrictions for admins in config.txt
    - Modified algorithm so bigger trees (ex. /gt 70 10) aren't bare (though they are still less leafy than their smaller counterparts)
    0.1
    - Initial Release

    This post has been edited 3 times. It was last edited by Connor Mahaffey Oct 9, 2011.
  2.  
  3. Offline

    Tux2

    dev.bukkit.org profile:
    Tux2
    My Plugins
    First!!! I am definitely trying this out on my test server, as it looks really cool! Are there any options to what type (birch, oak, etc.) of tree it spawns, or if there isn't, will there be an option in a later version?
    Connor Mahaffey likes this.
  4. Offline

    yaitsbilly

    Ill give this a try.
  5. Offline

    Connor Mahaffey

    Haha thanks! And no, there isn't right now but it's definitely do-able. Tree leaves do automatically change depending on what biome you're in though. You'll notice in the picture they are the dark green color.
  6. Offline

    Connor Mahaffey

    Sweet, let me know how it works for you
  7. Offline

    a_hat

    This is a wonderful plugin -- thanks!

    I'd love to be able to spawn different types, as mentioned above. And, what about the possibility of generating hollow trunks, for building treehouses and such more easily?
  8. Offline

    captainawesome7

  9. Offline

    jamescosten

    Awesome comes to mind just tried it 50 tall and 10 wide. Looks epic
    Connor Mahaffey likes this.
  10. Offline

    fffizzz

    Can we add maybe two things related to each other..

    In the config, specify limits for w/h when creating trees. Also add a permissions node to ignore this settings for power users.

    Thanks :)
  11. Online

    Zarius

    I did mine 27 tall and it looks odd stumpy but cool :D

    @Connor Mahaffey
    Perhaps a note on what settings were used for the trees in the screenshot?
  12. Offline

    jamescosten

    Lol, i have just done a review and it will be up in a mo so you can see my 2 attempts, one is epic and one is shit lol.
  13. Offline

    Lukeroge

    Ooh, another plugin. Will try this one later :3
    Connor Mahaffey likes this.
  14. Offline

    jamescosten

    Review is done it is here :
    kahlilnc likes this.
  15. Offline

    CptSausage

    dev.bukkit.org profile:
    CptSausage
    My Plugins
    @jamescosten Haha :D the second one is pretty shitty.

    But I like how it works in real time. Maybe we are gonna use this on our server to make a nice rainforest (If it's called rainforest?!).

    Can I create more than one tree at the same time?
  16. Offline

    Dope

    Hey,

    I use cb860.
    I got this error when the tree was spawning:

    Code:
    16:11:52 [SEVERE] java.lang.NullPointerException
    16:11:52 [SEVERE]       at net.minecraft.server.World.a(World.java:1544)
    16:11:52 [SEVERE]       at net.minecraft.server.World.a(World.java:1509)
    16:11:52 [SEVERE]       at net.minecraft.server.World.a(World.java:556)
    16:11:52 [SEVERE]       at net.minecraft.server.MetadataChunkBlock.a(SourceFile:
    109)
    16:11:52 [SEVERE]       at net.minecraft.server.World.doLighting(World.java:1496
    )
    16:11:52 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:391)
    16:11:53 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:309)
    16:11:53 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    16:11:53 [SEVERE] Unexpected exception
    java.lang.NullPointerException
            at net.minecraft.server.World.a(World.java:1544)
            at net.minecraft.server.World.a(World.java:1509)
            at net.minecraft.server.World.a(World.java:556)
            at net.minecraft.server.MetadataChunkBlock.a(SourceFile:109)
            at net.minecraft.server.World.doLighting(World.java:1496)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
  17. Offline

    vildaberper

    Great plugin, you should add this in the world generator! :D
    Connor Mahaffey likes this.
  18. Offline

    Tux2

    dev.bukkit.org profile:
    Tux2
    My Plugins
    Your first bug report:
    I just spawned a tree by looking at snow, and it spawned it like this:
    [IMG]
    You might want to add snow to the ignored blocks.
  19. Offline

    fffizzz

    Requesting a /gt undo
    so incase you generate somethign hideous, you can remove, and redo :D
    jamescosten likes this.
  20. Offline

    jamescosten

    I second this especially after my hideous attempt lol
  21. Offline

    Darkride

    i like it its pretty awsome :)
    Connor Mahaffey likes this.
  22. Offline

    Connor Mahaffey

    Hollow trees would be cool! And by different types, you mean different wood and leaves, or completely different types, like a pine or something?
    Sorry what exactly do you mean, in the code?
    That's a good idea! Definitely in the next release!
    Hahahah yea, the height/width thing is a little confusing. You have to do a much bigger height than width for it to work right :p 20 by 5 is actually about as low as it can go without it giving an error
  23. Offline

    captainawesome7

    @Connor Mahaffey Lol no, the giant pic in the OP is just kind of in the way. Spoiler at bottom, maybe?
    Great plugin tho!
  24. Offline

    WalkerCrouse

    dev.bukkit.org profile:
    WalkerCrouse
    My Plugins
  25. Offline

    Connor Mahaffey

    Right now no :/ It's very hard on the server so right now I've got it so you can't. I'm definitely going to make a cache list in the future that will let you set the locations of several trees, then just have them grow on their own. Should I make it so you can grow more than one? I'm afraid I'll kill servers that way! :eek:

    Hahaha I'll call Notch XD though if bukkit has a way of telling when trees grow I'll add a random % chance that they grow.
    Yes my arch nemesis, the dolighting error of doom. This error happens when the server can't keep up with the lighting as the tree is built. If you've changed your config to something below 60, change it back. If you haven't changed it, make it higher, say 70 or 80. But if that's the case I'd really like to know your server's specs.
  26. Offline

    Connor Mahaffey

    I suppose, do you need a wider tree? I thought that'd be as wide as anyone would want. What do you think the max width should be?
  27. Offline

    Darkride

    leave the max width by the user or leave it out. its her choice if they want to test a /gt 50 500 tree by damaging the world its not your fault
  28. Offline

    vildaberper

    Since CB 825 there is a way to implement the generator. ;)
    I have no ide how though, but there is some plugins here that does it, with open source.
  29. Offline

    Connor Mahaffey

    Actually it's not spawned where you are looking, its actually spawned where you are standing. But I guess snow would still have that problem. So will standing on an edge, everything will go off the edge.

    Hahaha yea I'm gonna remove that and put @jamescosten 's review up instead. I'll leave it as a link. Just a side note, no one pointed out that you can see a messed up tree in the background that has no leaves :p


    Hahaha yes I agree this needs to be done ASAP. I'm a little unsure the best way to do it, and it will further complicate a cache list. The only way I know to do it, is to get every block id and location, and store them in a file. Hmmmm, looks like I'll get to have fun with files.



    This is really awesome though guys, this is just in submissions and already it's a huge hit! Thank you all so much.
  30. Offline

    Connor Mahaffey

    I'll look into it, I think we can all agree that this plugin does not create trees "efficiently"
    fugue2005 likes this.
  31. Offline

    Connor Mahaffey

    Haha there needs to be a limit. The last thing I need is someone on here mad, because some prankster went to the center of a city and did /gt 50 1000 and wiped out the whole map. I'll consider bumping it up to say 50, for people who build to the very bottom of the map, to make the biggest tree possible. But right now, its very "fool proof", if you choose a width of 4-8 and a height of 30+ you can't go wrong, and you get a decent looking tree :)

Share This Page