CameraUtil_Version: type: version track: true name: "Camera Utilities" id: 102 description: "Player's Camera utilities." version: 0.02 CameraUtil: type: task debug: false speed: 0t definitions: action|location script: - if == attach { - inject locally path:detach - inject locally path:create - teleport - wait 1t - inject locally path:attach - queue clear } - if == detach { - inject locally path:detach } create: - spawn e@CameraUtil_Entity save:x - define attach_to - flag camerautil_attached_to: attach: - define to - if != null { - flag camerautil_lastgamemode: - adjust gamemode:spectator - async { - while { - adjust spectate: - wait 10t } } } detach: - if { - if { - adjust gamemode: - flag camerautil_lastgamemode:! } - define as - flag camerautil_attached_to:! - adjust spectate: - remove } CameraUtil_Listener: type: world debug: false events: on system time hourly: - if { - webget "http://morphanone.space/webizen.aspx/tracker?script=&version=" } on player quits: - inject s@CameraUtil path:detach on world unload: - foreach { - remove } CameraUtil_Entity: type: entity debug: false entity_type: e@armor_stand gravity: false visible: false invulnerable: true