{ "folder": "1e5EaquD2GTpHlOW", "name": "Post Preset Fir Tree", "type": "script", "_id": "ilXASmlPNBNz9jrL", "author": "sVoCvBU1knmXzoYe", "img": "icons/environment/wilderness/tree-spruce.webp", "scope": "global", "command": "let canopy = objects.find(o => o.document.documentName === 'Tile' && Tagger.hasTags(o.document, 'TreeOverhead'))?.document\nlet sx = canopy.x\nlet sy = canopy.y\nif (canopy.texture.src.indexOf('_Large_') == -1) {\n let offset = canopy.parent.grid.size / 2;\n sx += offset;\n sy += offset;\n}\nlet shadow = objects.find(o => o.document.documentName === 'Tile' && Tagger.hasTags(o.document, 'TreeShadow'))?.document\nshadow.update({x: sx, y: sy, rotation: 0})\ncanopy.update({occlusion: {mode: 1}})", "sort": 0, "ownership": { "default": 0, "sVoCvBU1knmXzoYe": 3 }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, "coreVersion": "13.346", "systemId": "swade", "systemVersion": "5.0.3", "createdTime": 1751216742882, "modifiedTime": 1751218823080, "lastModifiedBy": "sVoCvBU1knmXzoYe" }, "_key": "!macros!ilXASmlPNBNz9jrL" }