Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."
drkoaeg

Growing Trees mod port (?)

15 posts in this topic

Hello,

 

I wanted to draw attention on a new really exciting mod called Growing Trees by ferreusveritas. Here is the link: https://mods.curse.com/mc-mods/minecraft/252818-growing-trees

Maybe there is somebody willing to help the mod author with TFC support. Even if there is no chance check this one out, it is amazing!

 

By the way here is the permission by the author:

Quote

Provide interfaces for other mod developers to expand the mod with add-ons, new trees, effects, mobs and other things. If you need a hook then lemme know :)

I would prefer if you ported the mod as a branch in the growing trees mod itself on github, that way we can benefit from advances made on both sides.  But you can do whatever you want if you name it something else.

And here is the source code: https://github.com/ferreusveritas/Growing-Trees

 

drkoaeg

Edited by drkoaeg
GitHub repository link added
1

Share this post


Link to post
Share on other sites

Wonderful mod! *.* Unfortunately I'm not a coder but agree with drkoaeg - this mod is perfect for TFC and if someone can make this work with it it would be really cool ^^

0

Share this post


Link to post
Share on other sites

That is a neat mod. For it to work for TFC though it would need a version for each tfc tree. Also I am going to assume each change of the tree is based on ticks. You would need to convert that to time based or else you'd go out mining and then come back to see your crops grew but the tree did not. Also need to change the drops. May also get some funky behavior with TFC axe but would have to test to find out. 

If it's tick based I assume. like the orchard trees in tfc when they are still growing, that too many of them in an area will cause lag. 

0

Share this post


Link to post
Share on other sites
1 hour ago, Stroam said:

If it's tick based I assume.

As far as I know there are no ticking entities in this mod

0

Share this post


Link to post
Share on other sites
Quote

Under the hood:

  • Trees grow using a combination of a cellular automata algorithm for leaves and branch network logic for trunk and branches.
  • No tile entities are used. Rendering is done with ISimpleBlockRenderingHandler for better performance with large numbers of tree nodes.
  • Blocks are only updated with updateTick() so chunks are re-rendered when dirty no more than with vanilla crops.
  • Listener interface is used for bottom leaves blocks tick for creating seed drops and other effects. New listeners can be registered by other mods to expand tree behavior.
  • All block states are encoded in the 4 bit metadata.
  • Growing leaves blocks use 4 species sub-blocks to a Block using metadata encoding for conserving BlockIDs.  This mod registers 9 blocks total.

As posted by the author.  It does use update ticks but it seems like they at least thought about performance. I would love to see their leaf algorithm and branch logic not so much to scrutinize, but because I love that sort of stuff. 

0

Share this post


Link to post
Share on other sites
10 minutes ago, Stroam said:

As posted by the author.  It does use update ticks but it seems like they at least thought about performance. I would love to see their leaf algorithm and branch logic not so much to scrutinize, but because I love that sort of stuff. 

sry, my bad

actually, I have added the src code link, check it out = )

Edited by drkoaeg
0

Share this post


Link to post
Share on other sites

OMG! The commenting! It's human readable, organized, and easy to follow! No method I've seen is longer than my screen. Most methods do only one thing. This code is so sexy. I rarely see code this sexy even in industry! Who is this person? Where did they learn to code? What else have they done? I just want to look at more of their code. It's fine art.

2

Share this post


Link to post
Share on other sites

Well if coding in this mod is so pretty then maybe someone wants to take TFC porting challenge? ^^ I literally know nothing about the coding and this mod is so amazing that I can try to learn but I'm not sure if this isn't too difficult task for beginner :P

EDIT

If anyone more experienced would like to help with the rest and check later  I can write code for every TFC tree - probably most simple and boring part of task  :)

Edited by Narmo
0

Share this post


Link to post
Share on other sites

Maybe when TFC 2 comes out. Though by my estimates that's over a year out, probably two if it continues at it's current development rate. Could also potentially never come as who knows what the state of minecraft will be at that time. The funny part is the longer it took the developers to develop the more mods were made and the bigger the community grew. Now that big corporations are involved and updating more, the less time mods have to develop and the more quiet the community seems. At least that's the impression I get from TFC, minecraft, FTB, and Forge forums. 

0

Share this post


Link to post
Share on other sites

I see. Ok, so if anyone else don't decide to do it I will try. Any advice for beginner? :P

0

Share this post


Link to post
Share on other sites

Make sure to get the mod author's permission, or check their legal statements first before you start trying to port. I think there are two ways to do this port, the simple copy and paste way or the super realistic and more interesting way. The latter would involve creating the different systems so that the trees all grow in different patterns, and changing them to work from the TFC time scale as previously suggested. 

Also, a note on the TFC axe, the axe item doesn't do anything itself, the TFC wood blocks check the oreDictionary for items registered as "axe" when a block is broken to determine if the whole tree should be taken down.

0

Share this post


Link to post
Share on other sites

Mod's author seems to be very open about glue mods and other versions of minecraft mods but I will ask him anyway, I would prefer to do this in the second way you talked about :) Thanks for the axe tip.

0

Share this post


Link to post
Share on other sites
3 hours ago, Powerman913717 said:

The latter would involve creating the different systems so that the trees all grow in different patterns, and changing them to work from the TFC time scale as previously suggested. 

It seems as if the author had already built in some hooks, so it would be easier for others to add different tree growth characteristics.

0

Share this post


Link to post
Share on other sites

Just do a search on oak and then whenever it pops up you'll have to add in the tfc trees. So under the file trees you'll have to see how those parameters affect tree tree growth. If a class doesn't mention a tree type then it's generic and used for all trees. For the most part you'll be adding to the code not modifying so don't unless you have to. Some potential exceptions is where biome, humidity, and temp comes into play. The tree is based on ticks so if you don't want to afk for an hour during tests then you'll need a way to increase the tick rate for the tree. Lots of options there. If you tie it into TFC temp and humidity then I suggest get 4 test worlds. Each one for a different season. Don't use the growth speed to test because the mod maker said increasing that changes the look of the tree. 

Edited by Stroam
0

Share this post


Link to post
Share on other sites

Thank you very much,  it is pretty much what I needed and my initial strategy seems to be similar with your suggestions :)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now