inferjus4 Posted June 9, 2019 Share Posted June 9, 2019 What would I have to do to like change the recipe (not add new one) of existing DS item/object or how add new loot that drops when killing existing mob? Link to comment Share on other sites More sharing options...
Ultroman Posted June 24, 2019 Share Posted June 24, 2019 In order to overwrite an existing recipe, all you have to do is call Recipe() with the first parameter being the name of the prefab whose recipe you want to change. It's the same as when you add a new recipe. It just overwrites the original recipe. You seem to be asking two very different questions here. Changing what loot drops from certain mobs/entities is a subjective matter, as the lootdropper-component can be set up in various ways. Some have random drops, some have weighted drops, some have static drops, some have state-based drops etc.. Look at the lootdropper-component. Read the code there. Go to the prefab you want to change, and see how it sets up its lootdropper-component. Return with questions Search for lootdropper on the modding forums (see my newcomer post for tips on how to search this forum properly) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.