five-on-it / apps/level-editor/src/scripts/blocks/container
apps/level-editor/src/scripts/blocks/container
Marks a node of the editor scene as a container: a crate (opened from any side), a locker (opened from its front, the node's +z) or items lying on the ground (pickup), standing on the node's origin, never scaled, turned with yaw only. What it holds is a list of item ids, each with an optional count (first_aid*2 cash*50); a lock (a tag) keeps it shut for anyone without an item of that tag. The server lays it out with the level. The library's block:container carries it: place instances of that mesh for npm run level:export to read.