Fruit Tree Framework

Adds a way to easily add fruit trees, and the ability to have saplings for any item through /giveme

Work in Progress Plants and Farming

Download (1.7 MB)

How do I install this?

This is a framework mod allowing other mods to create simple fruit trees easily. You can choose one of 256 fruit and log colors, and any item (including stack size, wear, and metadata) as the result.

fruit_tree_framework.register_fruit(
    "<ID of this fruit as a lookup, should be unique but doesn't have to follow any specific format>",
    {name="<Name in tooltips of saplings and leaves>", itemstring="<Result itemstring>", fruit_color=<Fruit color index>, log_color=<Log color index>},
   <Shaped recipe table of ingredients to craft the sapling, similar to "recipe" entry in minetest.register_craft (can be nil to not create a recipe)>)

You can also get saplings for any itemstring with the command:

/giveme fruit_tree_framework:sapling 1 0 "\u0001fruit_tree_framework:type\u0002~<Result itemstring, escape quotes and backslashes with a backslash>\u0003"

Currently, for testing purposes, it takes 5 seconds for saplings to grow, leaves to become ready, and leaves to become ready after being harvested previously. The number of seconds can be customized in fruit.conf in the mod folder by the key maturation_time.

Once leaves are ready, you can use your place/use key (normally right-click) to pick the fruit off them. There is a tooltip when you're facing leaves that tells you if they're ready.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.