The Camera
pet_camera/ holds one file per camera, named after the camera's item id; the mod's own is pet_camera/camera.json, and it decides how Hachiware takes photos. For how it plays, see Hachiware's Camera.
json
{
"film": "chiikawa:film",
"exposures": 8,
"owner_range": 64.0,
"cooldown_ticks": 12000,
"retry_ticks": 600,
"aim_ticks": 40,
"posed_chance": 0.5,
"subjects": { "owner": 3, "friend": 5, "scenery": 1 },
"width": 320,
"height": 240,
"fov": 70
}| Field | Meaning | Default |
|---|---|---|
film | Which item is used as film | chiikawa:film |
exposures | How many shots a roll holds | 8 |
owner_range | How many blocks away the owner can be for it to shoot, since the picture is drawn in the owner's game | 64 |
cooldown_ticks | The shortest wait after one shot before the next | 12000 (half a game day) |
retry_ticks | When a shot doesn't happen (the owner wandered off, the pet it meant to shoot ran away), how long before it looks for another chance | 600 |
aim_ticks | How long after raising the camera it presses the shutter | 40 |
posed_chance | The chance of a posed shot, the rest being candid snaps, 0 to 1 | 0.5 |
subjects | The weights for shooting the owner, friends and the scenery | 3, 5, 1 |
width, height | The size of the photo, in pixels | 320, 240 |
fov | The field of view for photos, unaffected by the owner sprinting or by potions | 70 |
Using something else as a camera. Write another file under your own namespace, named after that item's id, and a Hachiware with that item in its backpack will take photos too.
Who takes photos. Only Hachiware takes photos. That is written in the code, and data can't change it. Whether Hachiware goes and buys a camera and film on its own is written in likes in its personality file.
