Spawn Box with custom loot table

Hi!

Im wondering if i can spawn a Large Wood Box where i add a custom loot table with items i want into it.
Then make a list of for example 30 items, then 2-3 random items from that list is choosen to spawn in that box.

@WhiteThunder ?

This plugin lets you spawn loot boxes, but it does not let you configure loot tables. I've generally steered away from creating a loot table feature in this plugin since users sometimes have high expectations of how in-depth loot table configuration can be.

Here are some options to move forward.

  • Use a dedicated loot plugin to configure a loot table for a container prefab that is not used in the base game, then spawn an instance of that container via this plugin. I'm not sure which prefabs are unused, so this would take some effort to figure out, and it might not work forever as Rust might eventually remove or start using such prefabs later.
  • Implement a simple addon plugin which detects when this plugin spawns a particulary entity, allowing your plugin to populate the container. Today, entities spawned via MA-spawn-points don't have corresponding hook calls, but I can easily add hooks if you want to go this route.
  • Implement an addon plugin which defines a custom addon. A custom addon is basically a custom-named entity which you can place with /maspawn <some-custom-name>. MA takes care of the framework of placing the addon at the right monuments, and let's you organize instances of the addon into modular profiles, while the plugin that owns the addon has custom logic determining what happens when the addons is spawned on killed. This approach provides tremendous flexibility as you can do almost anything.

Hi! Thanks for the reply!

That sounds abit complicated......
Ive used "StaticLotables" plugin on Codefling to add custom loot to prefabs around the map.
But that adds loot everywhere that prefab is on the map. For example gas pumps on gas stations, toilets and such.....

Do you know of a prefab that isnt used anywhere on procedual maps, that can be spawned with Monument Addons?

My idea is to spawn it inside the monuments puzzles and add custom loot to it.
Then players need to complete the puzzles to get it. This would make it more interesting to do the puzzles.

 

Hey,

I read what are you trying to do. I can't fully help but the idea WhiteThunder suggested is not bad at all. For the loot prefabs you can use any 'dm crate' such as dm res, dm tier1, 2, 3, or dm c4,...  test them all in-game. Since the Savas map gamemode was discontinued and removed by Facepunch, these crates still exists and are not used in the normal game. Also you can try any of the invisible variants of the well known crates, but they're without a viewmodel and you just see the open action when loot at the invisible crate. Also there are visual shelves test prefab you can use - it's spawning 6 items on the shelf (3 at the bottom and 3 on the top) directly collectable as a pickup. I hope these can help you in some way.

Good Luck!



Merged post

Actually you can check this plugin, I hope it helps. @Hawkhill
https://umod.org/plugins/custom-loot-spawns

Thanks for the reply.
Im not sure if the custom loot plugin will help, since im depending on that the box automaticly spawns on a exact place within monuments.
That needs to work after wipe and map change....  thats why im asking here at monument addons.
Sadly as the developer mentioned, there is no support for setting up own loot tables like i want.

But.... i might have an idea.....
I use StaticLootables plugin on Codefling. That plugin let me add lootspawns to prefabs, but the problem there is that i need a prefab that isnt available anywhere else on the map.
Then i was thinking about a workaround here..... i might be able to spawn the new engineering workbench, and remove the bluprint and from loot tables, so players wont be able to obtain the engineering workbench.
The Engineering worbench is totally useless on my server, since ive disabled researching through techtree....
So if i can use monument addons plugin to spawn a engineering workbench where i want it to be, then use Static Lootables plugin to add custom loot to it, it might work.