Tree Saplings (Revisited)


A small mod that adds craftable saplings that grow into vanilla trees, and a way to farm them

Content
3 years ago
1.1
2.97K
Environment

b type definition error and QoL Update

3 years ago
(updated 3 years ago)

the energy type void was added with 1.0 with the spiderbots, so the workaround for the energy-catergory-none is no longer needed.
the extra recipe category is also not needed, just hidde the recipe for everybody and use it as a fixed-recipe, like the rocket-parts in the rocket-silo.

To get rid of the missing type definition error, in the energy part of the tooltip. I did the following changes:

  • remove prototypes/category.lua and its require line in data.lua
  • in prototypes/entity.lua about at line 162 edit the planter like:
    energy_source =
    {
    type = "void",
    },
    crafting_categories = { "crafting" },
    fixed_recipe = "grow-sapling",
    show_recipe_icon = false,

-in prototypes/recipe.lua at line 93 edit like:
category = "crafting",

I hope I explaint it understandable ;)
if needed I will make a diff file as well.

New response