Spawn Locked Crates at Underwater Labs

Is there a plugin that spawns Locked Crates in the Underwater Labs? I would like to boost these monuments with something like this.

I am interested in fulfilling this use case for Monument Addons. Currently, it only allows placing static entities, but I have been working on a feature to allow placing spawn points for entities that can respawn periodically. The hackable crate at oil rig uses such a spaw point, so you can achieve basically the same functionality.

The way this would work is that you would have to designate a particular module that you would like the crate to spawn in. Any copies of that module would get the crate spawn. This might not be ideal, so I could look into ways to prevent the same thing spawning at multiple modules within the same lab, but I don't currently have a design for that at this time.

I just released v0.11.0 of Monument Addons which has support for adding spawn points to monuments. I've created an example profile which you can drop into your server. This is based on the ones that vanilla uses at both Oilrig monuments. Simply create a file named oxide/data/MonumentAddons/UnderwaterLabCrate.json with the following contents and then run the command maprofile enable UnderwaterLabCrate.

{
  "Name": "UnderwaterLabCrate",
  "Author": "WhiteThunder",
  "SchemaVersion": 2.0,
  "MonumentData": {
    "module_1200x1200_4way": {
      "SpawnGroups": [
        {
          "Id": "508fd505-0970-444f-9c6c-445d98ac1b79",
          "Name": "HackableCrate",
          "MaxPopulation": 1,
          "SpawnPerTickMin": 1,
          "SpawnPerTickMax": 1,
          "RespawnDelayMin": 1800.0,
          "RespawnDelayMax": 1800.0,
          "Prefabs": [
            {
              "PrefabName": "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab",
              "Weight": 100
            }
          ],
          "SpawnPoints": [
            {
              "Id": "354c9fde-1da2-46b6-b084-611eb9b280e6",
              "Position": {
                "x": -1.2,
                "y": -1.0,
                "z": -0.9
              },
              "RotationAngles": {
                "x": 0.0,
                "y": 90.0,
                "z": 0.0
              },
              "Exclusive": true,
              "DropToGround": true,
              "CheckSpace": true
            }
          ]
        }
      ]
    }
  }
}

I chose the module_1200x1200_4way module because it's rare on the map I'm currently using, and because I could place the crate behind a blue keycard door. You can experiment with using other modules if you would like. Moonpools are a good candidate if you want to make something rare, but that would make it easy to access the crate. Below are the commands I used to create the spawn point from scratch.

maprofile create UnderwaterLabCrate
maspawngroup create HackableCrate
maspawngroup add codelockedhackablecrate_oilrig
maspawngroup set RespawnDelayMin 1800
maspawngroup set RespawnDelayMax 1800
maspawnpoint set CheckSpace true

Note: When enabling CheckSpace, you might have to manually increase the y position a bit, depending on the surface. If you need to edit the data file for any reason such as this, simply run maprofile reload UnderwaterLabCrate to quickly reload the file.

dravenmeex

That's a nice plugin.  Works like a dream.  I designed it (and the icon for it!).

I think WhiteThunder has created something unique that will work for all maps without any intervention by the admin on the server. The plugin I post is good, but unfortunately you have to set the position every time you change the map.