(I just made two constants for LEAFBLOCK and WOODBLOCK so I can easily fiddle with tree types.)
Good idea! I've integrated that (called WOODMAT, LEAFMAT, and LIGHTMAT). Very cool ice trees as well! So fun.
In this update, I've also added STOPSROOTS and STOPSBRANCHES lists so you can specify materials that will keep trees out. Handy if you want to plant them near your house without filling your living room with questing roots and branches.
Again, this update is not tested, but it should work! Let me know if you get any errors, or, you know, if it doesn't work properly.
Oh, and I changed the LIGHTTREE default to lightblock, since it looks better than torches in trees.
So yea, I've basically made my copy of this into an ad-hock floating island generator now.
That's what happens if you remove the wood 'stem' from the leaf clusters, make it pick a random leaf material per cluster (I turned LEAFBLOCK into a list) and tell it to create a rainforest with no trunks.
I think for my next bit of fiddling I'm going to see about making the cluster sizes and shapes more variable.
(after all, stones aren't going to start decaying like leaves do)
Rollback Post to RevisionRollBack
Tis far better to be a witty fool than a foolish wit.
Wow, Fool, you've come up with some crazy stuff. I like it!
I've been messing around, experimenting with variables to try and make nice trees, but for some reason, the glowstone never gives off light until I break a few, make a new block, and stick it near the others. Any idea on why this might happen? I figure it's likely that the chunks aren't loading properly or something.
..Also, maybe add an option to limit root length? A couple of my trees hit lava under the surface, and hot damn are these things impossible to extinguish. In minutes it went from awesome trees to just tons of floating Glowstone.
Anyone found any cool tree parameters? I've yet to make something not hideous. Though I'm liking the round trees..
I've been messing around, experimenting with variables to try and make nice trees, but for some reason, the glowstone never gives off light until I break a few, make a new block, and stick it near the others. Any idea on why this might happen? I figure it's likely that the chunks aren't loading properly or something.
Yea it doesn't update the lighting data. I've found myself dropping and picking up a torch near the bottom of the trees to get the game to recalculate the lighting.
I know MCEdit can do lighting so possibly just load it up in that after creating your trees and then tell it to redo the lighting if you don't want to run around in the game forcing it to update.
Rollback Post to RevisionRollBack
Tis far better to be a witty fool than a foolish wit.
So i didn't have a lot of time this afternoon but i did get a couple of tests done
I don't have any results though as i never got the script to run
all attempts were made with "ONLYINFORESTS = True" going to try some more tomorrow.
a couple suggestions
first off make it more verbose if possible so we can give you better feedback and or figure out
where we fe'd up in the settings.
secondly and i know it's a pain but some sort of version system would be nice even if you just
put a comment in the script some where.
hope your well keep up the awsome work and I'll try and get you more feedback tomorrow.
Okay, finally got around to testing the ONLYINFORESTS feature, and discovered I had made a terrible but easily corrected error. It works now! (at least, it works for me when I test it)
Added a version number at the top of each file (starting at version 1, because why not?)
While testing I witnessed the problem with roots growing into lava. What spectacle! Unfortunately, it would take a lot of checking to ensure that this never happens. If there's an elegant way to avoid it I'll implement it. In the meantime, save beforehand and if you run into lava, reload and edit the lava out... I guess.
As far as not-hideous trees... the default parameters work pretty well for me. Maybe I just have a different sense of aesthetics. Is there something I could do to make them more beautiful?
Dudecon! Your back. I used to love your scripts for indev. I hope you update your castle script. I used to love running around in them.
Ontopic: I think I'll try this later and will post results. It looks pretty much the same as the old version, but with a few extra variables. I'll probably just mess around with making tree out of different, weird block types.
Dudecon! Your back. I used to love your scripts for indev. I hope you update your castle script. I used to love running around in them.
Thanks! You've always been encouraging, and I'm encouraged! I'll try to get to the castle script soon. In the meantime, I've finally updated StarStone, the one that makes big craters!
Thread here: http://www.minecraftforum.net/viewtopic.php?f=1022&t=243901
I also think that hollow trees will not be that hard to do. I'll see if I can manage a hollow tree update here (also soon).
Hmm... Can i get some help please? I downloaded the scripts, put them in my .minecraft\saves folder. Then I editted the top part to my liking, Made the save my "TreeHouse" save file, and I double clicked it, It opens up, then immediately shuts down... I have windows 7 64bit, And python 3.2.
Hmm... Can i get some help please? I downloaded the scripts, put them in my .minecraft\saves folder. Then I editted the top part to my liking, Made the save my "TreeHouse" save file, and I double clicked it, It opens up, then immediately shuts down... I have windows 7 64bit, And python 3.2.
Try opening and running it in IDLE, which will leave the debug output up. That will give me a better idea what's going on. Sorry for the trouble.
Hmm... Can i get some help please? I downloaded the scripts, put them in my .minecraft\saves folder. Then I editted the top part to my liking, Made the save my "TreeHouse" save file, and I double clicked it, It opens up, then immediately shuts down... I have windows 7 64bit, And python 3.2.
Try opening and running it in IDLE, which will leave the debug output up. That will give me a better idea what's going on. Sorry for the trouble.
That means that you edited the file wrong somehow. Probably when you were changing the settings you erased a comment marker ( # ) or an equals sign ( = ) or an open or close bracket ( [, ] ) or something like that. The error should also tell you where the syntax error occurred, so you should be able to find and fix it. If not, re-download the file and be more careful when editing. I've tried to make it user friendly and do error checking on the settings, but error checking can't protect from syntax errors.
Quote from Mattarias »
Perhaps limit the roots to just above the level lava is commonly spawned? I believe it's 10. I dunno what problems that'd cause though.
The roots only grow as deep as the tree is tall, so usually they won't get anywhere near the bottom of the map. The problem usually occurs when they hit a shallow pocket of lava, which do appear now and then. I could write some elaborate lava checks, but it has to search in a wide area around the roots and in the end it would probably only be mildly useful and make everything run a lot slower. If you're trying to plant trees above a lava lake, either edit the lake out, or turn roots off altogether.
line 1112
print("Generating foliage ", end='')
^
SyntaxError: invalid syntax
Hmm. This is probably due to an older version of Python. The Print function (and a number of other things) used to work differently in 2.x. You need Python 3.1 or 3.2 for this script to work out of the box, though (if you're savvy) you could probably retro-convert them to work in version 2.x.
Sorry for the confusion, I know there's a lot of legwork and setup before this works correctly. All I can say is: It's free and open source!
Thanks for porting it over to beta! Now my jungles can have mangroves :biggrin.gif:
(My works: Art, Music, MINECRAFT and other stuff)
In this update, I've also added STOPSROOTS and STOPSBRANCHES lists so you can specify materials that will keep trees out. Handy if you want to plant them near your house without filling your living room with questing roots and branches.
Again, this update is not tested, but it should work! Let me know if you get any errors, or, you know, if it doesn't work properly.
Oh, and I changed the LIGHTTREE default to lightblock, since it looks better than torches in trees.
That's what happens if you remove the wood 'stem' from the leaf clusters, make it pick a random leaf material per cluster (I turned LEAFBLOCK into a list) and tell it to create a rainforest with no trunks.
I think for my next bit of fiddling I'm going to see about making the cluster sizes and shapes more variable.
(after all, stones aren't going to start decaying like leaves do)
I've been messing around, experimenting with variables to try and make nice trees, but for some reason, the glowstone never gives off light until I break a few, make a new block, and stick it near the others. Any idea on why this might happen? I figure it's likely that the chunks aren't loading properly or something.
..Also, maybe add an option to limit root length? A couple of my trees hit lava under the surface, and hot damn are these things impossible to extinguish. In minutes it went from awesome trees to just tons of floating Glowstone.
Anyone found any cool tree parameters? I've yet to make something not hideous. Though I'm liking the round trees..
Yea it doesn't update the lighting data. I've found myself dropping and picking up a torch near the bottom of the trees to get the game to recalculate the lighting.
I know MCEdit can do lighting so possibly just load it up in that after creating your trees and then tell it to redo the lighting if you don't want to run around in the game forcing it to update.
I don't have any results though as i never got the script to run
all attempts were made with "ONLYINFORESTS = True" going to try some more tomorrow.
a couple suggestions
first off make it more verbose if possible so we can give you better feedback and or figure out
where we fe'd up in the settings.
secondly and i know it's a pain but some sort of version system would be nice even if you just
put a comment in the script some where.
hope your well keep up the awsome work and I'll try and get you more feedback tomorrow.
Added a version number at the top of each file (starting at version 1, because why not?)
While testing I witnessed the problem with roots growing into lava. What spectacle! Unfortunately, it would take a lot of checking to ensure that this never happens. If there's an elegant way to avoid it I'll implement it. In the meantime, save beforehand and if you run into lava, reload and edit the lava out... I guess.
As far as not-hideous trees... the default parameters work pretty well for me. Maybe I just have a different sense of aesthetics. Is there something I could do to make them more beautiful?
Ontopic: I think I'll try this later and will post results. It looks pretty much the same as the old version, but with a few extra variables. I'll probably just mess around with making tree out of different, weird block types.
Good luck.
Thanks! You've always been encouraging, and I'm encouraged! I'll try to get to the castle script soon. In the meantime, I've finally updated StarStone, the one that makes big craters!
Thread here: http://www.minecraftforum.net/viewtopic.php?f=1022&t=243901
I also think that hollow trees will not be that hard to do. I'll see if I can manage a hollow tree update here (also soon).
Perhaps limit the roots to just above the level lava is commonly spawned? I believe it's 10. I dunno what problems that'd cause though.
Really excited about the hollow trees though!
Try opening and running it in IDLE, which will leave the debug output up. That will give me a better idea what's going on. Sorry for the trouble.
Syntax Error
*invalid syntax
Window thing when i ran the module via IDLE.
That means that you edited the file wrong somehow. Probably when you were changing the settings you erased a comment marker ( # ) or an equals sign ( = ) or an open or close bracket ( [, ] ) or something like that. The error should also tell you where the syntax error occurred, so you should be able to find and fix it. If not, re-download the file and be more careful when editing. I've tried to make it user friendly and do error checking on the settings, but error checking can't protect from syntax errors.
The roots only grow as deep as the tree is tall, so usually they won't get anywhere near the bottom of the map. The problem usually occurs when they hit a shallow pocket of lava, which do appear now and then. I could write some elaborate lava checks, but it has to search in a wide area around the roots and in the end it would probably only be mildly useful and make everything run a lot slower. If you're trying to plant trees above a lava lake, either edit the lake out, or turn roots off altogether.
line 1112
print("Generating foliage ", end='')
^
SyntaxError: invalid syntax
This shouldn't have anything to do with the fact that my worlds are in my Dropbox, should it?
Thanks in advance.
*EDIT* I redownloaded it and set it correctly, yet I am still getting the same error.
Hmm. This is probably due to an older version of Python. The Print function (and a number of other things) used to work differently in 2.x. You need Python 3.1 or 3.2 for this script to work out of the box, though (if you're savvy) you could probably retro-convert them to work in version 2.x.
Sorry for the confusion, I know there's a lot of legwork and setup before this works correctly. All I can say is: It's free and open source!