Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 4th Mar 2026 at 8:18 PM
Default Sims 4 Tuning File Moving Blacklist/Whitelisting specifics
First off I am an an amateur and beginner to Sims 4 file tuning. But I have used scripting/tuning for other games where I really like playing with conditions (similar to black/white listing)

So I wanted to improve and customize some tuning files but I ran into an issue right off the bat.

What I want is to for each recipe use conditions (black/white listing) instead of it being split into Non Vegetarian and Vegetarian. But I do not know how to wrap it "per recipe", it seems to have to repeat the full code, so if I add another with a different trait I have 2 items conjure. Then if I blacklist Vegetarian, and the Vegetarian also has the added trait they get two items.

Any ideas or clarification (I am not the best at explaining sorry).

Code:
<?xml version="1.0" encoding="utf-8"?>
<I c="LootActions" i="action" m="interactions.utils.loot" n="loot_Spells_Terrain_ConjureFood" s="214040">
  <L n="loot_actions">
    <V t="create_object">
      <U n="create_object">
        <V n="creation_data" t="random_recipe">
          <U n="random_recipe">
            <L n="weighted_recipes">
              <U>
                <U n="recipe">
                  <T n="recipe">10252<!--recipe_Food_PizzaSlice_Pepperoni--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">76129<!--recipe_Food_Homestyle_FishTacos-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15765<!--recipe_Food_Homestyle_GrilledCheese-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">33439<!--recipe_Food_Homestyle_MacNCheese-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15776<!--recipe_Food_Homestyle_Spaghetti-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15762<!--recipe_Food_Homestyle_GardenSalad-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15773<!--recipe_Food_Homestyle_RoastChicken-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">76032<!--recipe_Food_Homestyle_Fish&Chips-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">38011<!--recipe_Food_Homestyle_Hamburger-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">75375<!--recipe_Food_Homestyle_Grill_HotDog-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15728<!--recipe_Food_Gourmet_RackOfLamb-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15734<!--recipe_Food_Gourmet_SalmonHerbCrusted-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15717<!--recipe_Food_Gourmet_NoodlesGarlic-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15699<!--recipe_Food_Gourmet_AsparagusProscuittoWrapped-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15725<!--recipe_Food_Gourmet_PastaPrimavera-Single--></T>
                </U>
              </U>
            </L>
          </U>
        </V>
        <L n="initial_states">
          <U>
            <T n="state">15113<!--Consumable_Untouched--></T>
          </U>
          <U>
            <T n="state">76724<!--Trash_Consumable_HasFood--></T>
          </U>
        </L>
        <V n="location" t="position">
          <U n="position">
            <T n="allow_off_lot_placement">True</T>
            <V n="initial_location" t="from_participant">
              <U n="from_participant">
                <E n="participant">Object</E>
              </U>
            </V>
          </U>
        </V>
        <L n="tests">
          <L>
            <V t="trait">
              <U n="trait">
                <L n="blacklist_traits">
                  <T>132627<!--trait_Vegetarian--></T>
                </L>
              </U>
            </V>
          </L>
        </L>
      </U>
    </V>
    <V t="create_object">
      <U n="create_object">
        <V n="creation_data" t="random_recipe">
          <U n="random_recipe">
            <L n="weighted_recipes">
              <U>
                <U n="recipe">
                  <T n="recipe">10251<!--recipe_Food_PizzaSlice_Cheese--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">75402<!--recipe_Food_Homestyle_Grill_TofuDog-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15765<!--recipe_Food_Homestyle_GrilledCheese-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">33439<!--recipe_Food_Homestyle_MacNCheese-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">205439<!--recipe_Food_Homestyle_VeggieDumplings_Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15762<!--recipe_Food_Homestyle_GardenSalad-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15771<!--recipe_Food_Homestyle_Pancakes-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">75399<!--recipe_Food_Homestyle_VeggieBurger-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15759<!--recipe_Food_Homestyle_FrenchToast-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15768<!--recipe_Food_Homestyle_Omelet-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15705<!--recipe_Food_Gourmet_FrittataSpinach-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15722<!--recipe_Food_Gourmet_Parfait-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15717<!--recipe_Food_Gourmet_NoodlesGarlic-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15731<!--recipe_Food_Gourmet_SaladCaprese-Single--></T>
                </U>
              </U>
              <U>
                <U n="recipe">
                  <T n="recipe">15725<!--recipe_Food_Gourmet_PastaPrimavera-Single--></T>
                </U>
              </U>
            </L>
          </U>
        </V>
        <L n="initial_states">
          <U>
            <T n="state">15113<!--Consumable_Untouched--></T>
          </U>
          <U>
            <T n="state">76724<!--Trash_Consumable_HasFood--></T>
          </U>
        </L>
        <V n="location" t="position">
          <U n="position">
            <T n="allow_off_lot_placement">True</T>
            <V n="initial_location" t="from_participant">
              <U n="from_participant">
                <E n="participant">Object</E>
              </U>
            </V>
          </U>
        </V>
        <L n="tests">
          <L>
            <V t="trait">
              <U n="trait">
                <L n="whitelist_traits">
                  <T>132627<!--trait_Vegetarian--></T>
                </L>
              </U>
            </V>
          </L>
        </L>
      </U>
    </V>
  </L>
</I>

Animal Lover, Artistic, Brooding, Dog Lover, Perfectionist, Neat and Neurotic.
Back to top