Construction cranes#
TheoTown allows plugins to add custom construction cranes that spawn on construction sites when the building is being built.
As cranes are almost hardcoded, they don't have any special features apart from ID, type and the frames:
[
{
"id": "$sample_crane",
"type": "crane",
"frames": [{"bmp": "sample_crane.png", "w": 64, "h": 32, "count": 4}]
}
]
The png file has 4 frames: 2 for the tower, and 2 for the actual crane structure (heading east and north-east).
The in-game crane has the ID "$crane" and contains all available cranes. If you add one with an own ID it will be picked with a chance of 50%.
This page has been adapted from a topic on the official TheoTown forum.