Space Engineers

Space Engineers

Not enough ratings
Consumable Loot Items (BB)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
592.470 KB
15 Jan, 2023 @ 10:53am
3 Aug @ 2:39am
18 Change Notes ( view )

Subscribe to download
Consumable Loot Items (BB)

In 1 collection by BookBurner
Maintained/Created by BookBurner
25 items
Description
Does nothing unless configured (see below)

This mod adds the possibility to hook the spawn of random items into player inventory based on consumption of other consumable items. Thus allowing for having consumable cargo containers as loot, which spawn a range of different items based on the consumed item subtype.

This function can also be used to increase immersion, like shown on the images above. Creating empty tin cans from drinks, or "toys" from happy meals.

This script creates a new config file within your wold data on the first save: Consumables.xml

This file will contain a DefinitionList which you can then alter as you see fit.

<DefinitionList> <ConsumableDefinition> <ItemSubtype>CosmicCoffee</ItemSubtype> <-- consumed item <OnlyOnce>false</OnlyOnce> <-- true/false when set to true, only ONE spawn item will be triggered <OpenHelmet>true</OpenHelmet> <-- helmet will be opened on consumption <PlaySound>Drinking</PlaySound> <-- if defined the consumption will play the following audio <SpawnList> <-- list of items that can be given on consumption <SpawnItemDefinition> <-- single spawn item definition <ItemType>ore</ItemType> <-- type: ore/ingot/component/consumable/tool/talk/prefab <ItemSubtype>Gold</ItemSubtype> <-- subtype, message when itemType talk, prefab subtype if ItemType prefab <Chance>100</Chance> <-- chance to spawn from 1 -> 100 (percents) <MinAmount>10</MinAmount> <-- minimum amount given <MaxAmount>100</MaxAmount> <-- maximum amount given </SpawnItemDefinition> </SpawnList> </ConsumableDefinition> </DefinitionList>

Mod now includes several audio definitions with names: Drinking, Eating, Reading, Package, Smoke which can be used to play audio on consumption. But you can use any other audio definition name from anywhere in your modpack.

Two prefabs included in the pack (space and atmospheric gatling drone), Unpacked Drone Space & Unpacked Drone Atmo .

If you have further questions, you can visit my discord: https://discord.gg/6Gd6W8TcJb
12 Comments
BookBurner  [author] 9 Feb @ 8:54am 
Galax, any time :) my mods are mostly geared for multiplayer, which is why I have so many configs everywhere :D
Galax 9 Feb @ 8:02am 
I found it, that is pretty simple. Honestly I operate normally with mods, and not with server file modifications, but OK. I will contact you later. Thx!
BookBurner  [author] 9 Feb @ 7:33am 
Galax, there is a config file generated in the save's storage folder, you just add additional entries there. Visit my discord, I can show you the config file we use on our server :)
Galax 9 Feb @ 3:41am 
How can I add new options via mod? file type (.sbc,.ini, .whatever...) and format (header?) ?
Galax 9 Feb @ 2:33am 
Thanx!!
BookBurner  [author] 8 Feb @ 11:23pm 
Galax yes, it was made specifically for my dedicated :)
Galax 8 Feb @ 10:17pm 
it looks great, gave me a lot of ideas... does it work on dedicated servers?
BookBurner  [author] 19 Aug, 2023 @ 12:38pm 
new configurable variables that allow one of the results be text returned to players within 500m in the chat.
BookBurner  [author] 5 Jul, 2023 @ 1:49am 
yeah, I imagine it can bring more immersion into it :) low key zomboid vibe :D
Calmaria 5 Jul, 2023 @ 1:34am 
Empty Rifle magazines, Empty water bottles, (Im using VSE for food immersion) Ect. It bears thinking on, Thanks for making it!