I'm working on a mod where I want players to open packages and get random loot. I have also added distribution information such that players can find the packages and loot information for what should be inside the opened packages. However, the recipe only spawns empty containers, and does not populate them with items. (Note - if I spawn the open packages instead of closed packages in town they do show loot). Is there some OnCreate command I can use to fill the container with loot? Thanks so much!
item PackageOpened
{
Type = Container,
DisplayName = Open Package,
Icon = PackageOpened,
Weight = 0.1,
Capacity = 25,
WeightReduction = 25,
}
item PackageClosed
{
Type = Normal,
DisplayName = Package,
Icon = PackageClosed,
Weight = 0.5,
}
recipe Open Package
{
PackageClosed,
keep KitchenKnife/HuntingKnife/MeatCleaver/LetterOpener/Scissors,
Result:PackageOpened,
Sound:PutItemInBag,
Time:15.0,
}
}