ST‐Motion Activated Door - ironmonk88/monks-module-wiki GitHub Wiki

Motion Activated Door

An automatic door that won't close as long as someone is standing near it.

Setup Required

Setup Tab

  • When: Enter & Exit

Actions

Click here to view Tile Template JSON Data

Copy & paste this into Notepad and save it as a .JSON file. Then import it using MATT's Tile Templates.

{
  "texture": {
    "src": null,
    "scaleX": 1,
    "scaleY": 1,
    "tint": null,
    "offsetX": 0,
    "offsetY": 0,
    "rotation": 0
  },
  "z": 100,
  "width": 100,
  "height": 200,
  "rotation": 0,
  "alpha": 1,
  "flags": {
    "tagger": {
      "tags": ""
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "enter",
        "exit"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "anchor",
          "data": {
            "tag": "_enter",
            "stop": true
          },
          "id": "9FULWy5NCdzIhQ5S"
        },
        {
          "action": "changedoor",
          "data": {
            "entity": {
              "id": "tagger:Motion Door",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Motion Door"
            },
            "state": "open",
            "type": "secret"
          },
          "id": "BKFwukr0zgVuqs6M"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "_exit",
            "stop": true
          },
          "id": "HKhqIDcJyFb6v9Kk"
        },
        {
          "action": "exists",
          "data": {
            "entity": {
              "id": "within",
              "name": "Tokens within Tile"
            },
            "collection": "tokens",
            "count": "= 1",
            "none": ""
          },
          "id": "gMgYWIsCXwSRBW75"
        },
        {
          "action": "changedoor",
          "data": {
            "entity": {
              "id": "tagger:Motion Door",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Motion Door"
            },
            "state": "lock",
            "type": "door"
          },
          "id": "4URr3JgKNWvXE4C0"
        }
      ],
      "files": []
    },
    "exportSource": {
      "world": "module-assembly",
      "system": "pf2e",
      "coreVersion": "11.305",
      "systemVersion": "5.1.2"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "aGYS2sO0mLr3suSi",
  "name": "Motion_Activated_Door",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 11.02

⚠️ **GitHub.com Fallback** ⚠️