Space Engineers

Space Engineers

38 ratings
More Loot & Lootboxes
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Other
File Size
Posted
Updated
1.208 MB
24 Nov, 2020 @ 3:22am
7 Jun, 2022 @ 7:24am
27 Change Notes ( view )

Subscribe to download
More Loot & Lootboxes

In 2 collections by Sadragos
Epsilon System Mod Collection
35 items
RoverWorld Hard Survival
26 items
Description
This Mod adds random loot to all NPCs (Vanilla and Modded). It is possible to change the Loottables, remove or Add Items and change their amount and possibility. You can also blacklist specific blocks or grids to be excluded from the Loot generation.

You can also add Lootboxes that can be purchased for SpaceCredits. If the player is on a planet it will drop near the player like an unknown signal does. If the player is in space it will spawn in front of him.

A new addition are random Lootboxes - in the config you can define that any lootbox can spawn as a random lootbox. Every so often a random player is chosen and a random box from the lists spawns near him, just like unknown signals. This was implemented to prevent the buggy behaviour of Unknown Signals on MP Servers.



Commands
/lootbox info - shows a List of all available Lootboxes
/lootbox info BOXNAME - shows the possible Content of a Lootbox
/lootbox buy BOXNAME - tries to buy the Lootbox
/lootbox chances - Lists all possible random lootboxes and their chances
/lootbox reload - reloads the lootbox config (admin only)
/lootbox spawn random - spawns a random lootbox near a random player (admin only)
/lootbox adminbuy BOXNAME PLAYERNAME - spawns a lootbox near the player (admin only)



Config
The Config file is the the Storagefolder of your Save.

General
Tag
Values
Default
Description
LootChance
0-1
0.4
Chance, that a Container has Loot
MaxLootCargos
1-1000
8
Limit on how many containers on a grid may contain loot. It's 0 - this Value
LootboxCount
-
0
This is the counter of al spawned Lootboxes. Used for numbering the boxes.
SpawnHeightPlanet
20-50000
2000
The height at which boxes are spawned in natural gravity
MinSpawnDistance
20-50000
500
Minimum spawn distance from player
MaxSpawnDistance
20-10000
1000
maximum spawn distance from player
RandomLootboxMinDelaySec
1-10000
300
The minimum delay in seconds between random lootboxes
RandomLootboxMaxDelaySec
1-10000
1800
The maximum delay in seconds between random lootboxes
RandomLootPlayerMod
0.01-1.00
0.95
For every player above 1 on the Server the minimum and maximum amount between random lootbox spawns is multiplied by this value. This leads to the following times: time = baseTime * factor^(players - 1)
BeaconRangeRandom
0-50000
1500
Range for Beacons on Random Lootboxes
BeaconRangeBrought
0-50000
750
Range for Beacons on brought Lootboxes
RenameLootContainer
true/false
true
Containers, in which loot has been generated will be renamed with the name of the Loottable
RenameLootboxGrids
true/false
true
Lootboxgrids will be ranamed according to the chosen Loottable and owner
RenameLootboxBeacons
true/false
true
Beacons on Lootboxgrids will be ranamed according to the chosen Loottable and owner. This does not affect random loot on normal NPCs
ShareLootWithAll
true/false
false
Should Containers, for which loot has been generated be shared with all
CleanupMinutes
1-60
15
After what amount of time should Lootboxes be cleaned up

Loottable
Tag
Values
Default
Description
Name
-
-
The Name of the Loottable. Will be shown in the list of Lootboxes of it is enabled.
SmallGrid
true/false
-
Should this Loottable be used on Small Grids
LargeGrid
true/false
-
Should this Loottable be used on Large Grids
RandomSpawn
true/false
-
Should this Loottable be used as Random Spawn. Set this to false to disable it as random lootbox
BonusItemChance
0.0-1.0
-
Chance for another Item to be added to the box
Weight
0-999999
1
The weight that this Loottable will be picket if multiple tables are available.
MinBlocks
0-999999
1
Grids with less Blocks than this will not use this Loottable.
MaxBlocks
0-999999
1
Grids with more Blocks than this will not use this Loottable. Set to 0 to disable.
LootboxAvailable
true/false
-
Should this Loottable be purchasable as Lootbox
LootboxPrice
0-99999999
-
The price for this Lootbox if a player wishes to buy it.
BlacklistedGridTags
-
-
List of exclude Tags. If a spawned Grid contains any of these it will not use this Loottable.
BlacklistedContainerTags
-
-
List of exclude Tags. If a Container on a spawned Grid contains any of these it will not use this Loottable.
WhitelistedGridTags
-
-
If a whitelist is defined and the grid is not blacklisted only grids containing this tag will use this Loottable
Items
-
-
List of possible Items. See the other Table for more Info.

Item
Tag
Description
Type
The Item Category. Always starts with "MyObjectBuilder_". For example "MyObjectBuilder_Component"
Subtype
The Subtype of the Item. For example "SteelPlate"
Weight
Detemines the chance of the item to be picked. The higher the weight compared to the other weightvalues, the higher the chance that this item will be picked.
Min
Minimum amount of generated Items
Max
Maximum amount of generated Items

Copyright
No extra permission required if the mod is unlisted / hidden and you add a link back to the original in the description.
Please ask for permission if you plan to reupload a public mod that includes this work.
45 Comments
Martha_Farquaar 15 Aug @ 4:03am 
@Reigdaer - Any generated loot should rename the container they are in if the option is set to true. So you should notice cargo containers or lockers renamed to something like "small loot" or "large loot", and contain loot.
Reigdaer 11 Jun @ 7:05pm 
is this working? i saw no difference between the mod and vanilla
dragonraalhaan 10 Dec, 2023 @ 3:12pm 
Found this from the Plant and Cook Updates... looks great! I am going to give it a go on my next playthrough!
DrakoMT 10 Dec, 2023 @ 12:43pm 
@Sadragos Ty I will test it
Sadragos  [author] 10 Dec, 2023 @ 12:39pm 
@DrakoMT that's be BonusItemChance. The number should works like this: after an item is added pick a random number between 0 and 1. If it is below BonusItemChance add another item and start again... which means if you have a value of 0 only 1 item will be added at all times, while a value of 1 means that your cargo will always be the largest size and be filled completely to the brim. I've had good luck with values around 0.5-0.6 for reasonable loot.
DrakoMT 10 Dec, 2023 @ 11:32am 
Which setting controls how many types of items are in a box? I'm only getting 1 or 2 items types at a time that's why I'm asking
NotSankhya 19 Oct, 2023 @ 5:07am 
@Exmortis it should, try to check the keen logs and see if there are any null references.
There might be a typo somewhere.
Exmortis 18 Oct, 2023 @ 12:10am 
Hey
Does this mod work with MES at all?
I'm trying to get spawns to have specific loot in them, but so far I've been unable to get it working.
Ronon Dex 26 May, 2023 @ 10:36am 
Btw all the components and items were already all in there so I didnt even have to manually add them! :)
Ronon Dex 26 May, 2023 @ 10:35am 
Yeah I got myself behind it but it seems like I mightve swapped the 2 files around.
I made quite a few presets in the More loot config.
Was I suppose to put them in the example itemlist?
And leave the config empty