1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Classic KAG Alpha Tree Farming mod - Trees that grow and cut! version 3-18-2015

Giga Hogy's tree seed farming mod

  1. giga_hogy
    What is it? :
    I have posted a mod for classic KAG alpha. It is a functional tree seed mod where the trees will grow and cut like normal trees.

    What is it based in? :
    The scripts are written in LUA. It is based in Juxta++ (credit for API goes to Master4523, see documentation: http://juxta.cf/).

    More details and stuff:
    This mod allows players to plant tree seeds. You purchase the seeds from a nursery. Once you plant the seeds, they will grow every 20 seconds by 1 tile. They will also cut properly, just like any other tree would. Additionally, if you build over a tree, it will stop growing until the object above is removed and then it will continue growing (unlike current trees which reset their maximum height when you build over them). If you want to permanently destroy a tree, just quickly build over it's base/ stump (just like a normal tree). That will remove it from the tree data table. The seeds can be planted above or below ground, but they must be planted in dirt to grow. There are 4 adjustable parameters in the mod. You have a maximum height of the tree (10 by default) and a maximum number of trees + seeds that anyone can hold at a given time. For example, if one player had 3 seeds, another player had 5 seeds and 2 trees were already planted, then that maximum of 10 would be reached. This is just to prevent tree spamming in the farming mod. You also have a cost of a tree seed which is also 10 by default. Finally, you have an adjustable growth time (in units of seconds) which is set to 20 by default. The first three parameters are set to 10 and the last parameter is set to 20 by default, but you can easily adjust them however you see fit.

    *CRITICAL INFORMATION* (the mod will not work without this step!):
    On initiation of the game, the game creates a workshop command called tree_seed. tree_seed is referenced in the server directory Bin_Server/Base/Entities/Rooms/Zombie_Room.cfg folder. There will be a bunch of lines describing different kinds of shops. Make sure to remove the # in front of Nursery and the # in front of tree_seed if you haven't already done that. The hash tag # just comments out the line, but you want to activate it. This allows the nursery and the ability to purchase tree seeds from the nursery. It is already in the game because the developers started to work on the nursery and tree seeds, but abandoned it in favor of Beta.

    Also make sure to download juxta++ (from http://juxta.cf/) and rename the file from GrowingTreeSeedMod.lua?dl=1 to init.lua. Then replace the version of init.lua inside of the sampleplugins folder in juxta++.

    You can download my tree seed mod here:

    https://www.dropbox.com/s/s4ueyvmk16d2h7u/GrowingTreeSeedMod.lua?dl=1

    Mod made by:
    Giga_Hogy
    PUNK123 and Rayne like this.

Recent Updates

  1. Added tree growth timer adjustable parameter