Jump to content

Kielo

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Kielo

  1. Unfortunately, I'm working not on the EvolvedRecipes. But anyway, I am very thankful for the reply.

     

     

    At least maybe I can disable/delete recipe via code? Like this:

    function DisableVanillaCampfireRecipes()
        local recipes = getScriptManager():getAllRecipes()
        for i = 0, recipes:size() - 1 do
            local recipe = recipes:get(i)
            if recipe:getName() == "Make Campfire Kit" then
                local ingredients = recipe:getIngredients() -- pseudo-method to get ingredients
                for i = 0, ingredients:size() - 1 do
                    local ingredient = ingredients:get(i)
                    if ingredient.getType() == "Log" or ingredient.getType() == "Plank" then
                        recipe:Disable(); -- pseudo-method to delete/disable recipe
                        return
                    end
                end
            end
        end
    end

     

  2. On 9/20/2021 at 5:41 PM, Nagyx said:

    Sorry for the necro, but I'm having such a pain to override recipes that has more than one with the same recipe name/ID
    I'm trying to start modding, and the first big wall I'm having is to override a recipe like Make Hot Cuppa, because the recipe that uses coffee, has the same name as the recipe that uses tea. 
    So when I try to do this, only one of the recipes is overriden, no matter what I do the other one stills the same.
    IMO the recipes should be the same way as the items, with individual ID's.
     

    Did you solve this problem somehow? I have it now and I can't find any information about it. I tried to ask some help in discord, but everyone is silent there too.

×
×
  • Create New...